CISCO configuration guides
Define on an interface:
Switch(config-if)#switchport access vlan <vlan>
Define globally:
Switch(config)#vlan <vlan>
Switch(config)#name <vlan-name>
Switch(config-vlan)#exit
Define on an interface:
Switch(config-if)#switchport voice vlan <num|none|untagged|dot1p>
num
is the numerical VLAN IDIssues:
Example troubleshooting output:
Switch#show vlan summary
Number of existing VLANs : 3
Number of existing VTP VLANs : 3
Number of existing extended VLANs : 0
Switch#show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active fa0/2, fa0/3, fa0/4, fa0/5
fa0/6, fa0/7, fa0/8, fa0/9
fa0/10, fa0/11, fa0/12, fa0/13
fa0/14, fa0/15, fa0/16, fa0/17
fa0/18, fa0/19, fa0/20, fa0/21
fa0/22, fa0/23, fa0/24, gi0/1
gi0/2
10 VLAN0010 active fa0/1
11 VLAN0011 active
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
Switch#show vlan id 11
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
11 VLAN0011 active
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
11 enet 100011 1500 - - - - - 0 0
Remote SPAN VLANs
------------------------------------------------------------------------------
Primary Secondary Type Ports
------- --------- ----------------- ------------------------------------------
Switch#
Switch#show mac address-table dynamic
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- ---- -----
12 0200.1111.1111 dynamic Fa0/11
12 0200.2222.2222 dynamic Gi0/1
11 0200.3333.3333 dynamic Gi0/1
11 0200.4444.4444 dynamic Gi0/1
Define on an interface:
Switch(config-if)#switchport mode trunk
Switch(config-if)#switchport trunk encapsulation <dot1q|isl|nonegotiate>
Switch(config-if)#switchport trunk allowed vlan <add|all|except|remove> <vlan>
Switch(config-if)#switchport trunk native vlan <vlan>
Define on an interface:
Switch(config-if)#switchport mode <dynamic auto|dynamic desirable>
Admin Mode | Access | Dynamic Auto | Trunk | Dynamic Desirable |
---|---|---|---|---|
access |
Access | Access | !!! BAD !!! | Access |
dynamic auto |
Access | Access | Trunk | Trunk |
trunk |
!!! BAD !!! | Trunk | Trunk | Trunk |
dynamic desirable |
Access | Trunk | Trunk | Trunk |
Disable all auto negotiation (trunk protocol negotiation and operational mode):
Switch(config-if)#switchport nonegotiate
Common Issues:
auto
&auto
or access
&desirable
)?Example troubleshooting output:
Switch#show interfaces trunk
Port Mode Encapsulation Status Native vlan
Fa0/2 on 802.1q not-trunking 1
Port Vlans allowed on trunk
Fa0/2 1-4094
Port Vlans allowed and active in management domain
Fa0/2 1,10-12
Port Vlans in spanning tree forwarding state and not pruned
Fa0/2 1,10-11
Switch#show interfaces fastEthernet 0/2 switchport
Name: FastEthernet0/2
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Negotiation of Trunking: true
Access Mode VLAN: none
Trunking Native Mode VLAN: 1 (default)
Trunking VLANs Enabled:
Trunking VLANs Active: active
Priority for untagged frames: 0
Override vlan tag priority: FALSE
Voice VLAN: none
Appliance trust: none
Set VTP domain/password:
Switch(config)#vtp domain <domain-name>
Switch(config)#vtp password <password>
Set VTP mode:
Switch(config)#vtp mode <server|client|transparent|off>
server
mode is the defaultFunction | server |
client |
transparent |
off |
---|---|---|---|---|
Only sends VTP messages on trunks | Y | Y | Y | N |
Allows VLAN database changes | Y | N | Y | Y |
Can use standard range VLANs (1-1005) | Y | Y | Y | Y |
Can use extended range VLANs (1006-4095) | N | N | Y | Y |
Set VTP version:
Switch(config)#vtp version <1|2|3>
Enable VTP pruning:
Switch(config)#vtp pruning
Common Issues:
Example troubleshooting output:
Switch#show vtp status
VTP Version capable : 1 to 3
VTP Version running : 3
Configuration Revision : 0
Maximum VLANs supported locally : 255
Number of existing VLANs : 7
VTP Operating Mode : Server
VTP Domain Name : test-domain-name
VTP Pruning Mode : Enable
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : ddd4 ad64 4a9f a191 96a4 e053 b433
Configuration last modified by 0.0.0.0 at 1-30-2020 19:40:05
Manually specifying root/secondary switch in a given VLAN or with a manual priority:
Switch(config)#spanning-tree vlan <vlan> root <primary|secondary>
root
: priority will be 24576 or the next lowest multiple of 4096 if 24576 is not low enough to become root nowsecondary
: priority will be 28672 Switch(config)#spanning-tree vlan <vlan> priority <priority>
Manually specifying port cost for all VLANs or per VLAN cost:
Switch(config-if)#spanning-tree cost <cost>
Switch(config-if)#spanning-tree vlan <vlan> cost <cost>
Default port costs:
Speed | IEEE Cost (pre 1998) | IEEE Cost (post 2004) |
---|---|---|
10 Mbps | 100 | 2000000 |
100 Mbps | 19 | 200000 |
1 Gbps | 4 | 20000 |
10 Gbps | 2 | 2000 |
100 Gbps | N/A | 200 |
1 Tbps | N/A | 20 |
Enable globally on all interfaces:
Switch(config)#spanning-tree portfast default
Enable or disable per interface:
Switch(config-if)#spanning-tree portfast [disable]
Enable globally:
Switch(config)#spanning-tree portfast bpduguard default
Enable or disable per interface:
Switch(config-if)#spanning-tree bpduguard <enable|disable>
Common Issues:
Example troubleshooting output:
Switch#show spanning-tree vlan 1
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 24577
Address 0019.e86a.2280
Cost 4
Port 25 (GigabitEthernet0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 28673 (priority 28672 sys-id-ext 1)
Address 0019.e86a.1180
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/1 Desg FWD 19 128.1 P2p
Fa0/11 Desg FWD 19 128.11 P2p
Gi0/1 Root FWD 4 128.25 P2p
Gi0/2 Desg FWD 4 128.26 P2p
Switch#show spanning-tree bridge
Hello Max Fwd
Vlan Bridge ID Time Age Dly Protocol
---------------- --------------------------------- ----- --- --- --------
VLAN0001 28673(28672, 1) 0019.e86a.1180 2 20 15 ieee
VLAN0022 32790(32768, 22) 0019.e86a.1180 2 20 15 ieee
VLAN0045 32813(32768, 45) 0019.e86a.1180 2 20 15 ieee
Switch#show spanning-tree root
Root Hello Max Fwd
Vlan Root ID Cost Time Age Dly Root Port
---------------- -------------------- --------- ----- --- --- ------------
VLAN0001 24577 0019.e86a.2280 4 2 20 15 Gi0/1
VLAN0022 32790 0019.e86a.1180 0 2 20 15
VLAN0045 32813 0019.e86a.1180 0 2 20 15
Switch#show spanning-tree interface FastEthernet 0/1 portFast
VLAN0001 disabled
VLAN0002 disabled
VLAN0045 disabled
Switch#show spanning-tree interface FastEthernet 0/1
Vlan Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
VLAN0001 Desg FWD 19 128.1 P2p
VLAN0002 Desg FWD 19 128.1 P2p
VLAN0045 Desg FWD 19 128.1 P2p
Switch#show spanning-tree interface FastEthernet 0/11 detail
Port 11(FastEthernet0/11) of VLAN0001 is designated forwarding
Port path cost 0, Port priority 128 ,Port Identifier 128.11
Designated root has priority 32769, address 0019.e86a.1180
Designated bridge has priority 32769, address 0019.e86a.1180
Designated port id is 128.11 ,designated path cost 0
Timers: message age 1,forward delay 0,hold 0
Number of transition to forwarding state: 1
The port is in the portfast mode
Link type is point-to-point by default
Bpdu guard is enabled by default
BPDU: sent 12, received 5
Define static channel:
Switch(config-if-range)#channel-group <number> mode on
number
does not need to match on both devicesnumber
must match for all interfaces in local Etherchannel Define dynamic channel (PAgP - Cisco Proprietary):
Switch(config-if-range)#channel-group <number> mode <desirable|auto>
on |
desirable |
auto |
|
---|---|---|---|
on |
Y | !!! BAD !!! | !!! BAD !!! |
desirable |
!!! BAD !!! | Y | Y |
auto |
!!! BAD !!! | Y | N |
Define dynamic channel (LACP - IEEE 802.3ad):
Switch(config-if-range)#channel-group <number> mode <passive|active>
on |
active |
passive |
|
---|---|---|---|
on |
Y | !!! BAD !!! | !!! BAD !!! |
active |
!!! BAD !!! | Y | Y |
passive |
!!! BAD !!! | Y | N |
Common Issues:
Example troubleshooting output:
Switch#show etherchannel summary
Flags: D - down P - in port-channel
I - stand-alone s - suspended
H - Hot-standby (LACP only)
R - Layer3 S - Layer2
u - unsuitable for bundling
U - in use f - failed to allocate aggregator
d - default port
Number of channel-groups in use: 1
Number of aggregators: 1
Group Port-channel Protocol Ports
------+-------------+-----------+----------------------------------------
1 Po1(SU) PagP Fa0/1(P) Fa0/2(P)
Enable with a process ID:
Router(config)#router ospf <process-id>
process-id
needs to be locally uniqueDefine max number of OSPF routes used for equal cost load balancing:
Router(config-router)#maximum-paths <max>
max
is 4max
to 1 to disable load balancingDefine a passive OSPF interface:
Router(config-router)#passive-interface <interface>
Router(config-router)#passive-interface default
Router(config-router)#no passive-interface <interface>
Specify OSPF to advertise a default route:
Router(config-router)#default-information originate [always]
always
option means advertise a default route even if one does not existSpecify interfaces to advertise/learn on:
Router(config-router)#network <network> <wildcard> area <area>
network
statements, the first one that was configured is used as the area and maskRouter(config-if)#ip ospf <process-id> area <area>
network
command if both are configured and match an interfaceManually specify Router ID (RID):
Router(config-router)#router-id <rid>
router-id
command valueRouter# clear ip ospf process
Router# reload
Adjusting timers:
Router(config-if)#ip ospf hello-interval <seconds>
Router(config-if)#ip ospf dead-interval <seconds>
Adjusting interface cost:
Manually:
Router(config-if)#ip ospf cost <cost>
Router(config-if)#bandwidth <bandwidth in Kbps>
Router#show interface <int>
Router(config-router)#auto-cost reference-bandwidth <bandwidth in Mbps>
Cost equation:
cost = (reference bandwidth / interface bandwidth)
Default costs:
| Link Type | Default Bandwidth | Cost |
| ———————— | ————————- | —— |
| Serial (56K) | 56 Kbps | 1785 |
| Serial (64K) | 64 Kbps | 1562 |
| Serial (T1) | 1,549 Kbps | 64 |
| Ethernet | 10,000 Kbps | 10 |
| Fast Ethernet | 100,000 Kbps | 1 |
| Gigabit Ethernet | 1,000,000 Kbps | 1 |
| 10G Ethernet | 10,000,000 Kbps | 1 |
| 100G Ethernet | 100,000,000 Kbps | 1 |
Same as IPv4 with the following notes:
show ipv6 ospf neighbor
or show ipv6 ospf interfaces brief
, the IPv4 column for neighbor IP address has been replaced with an interface ID that is assigned locallyipv6
instead of the ip
configuration command for all the same commandsRouter(config-if)#ipv6 ospf <process-id> area <area>
network
command to assign OSPF enabled interfaces224.0.0.5
is FF02::5
in OPSFv3 for neighbor relationship forming224.0.0.6
is FF02::6
in OPSFv3 for DR & BDR communicationCommon Issues:
show ip ospf interface brief
shows even passive interfaces!show ip protocols
to deconflictExample troubleshooting output:
Router#show ip protocols
*** IP Routing is NSF aware ***
Routing Protocol is "ospf 10"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Router ID 172.16.24.9
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
Maximum path: 4
Routing for Networks:
172.16.24.9 0.0.0.0 area 3
172.16.20.0 0.0.3.255 area 0
Routing Information Sources:
Gateway Distance Last Update
172.16.24.10 110 02:07:17
Distance: (default is 110)
Router#show ip ospf interface brief
Interface PID Area IP Address/Mask Cost State Nbrs F/C
Gi0/0 1 0 10.10.10.1/24 1 DR 0/0
Se0/0/0 1 2 10.0.1.1/30 64 P2P 1/1
Se0/0/1 1 3 10.0.1.5/30 64 P2P 1/1
Se0/1/0 1 4 10.0.1.9/30 64 P2P 1/1
Router#show ip ospf interface Serial 0/0/0
Serial0/0/0 is up, line protocol is up
Internet Address 172.16.24.9/30, Area 3
Process ID 10, Router ID 172.16.24.9, Network Type POINT_TO_POINT, Cost: 64
Transmit Delay is 1 sec, State POINT_TO_POINT,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
oob-resync timeout 40
Hello due in 00:00:2
Supports Link-local Signaling (LLS)
Index 1/2, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 172.16.24.10
Suppress hello for 0 neighbor(s)
Router#show ip route ospf
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 9 subnets, 3 masks
O 10.1.0.0/24 [110/65] via 10.51.0.1, 00:45:35, Serial0/0/0
O 10.2.0.0/24 [110/65] via 10.52.0.1, 00:45:35, Serial0/0/1
O 10.50.0.0/30 [110/128] via 10.51.0.1, 00:45:35, Serial0/0/0
[110/128] via 10.52.0.1, 00:04:38, Serial0/0/1
192.168.1.0/24 is variably subnetted, 5 subnets, 2 masks
O 192.168.1.64/26 [110/2] via 192.168.3.5, 00:45:35, GigabitEthernet0/0
O 192.168.1.128/26 [110/2] via 192.168.3.4, 00:45:35, GigabitEthernet0/0
O IA 192.168.1.192/26 [110/2] via 192.168.3.3, 00:45:35, GigabitEthernet0/0
Router#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
1.1.1.1 1 Full/DR 00:00:31 192.168.1.1 GigabitEthernet0/0
2.2.2.2 1 Full/BDR 00:00:31 192.168.1.2 GigabitEthernet0/0
3.3.3.3 1 2Way/DROTHER 00:00:31 192.168.1.3 GigabitEthernet0/0
Router#show ip ospf
Routing Process "ospf 10" with ID 10.51.0.1
Start time: 19:09:43, Time elapsed: 00:01:01
Supports only single TOS(TOS0) routes
Supports opaque LSA
Supports Link-local Signaling (LLS)
Supports area transit capability
Router is not originating router-LSAs with maximum metric
Initial SPF schedule delay 5000 msecs
Minimum hold time between two consecutive SPFs 10000 msecs
Maximum wait time between two consecutive SPFs 10000 msecs
Incremental-SPF disabled
Minimum LSA interval 5 secs
Minimum LSA arrival 1000 msecs
LSA group pacing timer 240 secs
Interface flood pacing timer 33 msecs
Retransmission pacing timer 66 msecs
Number of external LSA 0. Checksum Sum 0x000000
Number of opaque AS LSA 0. Checksum Sum 0x000000
Number of DCbitless external and opaque AS LSA 0
Number of DoNotAge external and opaque AS LSA 0
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
Number of areas transit capable is 0
External flood list length 0
Area BACKBONE(0)
Number of interfaces in this area is 3
Area has no authentication
SPF algorithm last executed 19:09:43 ago
SPF algorithm executed 5 times
Area ranges are
Number of LSA 2. Checksum Sum 0x008AC0
Number of opaque link LSA 0. Checksum Sum 0x000000
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0
Router#show ip ospf database
OSPF Router with ID(192.168.10.1) (Process ID 50)
Router Link States Area(0)
LinkID ADV Router Age Seq# CheckSum Link count
192.168.30.1 192.168.30.1 90 0x80000002C 0x00EB29 3
192.168.10.1 192.168.10.1 181 0x80000002C 0x00EB29 7
192.168.20.1 192.168.20.1 91 0x80000002C 0x00EB29 3
192.168.40.1 192.168.40.1 90 0x80000002C 0x00EB29 3
Router#show ipv6 ospf neighbor
Neighbor ID Pri State Dead Time Interface Id Interface
2.2.2.2 1 Full/BDR 00:00:33 4 GigabitEthernet0/0
3.3.3.3 1 Full/DROTHER 00:00:33 4 GigabitEthernet0/0
4.4.4.4 1 Full/DROTHER 00:00:33 4 GigabitEthernet0/0
Router#show ipv6 ospf interface brief
Interface PID Area Intf id Cost State Nbrs F/C
Gi0/0 10 0 4 1 DR 3/3
Gi0/1 10 0 5 1 DR 0/0
Enable with an ASN:
Router(config)#router eigrp <asn>
asn
needs to be globally uniqueDefine max number of EIGRP routes used for equal cost load balancing:
Router(config-router)#maximum-paths <max>
max
is 4max
to 1 to disable load ballancingEnable unequal cost load balancing:
Router(config-router)#variance <x>
FD(FS) < (variance * FD(S))
to be added to the routing tableDefine a passive EIGRP interface:
Router(config-router)#passive-interface <interface>
Router(config-router)#passive-interface default
Router(config-router)#no passive-interface <interface>
Specify interfaces to advertise/learn on:
Router(config-router)#network <network> <wildcard>
Router(config-router)#network <classfull-network>
Manually specify Router ID (RID):
Router(config-router)#eigrp router-id <rid>
eigrp router-id
command valueEnable auto-summarization:
Router(config-router)#auto-summary
Define timers:
Router(config-if)#ip hello-interval eigrp <asn> <seconds>
Router(config-if)#ip hold-time eigrp <asn> <seconds>
Metric equation with default K values:
metric = 256 * (((10^7) / smallest_bandwidth) + cumulative_delay)
Modify bandwidth:
Router(config-if)#bandwidth <bandwidth in Kbps>
Router#show int <int>
Modify delay:
Router(config-if)#delay <delay in 10s of microseconds>
Router#show int <int>
Same as IPv4 with the following notes:
show ipv6 eigrp neighbor
or show ipv6 eigrp interfaces
, the IPv4 column for neighbor IP address has been replaced with an interface ID that is assigned locallyipv6
instead of the ip
configuration command for all the same commandsRouter(config-if)#ipv6 eigrp <asn>
network
command to assign EIGRP enabled interfaces224.0.0.10
is FF02::A
in EIGRP IPv6 for neighbor relationship formingvariance
& maximum-paths
)delay
and bandwidth
commands and applies for both IPv4 and IPv6 EIGRP.Common Issues:
show ip eigrp interfaces
shows only active interfacesshow ip protocols
to see passive interfacesExample troubleshooting output:
Router#show ip eigrp interfaces
IP-EIGRP interfaces for process 50
Xmit Queue Mean Pacing Time Multicast Pending
Interface Peers Un/Reliable SRTT Un/Reliable Flow Timer Routes
Gi0/0 0 0/0 72 0/1 287 0
Se0/0/0 1 0/0 72 0/15 287 0
Se0/0/1 1 0/0 72 0/15 287 0
Router#show ip protocols
*** IP Routing is NSF aware ***
Routing Protocol is "eigrp 50"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Default networks flagged in outgoing updates
Default networks accepted from incoming updates
EIGRP-IPv4 Protocol for AS(10)
Metric weight K1=1, K2=0, K3=1, K4=0, K5=0
NSF-aware route hold timer is 240s
Router-ID: 192.168.10.1
Topology : 0(Base)
Active Timer: 3 min
Distance: internal 90 external 170
Maximum Path: 4
Maximum hopcount: 100
Maximum metric variance: 1
Automatic Summarization : disabled
Maximum path: 4
Routing for Networks:
10.50.40.0/24
192.0.2.0
192.168.10.0
Passive Interface(s):
GigabitEthernet0/0
Routing Information Sources:
Gateway Distance Last Update
192.0.2.2 90 00:12:13
192.0.2.10 90 00:12:12
192.0.2.6 90 00:12:15
Distance: internal 90 external 170
Router#show ip eigrp neighbors
IP-EIGRP neighbors for process 50
H Address Interface Hold Uptime SRTT RTQ Q Seq
(sec) (ms) Cnt Num
0 192.0.2.2 Se0/0/0 9 00:14:46 72 432 0 3
0 192.0.2.6 Se0/0/1 7 00:14:48 72 432 0 3
0 192.0.2.10 Se0/1/0 11 00:14:44 72 432 0 3
Router#show ip eigrp topology
IP-EIGRP Topology Table for AS(50)/ID(192.168.10.1)
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - reply Status, s - sia Status
P 172.16.34.0/29, 2 successors, FD is 2681856
via 192.0.2.6 (2681856/2169856), Serial0/0/1
via 192.0.2.10 (2681856/2169856), Serial0/1/0
P 192.0.2.8/30, 1 successors, FD is 2169856
via Connected, Serial0/1/0
P 192.168.40.0/24, 1 successors, FD is 2172416
via 192.0.2.10 (2172416/28160), Serial0/1/0
P 192.0.2.0/30, 1 successors, FD is 2169856
via Connected, Serial0/0/0
P 192.168.10.0/24, 1 successors, FD is 28160
via Connected, GigabitEthernet0/0
P 192.168.30.0/24, 1 successors, FD is 2172416
via 192.0.2.6 (2172416/28160), Serial0/0/1
P 192.0.2.4/30, 1 successors, FD is 2169856
via Connected, Serial0/0/1
P 192.168.20.0/24, 1 successors, FD is 2172416
via 192.0.2.2 (2172416/28160), Serial0/0/0
Router#show ip route eigrp
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
172.16.0.0/29 is subnetted, 1 subnets
D 172.16.34.0 [90/2172416] via 192.0.2.6, 00:17:25, Serial0/0/1
[90/2681856] via 192.0.2.10, 00:01:14, Serial0/1/0
D 192.168.20.0/24 [90/2172416] via 192.0.2.2, 00:17:23, Serial0/0/0
D 192.168.30.0/24 [90/2172416] via 192.0.2.6, 00:17:25, Serial0/0/1
D 192.168.40.0/24 [90/2172416] via 192.0.2.10, 00:17:22, Serial0/1/0
Enable with an ASN:
Router(config)#router bgp <asn>
asn
needs to be globally uniqueDefine a remote AS to connect with as a neighbor:
Router(config-router)#neighbor <neighbor-ip> remote-as <neighbor-asn>
Manually specify Router ID (RID):
Router(config-router)#bgp router-id <rid>
bgp router-id
command valueSpecify internal networks to advertise over eBGP:
Router(config-router)#network <network> mask <mask>
Router(config-router)#network <classful-network>
Common Issues:
remote-as
value in neighbor
command wrong?neighbor
command wrong?network
command?ip route <network> <mask> null0
Example troubleshooting output:
Router#show ip bgp summary
BGP Router identifier 200.200.200.4 , local AS number 400
BGP table version is 7, main routing table version 7
4 network entries using 592 bytes of memory.
4 path entires using 256 bytes of memory.
4/4 BGP path/bestpath attribute entries using 544 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
0 BGP route map cache entries using 0 bytes of memory
0 BGP filter-list cache entires using 0 bytes of memory
BGP using 1416 total bytes of memory
BGP activity 4/0 prefixes, 4/0 paths, scan interval 60 secs
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
200.200.200.1 4 100 26 26 3 0 0 00:21:54 1
200.200.200.2 4 200 26 26 3 0 0 00:21:53 1
200.200.200.3 4 300 26 26 3 0 0 00:21:53 1
Router#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
192.168.1.0/24 is variably subnetted, 5 subnets, 5 masks
B 192.168.1.0/25 [20/0] via 200.200.200.1, 00:14:54
B 192.168.1.128/26 [20/0] via 200.200.200.2, 00:14:27
B 192.168.1.192/27 [20/0] via 200.200.200.3, 00:12:47
C 192.168.1.224/28 is directly connected, GigabitEthernet0/1
L 192.168.1.225/32 is directly connected, GigabitEthernet0/1
200.200.200.0/24 is variably subnetted, 2 subnets, 2 masks
C 200.200.200.0/29 is directly connected, GigabitEthernet0/0
L 200.200.200.4/32 is directly connected, GigabitEthernet0/0
Router#show ip bgp
BGP table version is 3, local router ID is 200.200.200.4
Status Codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-Failure, S stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*> 192.168.1.0 200.200.200.1 0 0 100 i
*> 192.168.1.128 200.200.200.2 0 0 200 i
*> 192.168.1.224 0.0.0.0 0 32768 i
*> 192.168.1.192 200.200.200.3 0 0 300 i
Router#show ip bgp neighbors 200.200.200.1
BGP neighbor is 200.200.200.1, remote AS 100, external link
BGP version 4, remote router ID 200.200.200.1
BGP state = ESTABLISHED, up for 00:22:04
Last read = 00:00:29, last write 00:00:29, hold time is 180, keepalive interval is 60 seconds
Neighbor sessions:
1 active, is not multisession capable (disabled).
Neighbor capabilities:
Route refresh: advertised and received(new)
Four-octets ASN Capability: advertised and received
Address family IPv4 Unicast: advertised and received
Enhanced Refresh Capability: advertised and received
Multisession Capability:
Stateful switchover support enabled: NO for session 1
Message statistics:
InQ depth is 0
OutQ depth is 0
Sent Rcvd
Opens: 1 1
Notifications: 0 0
Updates: 2 2
Keepalives: 2 2
Route Refresh: 0 0
Total: 5 5
Default minimum time between advertisement runs is 30 seconds
For address family: IPv4 Unicast
Session:200.200.200.1
BGP table version3, neighbor version 3/0
Output queue size : 0
Index 1, Advertise bit 0
1 update-group member
Slow-peer detection is disabled
Slow-peer split-update-group dynamic is disabled
Sent Rcvd
Prefix activity: ---- ----
Prefix Current: 1 1
Prefixes Total: 1 1
Implicit Withdraw: 0 0
Explicit Withdraw: 0 0
Used as bestpath: 0 0
Used as multipath: 0 0
Outbound Inbound
Local Policy Denied Prefixes: -------- --------
Bestpath from this peer: 1 0
Total: 1 0
Number of NLRIs in the update sent: max 0, min 0
Last detected as dynamic slow peer: never
Dynamic slow peer recovered: never
Refresh Epoch: 1
Last Sent Refresh Start-of-rib: never
Last Sent Refresh End-of-rib: never
Last Received Refresh Start-of-rib: never
Last Received Refresh End-of-rib: never
Sent Rcvd
Refresh Activity: ---- ----
Refresh Start of RIB: 0 0
Refresh End of RIB: 0 0
Address tracking is enabled, the RIB does have a route to 200.200.200.1
Connections established 1; dropped 0
Last reset never
Transport(tcp) path-mtu-discovery is enabled
Graceful-Restart is disabled
Connection state is ESTAB, I/O status: 1, unread input bytes: 0
Connection is ECN Disabled, Mininum incoming TTL 0, Outgoing TTL 1
Local host: 192.168.1.225, Local port: 179
Foreign host: 200.200.200.1, Foreign port: 58251
Connection tableid (VRF): 0
Maximum output segment queue size: 50
Enqueued packets for retransmit: 0, input: 0 mis-ordered: 0 (0 bytes)
Event Timers (current time is 0x4DC0841C):
Timer Starts Wakeups Next
Retrans 3 0 0x0
TimeWait 0 0 0x0
AckHold 3 0 0x0
SendWnd 0 0 0x0
KeepAlive 0 0 0x0
GiveUp 0 0 0x0
PmtuAger 0 0 0x0
DeadWait 0 0 0x0
Linger 0 0 0x0
ProcessQ 0 0 0x0
iss: 4153197359 snduna: 4153197478 sndnxt: 4153197478
irs: 3201954199 rcvnxt: 3201954318
sndwnd: 16266 scale: 0 maxrcvwnd: 16384
rcvwnd: 16266 scale: 0 delrcvwnd: 118
SRTT: 330 ms, RTTO: 3159 ms, RTV: 2829 ms, KRTT: 0 ms
minRTT: 0 ms, maxRTT: 1000 ms, ACK hold: 200 ms
Status Flags: passive open, gen tcbs
IP Precedence value : 6
Datagrams (max data segment is 1460 bytes):
Rcvd: 8 (out of order: 0), with data: 4, total data bytes: 118
Sent: 7 (retransmit: 0, fastretransmit: 0, partialack: 0, Second Congestion:
0), with data: 4, total data bytes: 118
Packets received in fast path: 0, fast processed: 0, slow path: 0
fast lock acquisition failures: 0, slow path: 0
TCP Semaphore 0x30CD7404 FREE
Enable HDLC on an interface:
Router(config-if)#encapsulation hdlc
Disable keepalive messages:
Router(config-if)#no keepalive
Define interface clock rate:
Router(config-if)#clock rate <bps>
Define interface bandwidth:
Router(config-if)#bandwidth <Kbps>
Common serial TDMA speeds:
Name | Rate |
---|---|
DS0 | 64 Kbps |
T1 (DS1) | 1544 Kbps (24 DS0s + overhead) |
T3 (DS3) | 44736 Kbps (28 DS1s + overhead) |
E1 (Europe) | 2048 Kbps (32 DS0s + overhead) |
E3 (Europe) | 32768 Kbps (16 E1s + overhead) |
Common Issues:
Example troubleshooting output:
Router#show controllers serial 0/0/0
Interface Serial0/0/0
Hardware is SCC
DCE V.35, clock rate 256000
Router#show interfaces serial 0/0/0
Serial0/0/0 is up, line protocol is up
Hardware is GT96K Serial
Internet address is 10.100.0.1/12
MTU 1500 bytes, BW 1544 Kbit/sec, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation HDLC
Keepalive not set
Last input never, output never, output hang never
Last clearing of "show interface" counters 07:09:39
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/0/256 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
Available Bandwidth 1158 kilobits/sec
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 2 interface resets
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions
DCD=up DSR=up DTR=down RTS=down CTS=up
Enable PPP on an interface:
Router(config-if)#encapsulation ppp
Define interface clock rate:
Router(config-if)#clock rate <bps>
Define interface bandwidth:
Router(config-if)#bandwidth <Kbps>
Enable PAP on the interface connecting to the neighbor:
Router(config-if)#ppp authentication pap
Define local username and password:
Router(config-if)#ppp pap sent-username <username> password <password>
username
is the username sent to neighbor device password
is the password sent to neighbor deviceDefine a neighbor username and password expected from PAP:
Router(config)#username <username> password <password>
username
must match case-sensitive the username configured on the neighbor devicepassword
must match case-sensitive the password configured on the neighbor deviceEnable CHAP on the interface connecting to the neighbor device:
Router(config-if)#ppp authentication chap
Define username and password for neighbor device:
Router(config)#username <username> password <password>
username
must match case-sensitive the hostname of the neighbor devicepassword
must match case-sensitive on both devicesCreate local multilink interface:
Router(config)#interface multilink <num>
num
must match multilink group locally and on neighbor routerRouter(config-if)#encapsulation ppp
Router(config-if)#ppp multilink
Router(config-if)#ip address <ip> <mask>
Router(config-if)#ppp multilink group <num>
num
must match local group and on neighbor routerAdd the multilink interface on all serial interfaces in the multilink:
Router(config)#interface serial <int>
Router(config-if)#encapsulation ppp
Router(config-if)#ppp multilink
Router(config-if)#no ip address
Router(config-if)#ppp multilink group <num>
num
must match multilink group locally and on neighbor routerCreate logical dialer interface:
Router(config)#interface dialer <num>
num
is only locally uniqueRouter(config-if)#encapsulation ppp
Router(config-if)#ip address negotiated
Router(config-if)#mtu 1492
Router(config-if)#dialer pool <pool>
pool
is only locally uniqueDefine physical Ethernet interface:
Router(config)#interface <eth-int>
Router(config-if)#pppoe enable
Router(config-if)#pppoe-client dial-pool-number <pool>
pool
must match the pool defined in the corresponding dialer interfaceRouter(config-if)#no ip address
Common Issues:
REQsent
=> likely an encapsulation miss matchLCPopen
=> link is upping
to neighbor interface works but no routing?ping
work)Open
state?Open
state?show interface dialer <num>
shows the interface as up (spoofing) & up (spoofing)
?show pppoe session
has no output, then check (Layer 1):show pppoe session
has no virtual access interface output, then check (Layer 2):show interface dialer <num>
shows the interface as up & up (spoofing)
?Example troubleshooting output:
Router#show controllers serial 0/0/1
Interface Serial0/0/1
Hardware is SCC
DTE V.35 RX clock detected.
Router#show ppp multilink
Multilink1
Bundle name: R2
Remote Endpoint Discriminator: [1] R2
Local Endpoint Discriminator: [1] R1
Bundle up for 00:06:00, total bandwidth 3088, load 1/255
Receive buffer limit 24000 bytes, frag timeout 1000 ms
0/0 fragments/bytes in reassembly list
0 lost fragments, 3 reordered
0/0 discarded fragments/bytes, 0 lost received
0x26 received sequence, 0x2A sent sequence
Member links: 2 active, 0 inactive (max 255, min not set)
Se0/0/0, since 00:06:00
Se0/1/0, since 00:05:53
No inactive multilink interfaces
Router#show pppoe session
1 client session
Uniq ID PPPoE RemMAC Port VT VA State
SID LocMAC VA-st Type
N/A 1 30f7.0da3.1641 Gi0/1 Di2 Vi2 UP
30f7.0da3.0da1 UP
Router#show interfaces serial 0/0/1
Serial0/0/1 is up, line protocol is up
Hardware is GT96K Serial
Internet address is 10.100.0.2/12
MTU 1500 bytes, BW 1544 Kbit/sec, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation PPP, LCP Open
Open: IPCP, CDPCP, Loopback not set
Keepalive set (10sec)
Last input never, output never, output hang never
Last clearing of "show interface" counters 07:09:39
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/0/256 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
Available Bandwidth 1158 kilobits/sec
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 2 interface resets
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions
DCD=up DSR=up DTR=down RTS=down CTS=up
Router#show interfaces dialer 2
Dialer2 is up, line protocol is up (spoofing)
Hardware is Unknown
Internet address is 10.1.3.1/32
MTU 1492 bytes, BW 56 Kbit/sec, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation PPP, LCP Closed, loopback not set
Keepalive set (10 sec)
DTR is pulsed for 1 seconds on reset
Define physical interface public IP:
Router(config)#interface <int>
Router(config-if)#ip address <public-ip> <mask>
public-ip
is the public IP used for the point-to-point connection across the WANDefine the tunnel:
Router(config)#interface tunnel <num>
num
is only locally uniqueRouter(config-if)#tunnel mode gre ip
Router(config-if)#tunnel source <src>
src
can be a local interface or IP on the WANRouter(config-if)#tunnel destination <dst>
dst
can be an IP or hostname for the tunnel endpoint across the WANRouter(config-if)#ip address <private-ip> <mask>
private-ip
is used for the point-to-point private connection inside the tunnelCommon Issues:
permit ip ...
or permit gre ...
Example troubleshooting output:
Router#show interfaces tunnel 0
Tunnel0 is up, line protocol is up
Hardware is Tunnel
Internet address is 192.168.1.2/24
MTU 1514 bytes, BW 8000000 Kbit/sec, DLY 5000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation TUNNEL, Loopback not set
keep alive not set
Tunnel Source 10.10.10.2 (Serial0/0/1) , destination 10.10.10.1
Tunnel Subblocks:
src-tracks:
Tunnel0 source tracking sub block associated with Serial0/0/1
set of tunnel with sourceSerial0/0/1 , 1 member (includes iterators)
, on interface<OK>
Tunnel protocol/Transport GRE/IP
keep disabled, sequencing disabled
Tunnel 255, Fast tunnelling enabled
Tunnel transport MTU 1476 bytes
Tunnel transmit bandwidth 8000 (kbps)
Tunnel receive bandwidth 8000 (kpbs)
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/0 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 output buffer failures, 0 output buffers swapped out
Router#show ip route connected
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is 172.16.1.2 to network 0.0.0.0
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.1.1.0/24 is directly connected, GigabitEthernet0/0
L 1.1.1.1/32 is directly connected, GigabitEthernet0/0
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.16.1.0/24 is directly connected, Tunnel0
L 172.16.1.1/32 is directly connected, Tunnel0
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.0/30 is directly connected, Serial0/0/0
L 192.168.1.1/32 is directly connected, Serial0/0/0
Router#show ip interface brief
Interface IP-Address OK? METHOD Status Protocol
GigabitEthernet0/0 1.1.1.1 YES NVRAM up up
GigabitEthernet0/1 unassigned YES NVRAM administratively down down
Serial0/0/0 192.168.1.1 YES NVRAM up up
Serial0/0/1 unassigned YES NVRAM administratively down down
Tunnel0 172.16.1.1 YES NVRAM up up
Adding notes to an ACL (named & numbered):
Router(config)#access-list <num> remark <msg>
Router(config-std-nacl)#remark <msg>
Router(config-ext-nacl)#remark <msg>
Special IP and wildcard mask combinations:
host <ip>
= <ip> 0.0.0.0
any
= x.x.x.x 255.255.255.255
host <ipv6>
= <ipv6>/128
any
= ::/0
Numbered ACL definition:
Router(config)#access-list <num> <permit|deny> <src> <wildcard> [log]
num
must be in ranges 1-99 or 1300-1999log
keyword enables notificational logging (level 6) for matching packetsNamed ACL definition:
Router(config)#ip access-list standard <num|name>
num
must be in ranges 1-99 or 1300-1999 if usedRouter(config-std-nacl)#<seq> <permit|deny> <src> <wildcard>
seq
is the sequence number for this rule in the listNumbered ACL definition:
Router(config)#access-list <num> <permit|deny> <proto> <src> <wc> <dst> <wc> [log]
num
must be in ranges 100-199 or 2000-2699log
keyword enables notificational logging (level 6) for matching packetsproto
is the transport layer protocol keyword (ip
, tcp
, udp
, icmp
, gre
, ospf
, eigrp
)eq
, lt
, ne
, gt
, range
)Named ACL definition:
Router(config)#ip access-list extended <num|name>
num
must be in ranges 100-199 or 2000-2699 if usedRouter(config-ext-nacl)#<seq> <permit|deny> <proto> <src> <wildcard> <dst> <wildcard>
seq
is the sequence number for this rule in the listproto
is the transport layer protocol keyword (ip
, tcp
, udp
, icmp
, gre
, ospf
, eigrp
)eq
, lt
, ne
, gt
, range
)Common application ports to know:
Port | Protocol | Application | Extended ACL keyword |
---|---|---|---|
20 | TCP | FTP Data | ftp-data |
21 | TCP | FTP Control | ftp |
22 | TCP | SSH | - |
23 | TCP | Telnet | telnet |
25 | TCP | SMTP | smtp |
53 | UDP (TCP) | DNS | domain |
67 | UDP | DHCP Server | bootps |
68 | UDP | DHCP Client | bootpc |
69 | UDP | TFTP | tftp |
80 | TCP | HTTP | www |
110 | TCP | POP3 | pop3 |
161 & 162 | UDP | SNMP | snmp |
443 | TCP | SSL | - |
514 | UDP | SYSLOG | - |
Similar to IPv4 ACLs with the following notes:
Router(config)#ipv6 access-list <name>
Router(config-ipv6-acl)#<permit|deny> <ipv6|icmp|tcp|...> <src> <dst>
Router(config-if)#ipv6 traffic-filter <name> <in|out>
Router(config-line)#ipv6 access-class <name> <in|out>
deny any any
but also have the following implicit permits:permit icmp any any nd-na
permit icmp any any nd-ns
permit icmp any any router-advertisement
permit icmp any any router-solicitation
Common Issues:
ACL rules ordered most to least specific?
deny icmp any any
deny ipv6 ff00::/8 any
deny ipv6 any ff0::/8
Example troubleshooting output:
Router#show ip access-lists
Extended IP access list 100
10 permit icmp any host 172.30.4.190
20 deny icmp any 172.30.4.128 0.0.0.63
30 permit tcp any host 172.30.4.190 eq 22
40 permit tcp any host 172.30.4.129 eq 22
50 deny tcp any host 172.30.4.129 eq telnet
60 deny tcp any host 172.30.4.190 eq telnet
70 permit ip any any
Router#show ipv6 access-lists
Ipv6 access list advanceipv6
permit icmp host 3001::1 any sequence 10
permit icmp host 3000::1 any sequence 20
deny icmp 3000::/64 any sequence 30
permit tcp host 3000::1 eq 22 any sequence 40
permit tcp host 2750::2 eq 22 any sequence 50
deny tcp host 3000::1 eq telnet any sequence 60
deny tcp host 2750::2 eq telnet any sequence 70
permit ipv6 any any sequence 80
Router#show ip interface serial 0/0/0
Serial0/0/0 is up, line protocol is up
Internet address is 172.30.4.230/30
Broadcast address is 255.255.255.255
Address determined by non-volatile memory
MTU is 1500 bytes
Helper address is not set
Directed broadcast forwarding is disabled
Multicast reserved groups joined: 224.0.0.10
Outgoing access list is not set
Inbound access list is 100
Proxy ARP is enabled
Local Proxy ARP is disabled
Security level is default
Split horizon is enabled
ICMP redirects are always sent
ICMP unreachables are always sent
ICMP mask replies are never sent
IP fast switching is enabled
IP fast switching on the same interface is disabled
IP Flow switching is disabled
IP CEF switching is enabled
IP CEF Fast switching turbo vector
IP multicast fast switching is enabled
IP multicast distributed fast switching is disabled
IP route-cache flags are Fast, CEF
Router Discovery is disabled
IP output packet accounting is disabled
IP access violation accounting is disabled
TCP/IP header compression is disabled
RTP/IP header compression is disabled
Policy routing is disabled
Network address translation is disabled
BGP Policy Mapping is disabled
Input features: MCI Check
Output features: Post-Ingress-NetFlow
IPv4 WCCP Redirect outbound is disabled
IPv4 WCCP Redirect inbound is disabled
IPv4 WCCP Redirect exclude is disabled
Enable IPv4/IPv6 routing:
Switch(config)#sdm prefer lanbase-routing
reload
before enabling IP routing with the next commandSwitch(config)#sdm prefer dual-ipv4-and-ipv6
Switch(config)#ip routing
Define a Layer 3 switch SVI (logical):
Switch(config)#interface vlan <num>
Switch(config-if)#ip address <ip> <mask>
Define a Layer 3 Switch Routed Port (physical):
Switch(config-if)#no switchport
Switch(config-if)#ip address <ip> <mask>
Define a Layer 3 Switch EtherChannel (Layer 3):
Switch(config)#interface <int>
Switch(config-if)#no switchport
Switch(config-if)#no ip address
Switch(config-if)#channel-group <num> mode <on|active|passive|desirable|auto>
num
must match locally defined EtherChannel interface numberon
for always enabledSwitch(config)#interface port-channel <num>
num
must match locally on all physical interfaces in EtherChannelSwitch(config-if)#no switchport
Switch(config-if)#ip address <ip> <mask>
Defining a subinterface for per-VLAN traffic:
Router(config)#interface gigabitEthernet 0/<subint>
subint
is a number to represent the VLAN interface on the trunk (eg 0.10
for VLAN 10)subint
does not need to match the VLAN ID on the trunkRouter(config-subif)#encapsulation <dot1q|isl> <vlan> [native]
vlan
is the encapsulated VLAN ID on the trunk matching this subnet. It must match the VLAN ID configured on the switch.native
keyword is used to specify the native VLAN on the trunk that the switch sends untaggedRouter(config-subif)#ip address <ip> <mask>
Defining native VLAN on physical interface (for untagged traffic):
Router(config)#interface <int>
Router(config-if)#ip address <ip> <mask>
Common Issues:
sdm prefer
or ip routing
?native
keyword on wrong subinterface?switchport
(L2) not disabled on all interfaces and channel?Example troubleshooting output:
Router#show vlan
Virtual LAN ID: 1 IEEE 802.1Q Encapsulation
vLAN Trunk Interfaces: GigabitEthernet0/0
This is configured as native vlan for the following interface(s):
GigabitEthernet0/0 Native-vlan Tx-type:Untagged
Protocols Configured: Address: Received: Transmitted:
IP 100.100.100.65 0 0
other 0 0
0 packets, 0 bytes input
0 packets, 0 bytes output
Virtual LAN ID: 10 IEEE 802.1Q Encapsulation
vLAN Trunk Interfaces: GigabitEthernet0/0.100
Protocols Configured: Address: Received: Transmitted:
0 packets, 0 bytes input
0 packets, 0 bytes output
Virtual LAN ID: 20 IEEE 802.1Q Encapsulation
vLAN Trunk Interfaces: GigabitEthernet0/0.150
Protocols Configured: Address: Received: Transmitted:
IP 100.100.100.129 0 0
other 0 0
0 packets, 0 bytes input
0 packets, 0 bytes output
Router#show ip interface brief
Interface IP-Address OK? METHOD Status Protocol
GigabitEthernet0/0 100.100.100.65 YES NVRAM up up
GigabitEthernet0/0.150 100.100.100.129 YES NVRAM up up
GigabitEthernet0/0.100 unassigned YES NVRAM up up
GigabitEthernet0/1 unassigned YES NVRAM administratively down down
Serial0/0/0 192.168.1.1 YES NVRAM up up
Serial0/0/1 unassigned YES NVRAM administratively down down
Switch#show ip interface brief
Interface IP-Address OK? METHOD Status Protocol
FastEthernet0/1 unassigned YES NVRAM up up
FastEthernet0/2 unassigned YES NVRAM down down
FastEthernet0/3 unassigned YES NVRAM down down
FastEthernet0/4 unassigned YES NVRAM down down
FastEthernet0/5 unassigned YES NVRAM down down
FastEthernet0/6 unassigned YES NVRAM down down
FastEthernet0/7 unassigned YES NVRAM down down
FastEthernet0/8 unassigned YES NVRAM down down
FastEthernet0/9 unassigned YES NVRAM down down
FastEthernet0/10 unassigned YES NVRAM up up
FastEthernet0/11 unassigned YES NVRAM up up
FastEthernet0/12 unassigned YES NVRAM down down
FastEthernet0/13 unassigned YES NVRAM down down
FastEthernet0/14 unassigned YES NVRAM down down
FastEthernet0/15 unassigned YES NVRAM down down
FastEthernet0/16 unassigned YES NVRAM down down
FastEthernet0/17 unassigned YES NVRAM down down
FastEthernet0/18 unassigned YES NVRAM down down
FastEthernet0/19 unassigned YES NVRAM down down
FastEthernet0/20 unassigned YES NVRAM down down
FastEthernet0/21 unassigned YES NVRAM down down
FastEthernet0/22 unassigned YES NVRAM down down
FastEthernet0/23 unassigned YES NVRAM down down
FastEthernet0/24 unassigned YES NVRAM down down
GigabitEthernet0/1 unassigned YES NVRAM up up
GigabitEthernet0/2 unassigned YES NVRAM up up
Vlan1 unassigned YES NVRAM up up
Vlan69 10.10.69.1 YES NVRAM up up
Vlan70 10.10.70.1 YES NVRAM up down
Enable on an interface:
Router(config-if)#standby <group> ip <virtual-ip>
group
must be globally unique across all routers in this HSRP groupDefine group priority:
Router(config-if)#standby <group> priority <priority>
Enable preemption:
Router(config-if)#standby <group> preempt
Define version:
Router(config-if)#standby version <1|2>
Define timers:
Router(config-if)#standby <group> timers <hello> <hold>
hello
and hold
are in secondsDefine interface priority tracking:
Router(config)#track <track-num> <interface> line-protocol
Router(config-if)#standby <group> track <track-num> decrement <priority-dec>
priority-dec
will be decrimented from the HSRP group number group
‘s priority if interface interface
‘s line protocol changes stateHSRP/VRRP version differences:
Differences | HSRP Version 1 | HSRP Version 2 | VRRP |
---|---|---|---|
IPv6 Support | No | Yes | v2 No & v3 Yes |
Smallest Hello/Hold Timer Unit | seconds | milliseconds | milliseconds |
Group Number Range | 0 - 255 | 0 - 4095 | 0 - 255 |
Virtual MACs Used (x = group number) |
0000.0C07.ACxx |
0000.0C9F.Fxxx |
0000.5E00.01xx |
IPv4 Multicast Addresses Used | 224.0.0.2 | 224.0.0.102 | 224.0.0.18 |
Require a Unique Router ID? | No | Yes | Yes |
Preemption Enabled By Default? | No | No | Yes |
Common Issues:
Example troubleshooting output:
Router#show standby
GigabitEthernet0/0 - Group 2
State is Standby
6 State changes last change is 00:00:25
Virtual IP address is 10.10.10.15
Active virtual MAC address is 0000.0c07.ac02
Local virtual MAC address is 0000.0c07.ac02 (v1 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 0.752 secs
Preemption enabled
Active router is 10.10.10.1, priority 100 (expires in 8.080 sec)
Standby router is local
Priority 90 (configured 140)
Track object 1 state Down decrement 50
Group name is "hsrp-g0/0-2" (default)
GigabitEthernet0/0 - Group 1
State is Standby
4 State changes last change is 00:00:25
Virtual IP address is 10.10.10.10
Active virtual MAC address is 0000.0c07.ac01
Local virtual MAC address is 0000.0c07.ac01 (v1 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 0.752 secs
Preemption enabled
Active router is 10.10.10.1, priority 140 (expires in 8.080 sec)
Standby router is local
Priority 50 (default 100)
Track object 1 state Down decrement 50
Group name is "hsrp-g0/0-1" (default)
NOTE: SNMP servers are valid on Routers and Switches. The below configuration examples may also be run on a Switch.
Terminology:
1.3.6.12.19
)Define server location & contact:
Router(config)#snmp-server location <msg>
Router(config)#snmp-server contact <msg>
Enable SNMP traps:
Router(config)#snmp-server enable traps
Define a community string:
Router(config)#snmp-server community <password> <ro|rw> [ipv6 <acl>] [<acl>]
password
must match on both SNMP NMS and agent ro
defines a read only password that only allows for SNMP Get Requests from NMS to agent rw
defines a read & write password that allows for SNMP Get & Set Requests from NMS to agentacl
can be IPv6 or IPv4 and is applied to incoming traffic to the agentDefine an NMS to receive traps from agent:
Router(config)#snmp-server host <address> traps version 1 <password>
address
is the IP or hostname of the NMSpassword
is the community string shared with the NMSDefine a community string:
Define an NMS to receive traps from agent:
Router(config)#snmp-server host <address> <traps|informs> version 2c <password>
inform
optiontrap
but requires ACK from NMS for error recoveryDefine a group:
Router(config)#snmp-server group <name> v3 <noauth|auth|priv> [write v1default] [access [ipv6] <acl>]
name
is the name of the groupv1default
is the default MIB view that gives access to the majority of the MIBacl
is the same as SNMP versions 1 & 2cnoauth|auth|priv
differences:
noauth
| Yes | No | No |auth
| Yes | Yes | No |priv
| Yes | Yes | Yes |Define a user:
Router(config)#snmp-server user <name> <group> v3 [auth <options>] [priv <options>]
name
is the usernamegroup
is the group for this userauth
option is required only if user’s group has auth
or priv
enabledpriv
oprion is required onyl if user’s group has priv
enabledDefine an NMS to receive traps from agent:
Router(config)#snmp-server host <address> version 3 <noauth|auth|priv> <username>
address
is the IP or hostname of the NMSusername
is the username allows to receive trapsnoauth|auth|priv
option must match the group option set for the username
Common Issues:
snmp-server user
missing auth
and/or priv
to match the group’s setting?Example troubleshooting output:
Router#show snmp chassis
69696969
Router#show snmp contact
Dude Bro (420) 420-6969
Router#show snmp location
The sun dude...
Router#show snmp community
Community name: ILMI
Community Index: cisco0
Community Securityname: ILMI
storage-type: read only active
Community name: keep-it-safe
Community Index: cisco1
Community Securityname: keep-it-safe
storage-type: read write active
Community name: keep-it-safe@1
Community Index: cisco2
Community Securityname: keep-it-safe@1
storage-type: read write active
Community name: keep-it-secret
Community Index: cisco2
Community Securityname: keep-it-secret
storage-type: read only active
Community name: keep-it-secret@1
Community Index: cisco3
Community Securityname: keep-it-secret@1
storage-type: read only active
Router#show snmp host
Notification host: 1.1.1.1 udp-port: 162 type: trap
user: this-is-old-school security model: v1
Notification host: 192.168.69.69 udp-port: 162 type: trap
user: this-is-secret-i-think security model: v2c
Notification host: 10.10.10.100 udp-port: 162 type: trap
user: dude security model: v3 priv
Define an SLA:
Router(config)#ip sla <num>
Enable an SLA forever starting now:
Router(config)#ip sla schedule <num> start-time now life forever
num
is the SLA number configured locallyDefine an ICMP Echo SLA:
Router(config-ip-sla)#icmp-echo <ip>
ip
is the target you wish to marry this SLA toRouter(config-ip-sla-echo)#frequency <seconds>
Common Issues:
Example troubleshooting output:
Router#show ip sla summary
IPSLAs Latest Operation Summary
Codes : * active, ^ inactive, ~ pending
ID Type Destination Stats Return Code Last Run
*6969 icmp-echo 10.10.10.10 - timeout 4 seconds ago
Router#show ip sla statistics
IPSLAs Latest Operation Statistic
IPSLA operation id:6969
Latest RTT: NoConnection/Busy/Timeout
Latest operation start time: Sat Feb 15 17:11:26 PST 2020
Latest operation return code: timeout
Number of successes: 0
Number of failures: 1
Operation time to live: forever
Router#show ip sla configuration
IP SLAs Infrastructure Engine- III
Entry Number: 6969
Owner:
Tag:
Operation timeout(milliseconds): 5000
Type of operation to perform: icmp-echo
Target address/Source address: 10.10.10.10/0.0.0.0
Type of Service parameter: 0x0
Request Size (ARR data portion): 28
verify data: No
vrf Name:
Schedule:
Operation frequency (seconds): 69 (not considered if randomly schedule)
Next Scehduled Start Time: Start time already passed
Group Scheduled : FALSE
Randomly Scheduled : FALSE
Life (seconds) : forever
Entry Ageout (seconds): Never
Recurring (Starting everyday) : FALSE
Status of entry (SNMP rowstatus): Active
Threshold (milliseconds): 5000
destribution Statistics:
Number of statistic hours kept: 2
Number of statistic distribution buckets kept: 1
Statistic distribution interval (milliseconds): 20
Enhanced history:
History Statistics:
Number of history Lives kept: 0
Number of history Buckets kept: 15
History Filter Type: None
Define sources:
Switch(config)#monitor session <num> source <source> <rx|tx|both>
num
must match on all local source ports in this SPANsource
can be a VLAN or physical interface (which can also be a trunk)both
is the default SPAN directionDefine destinations:
Switch(config)#monitor session <num> destination interface <dest>
num
must match on all local destination ports and must match all source ports in SPANdest
must be a local interface number unless using remote SPANCommon Issues:
Example troubleshooting output:
Switch#show monitor
Session 1
----------
Type : Local Session
Source Ports :
Boths : Fa0/1-2
rx Only : Gi0/1-2
tx Only : Fa0/11
Destination Ports : Fa0/9-10
Encapsulation : Native
Ingress : Disabled