项目作者: a-rey

项目描述 :
CISCO configuration guides
高级语言:
项目地址: git://github.com/a-rey/CISCO_configs.git
创建时间: 2020-01-28T23:11:37Z
项目社区:https://github.com/a-rey/CISCO_configs

开源协议:MIT License

下载


CISCO CCNA Routing & Switching (ICND1 & 2) Configuration Guide

VLANs

Define on an interface:

  • Switch(config-if)#switchport access vlan <vlan>
  • All interfaces are in VLAN1 (the default VLAN) by default

Define globally:

  • Switch(config)#vlan <vlan>
  • Switch(config)#name <vlan-name>
  • Switch(config-vlan)#exit
    • VLAN not created until exiting VLAN configuration mode

Voice VLAN

Define on an interface:

  • Switch(config-if)#switchport voice vlan <num|none|untagged|dot1p>
    • Must have CDP enabled on port
    • num is the numerical VLAN ID

Troubleshooting

Issues:

  1. VLAN does not exist?
    1. Did you exit VLAN configuration mode?

Example troubleshooting output:

  1. Switch#show vlan summary
  2. Number of existing VLANs : 3
  3. Number of existing VTP VLANs : 3
  4. Number of existing extended VLANs : 0
  1. Switch#show vlan brief
  2. VLAN Name Status Ports
  3. ---- -------------------------------- --------- -------------------------------
  4. 1 default active fa0/2, fa0/3, fa0/4, fa0/5
  5. fa0/6, fa0/7, fa0/8, fa0/9
  6. fa0/10, fa0/11, fa0/12, fa0/13
  7. fa0/14, fa0/15, fa0/16, fa0/17
  8. fa0/18, fa0/19, fa0/20, fa0/21
  9. fa0/22, fa0/23, fa0/24, gi0/1
  10. gi0/2
  11. 10 VLAN0010 active fa0/1
  12. 11 VLAN0011 active
  13. 1002 fddi-default act/unsup
  14. 1003 token-ring-default act/unsup
  15. 1004 fddinet-default act/unsup
  16. 1005 trnet-default act/unsup
  1. Switch#show vlan id 11
  2. VLAN Name Status Ports
  3. ---- -------------------------------- --------- -------------------------------
  4. 11 VLAN0011 active
  5. VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
  6. ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
  7. 11 enet 100011 1500 - - - - - 0 0
  8. Remote SPAN VLANs
  9. ------------------------------------------------------------------------------
  10. Primary Secondary Type Ports
  11. ------- --------- ----------------- ------------------------------------------
  12. Switch#
  1. Switch#show mac address-table dynamic
  2. Mac Address Table
  3. -------------------------------------------
  4. Vlan Mac Address Type Ports
  5. ---- ----------- ---- -----
  6. 12 0200.1111.1111 dynamic Fa0/11
  7. 12 0200.2222.2222 dynamic Gi0/1
  8. 11 0200.3333.3333 dynamic Gi0/1
  9. 11 0200.4444.4444 dynamic Gi0/1

Trunks

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>

Dynamic Trunking Protocol

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

Troubleshooting

Common Issues:

  1. VLAN not allowed on trunk?
  2. Bad DTP paramaters (eg auto&auto or access&desirable)?
  3. Native VLANs don’t match?
  4. Incorrect encapsulation (ISL vs 802.1Q)?

Example troubleshooting output:

  1. Switch#show interfaces trunk
  2. Port Mode Encapsulation Status Native vlan
  3. Fa0/2 on 802.1q not-trunking 1
  4. Port Vlans allowed on trunk
  5. Fa0/2 1-4094
  6. Port Vlans allowed and active in management domain
  7. Fa0/2 1,10-12
  8. Port Vlans in spanning tree forwarding state and not pruned
  9. Fa0/2 1,10-11
  1. Switch#show interfaces fastEthernet 0/2 switchport
  2. Name: FastEthernet0/2
  3. Switchport: Enabled
  4. Administrative Mode: trunk
  5. Operational Mode: trunk
  6. Administrative Trunking Encapsulation: dot1q
  7. Negotiation of Trunking: true
  8. Access Mode VLAN: none
  9. Trunking Native Mode VLAN: 1 (default)
  10. Trunking VLANs Enabled:
  11. Trunking VLANs Active: active
  12. Priority for untagged frames: 0
  13. Override vlan tag priority: FALSE
  14. Voice VLAN: none
  15. Appliance trust: none

VLAN Trunking Protocol

Set VTP domain/password:

  • Switch(config)#vtp domain <domain-name>
  • Switch(config)#vtp password <password>
  • Domain and password must match (case sensitive) on all devices in VTP domain
  • Both are unset by default

Set VTP mode:

  • Switch(config)#vtp mode <server|client|transparent|off>
    • server mode is the default
Function 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>
    • Version 1 is the default

Enable VTP pruning:

  • Switch(config)#vtp pruning
    • Disabled by default

Troubleshooting

Common Issues:

  1. Passwords don’t match (check MD5 digest)?
  2. VTP domain names don’t match?
    1. These are case sensitive!
  3. VTP operating modes don’t match?
  4. VLANs not syncing?
    1. Check revision number?
      1. Highest revision number wins!
    2. Check VTP pruning?
      1. Maybe the VLANs are not supposed to be there in the first place…

Example troubleshooting output:

  1. Switch#show vtp status
  2. VTP Version capable : 1 to 3
  3. VTP Version running : 3
  4. Configuration Revision : 0
  5. Maximum VLANs supported locally : 255
  6. Number of existing VLANs : 7
  7. VTP Operating Mode : Server
  8. VTP Domain Name : test-domain-name
  9. VTP Pruning Mode : Enable
  10. VTP V2 Mode : Disabled
  11. VTP Traps Generation : Disabled
  12. MD5 digest : ddd4 ad64 4a9f a191 96a4 e053 b433
  13. Configuration last modified by 0.0.0.0 at 1-30-2020 19:40:05

Spanning Tree Protocol

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 now
    • secondary: priority will be 28672
  • Switch(config)#spanning-tree vlan <vlan> priority <priority>
    • Default base priority is 32768 (VLAN ID is added to this value)

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

PortFast

Enable globally on all interfaces:

  • Switch(config)#spanning-tree portfast default

Enable or disable per interface:

  • Switch(config-if)#spanning-tree portfast [disable]

BPDU Guard

Enable globally:

  • Switch(config)#spanning-tree portfast bpduguard default
  • Only gets enabled on interfaces with PortFast already enabled

Enable or disable per interface:

  • Switch(config-if)#spanning-tree bpduguard <enable|disable>

Troubleshooting

Common Issues:

  1. Root node in the wrong place?
    1. Check VLAN priorities (root node should have the most trunks connected to it)
  2. Weird path to root node?
    1. Check for non-default costs along path
  3. Trunk interfaces down?
    1. Check for BPDU guard and PortFast

Example troubleshooting output:

  1. Switch#show spanning-tree vlan 1
  2. VLAN0001
  3. Spanning tree enabled protocol ieee
  4. Root ID Priority 24577
  5. Address 0019.e86a.2280
  6. Cost 4
  7. Port 25 (GigabitEthernet0/1)
  8. Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
  9. Bridge ID Priority 28673 (priority 28672 sys-id-ext 1)
  10. Address 0019.e86a.1180
  11. Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
  12. Aging Time 300
  13. Interface Role Sts Cost Prio.Nbr Type
  14. ---------------- ---- --- --------- -------- --------------------------------
  15. Fa0/1 Desg FWD 19 128.1 P2p
  16. Fa0/11 Desg FWD 19 128.11 P2p
  17. Gi0/1 Root FWD 4 128.25 P2p
  18. Gi0/2 Desg FWD 4 128.26 P2p
  1. Switch#show spanning-tree bridge
  2. Hello Max Fwd
  3. Vlan Bridge ID Time Age Dly Protocol
  4. ---------------- --------------------------------- ----- --- --- --------
  5. VLAN0001 28673(28672, 1) 0019.e86a.1180 2 20 15 ieee
  6. VLAN0022 32790(32768, 22) 0019.e86a.1180 2 20 15 ieee
  7. VLAN0045 32813(32768, 45) 0019.e86a.1180 2 20 15 ieee
  1. Switch#show spanning-tree root
  2. Root Hello Max Fwd
  3. Vlan Root ID Cost Time Age Dly Root Port
  4. ---------------- -------------------- --------- ----- --- --- ------------
  5. VLAN0001 24577 0019.e86a.2280 4 2 20 15 Gi0/1
  6. VLAN0022 32790 0019.e86a.1180 0 2 20 15
  7. VLAN0045 32813 0019.e86a.1180 0 2 20 15
  1. Switch#show spanning-tree interface FastEthernet 0/1 portFast
  2. VLAN0001 disabled
  3. VLAN0002 disabled
  4. VLAN0045 disabled
  1. Switch#show spanning-tree interface FastEthernet 0/1
  2. Vlan Role Sts Cost Prio.Nbr Type
  3. ------------------- ---- --- --------- -------- --------------------------------
  4. VLAN0001 Desg FWD 19 128.1 P2p
  5. VLAN0002 Desg FWD 19 128.1 P2p
  6. VLAN0045 Desg FWD 19 128.1 P2p
  1. Switch#show spanning-tree interface FastEthernet 0/11 detail
  2. Port 11(FastEthernet0/11) of VLAN0001 is designated forwarding
  3. Port path cost 0, Port priority 128 ,Port Identifier 128.11
  4. Designated root has priority 32769, address 0019.e86a.1180
  5. Designated bridge has priority 32769, address 0019.e86a.1180
  6. Designated port id is 128.11 ,designated path cost 0
  7. Timers: message age 1,forward delay 0,hold 0
  8. Number of transition to forwarding state: 1
  9. The port is in the portfast mode
  10. Link type is point-to-point by default
  11. Bpdu guard is enabled by default
  12. BPDU: sent 12, received 5

EtherChannel (Layer 2)

Define static channel:

  • Switch(config-if-range)#channel-group <number> mode on
  • number does not need to match on both devices
  • number must match for all interfaces in local Etherchannel

PAgP

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

LACP

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

Troubleshooting

Common Issues:

  1. Etherchannel interface up&down?
    1. Check for PAgP/LACP dynamic channel miss matches
    2. Other device missing Etherchannel configuration?

Example troubleshooting output:

  1. Switch#show etherchannel summary
  2. Flags: D - down P - in port-channel
  3. I - stand-alone s - suspended
  4. H - Hot-standby (LACP only)
  5. R - Layer3 S - Layer2
  6. u - unsuitable for bundling
  7. U - in use f - failed to allocate aggregator
  8. d - default port
  9. Number of channel-groups in use: 1
  10. Number of aggregators: 1
  11. Group Port-channel Protocol Ports
  12. ------+-------------+-----------+----------------------------------------
  13. 1 Po1(SU) PagP Fa0/1(P) Fa0/2(P)

OSPF (v2)

Enable with a process ID:

  • Router(config)#router ospf <process-id>
    • process-id needs to be locally unique

Define max number of OSPF routes used for equal cost load balancing:

  • Router(config-router)#maximum-paths <max>
    • Default max is 4
    • Set max to 1 to disable load balancing

Define a passive OSPF interface:

  • Router(config-router)#passive-interface <interface>
  • Can also enable globally:
    • 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 exist

Specify interfaces to advertise/learn on:

  • Router(config-router)#network <network> <wildcard> area <area>
    • If an interface matches 2 different network statements, the first one that was configured is used as the area and mask
  • Router(config-if)#ip ospf <process-id> area <area>
    • Interface ospf area configuration is prefered over the network command if both are configured and match an interface

Manually specify Router ID (RID):

  • Router(config-router)#router-id <rid>
    • RID selection priority ranking:
      1. router-id command value
      2. Highest Loopback interface IP (does not need to be OSPF enabled!)
      3. Highest interface IP (does not need to be OSPF enabled!)
    • Changing RID at runtime requires OSPF neighbor discovery to be restarted:
      • Router# clear ip ospf process
      • Router# reload

Adjusting timers:

  • Hello timer: Router(config-if)#ip ospf hello-interval <seconds>
    • Default is 10 seconds for Ethernet interfaces
    • Default is 30 seconds for Serial interfaces
  • Dead timer: Router(config-if)#ip ospf dead-interval <seconds>
    • Default is 4 * hello timer value
    • Changing the hello timer will automatically change the dead timer to 4x the value set

Cost

Adjusting interface cost:

  • Manually:

    • Router(config-if)#ip ospf cost <cost>
  • By interface bandwidth:
    • Router(config-if)#bandwidth <bandwidth in Kbps>
      • Find interface default bandwidth in Kbps:
        • Router#show interface <int>
  • By reference bandwidth:
    • Router(config-router)#auto-cost reference-bandwidth <bandwidth in Mbps>
      • Default is 100000 bps or 100 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 |

IPv6 (OSPFv3)

Same as IPv4 with the following notes:

  • OSPF neighbors do not need to be in the same subnet (with global or unique local addresses) since they use link-local addresses to communicate directly instead
    • When looking at the output of 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 locally
  • OSPF RID is set the same way and selection priority is done the same way (using IPv4 addresses)
  • OSPFv3 uses ipv6 instead of the ip configuration command for all the same commands
  • OSPFv3 uses the same OPSFv2 interface configuration assignment to enable OSPF on an interface
    • Router(config-if)#ipv6 ospf <process-id> area <area>
    • OSPFv3 does not allow the use of the OSPFv1 network command to assign OSPF enabled interfaces
  • OPSFv2’s 224.0.0.5 is FF02::5 in OPSFv3 for neighbor relationship forming
  • OPSFv2’s 224.0.0.6 is FF02::6 in OPSFv3 for DR & BDR communication

Troubleshooting

Common Issues:

  1. No OSPF neighbors…
    1. Authentication values incorrect?
    2. Local interfaces not in an up&up state?
    3. OSPF neighbor interfaces not in the same subnet?
    4. ACL blocking routing protocol packets to 224.0.0.5 and/or 224.0.0.6?
    5. Non-matched hello/dead timer values?
    6. Non-unique RIDs?
    7. Areas do not match?
    8. MTUs do not match?
  2. Bad area design…
    1. Interfaces in the same subnet but also in different areas?
    2. Current area not touching an area border router (ABR)?
      1. Unless using a virtual link, all areas must have a connection to the backbone area (area 0)
  3. Passive interfaces…
    1. show ip ospf interface brief shows even passive interfaces!
      • Use show ip protocols to deconflict

Example troubleshooting output:

  1. Router#show ip protocols
  2. *** IP Routing is NSF aware ***
  3. Routing Protocol is "ospf 10"
  4. Outgoing update filter list for all interfaces is not set
  5. Incoming update filter list for all interfaces is not set
  6. Router ID 172.16.24.9
  7. Number of areas in this router is 1. 1 normal 0 stub 0 nssa
  8. Maximum path: 4
  9. Routing for Networks:
  10. 172.16.24.9 0.0.0.0 area 3
  11. 172.16.20.0 0.0.3.255 area 0
  12. Routing Information Sources:
  13. Gateway Distance Last Update
  14. 172.16.24.10 110 02:07:17
  15. Distance: (default is 110)
  1. Router#show ip ospf interface brief
  2. Interface PID Area IP Address/Mask Cost State Nbrs F/C
  3. Gi0/0 1 0 10.10.10.1/24 1 DR 0/0
  4. Se0/0/0 1 2 10.0.1.1/30 64 P2P 1/1
  5. Se0/0/1 1 3 10.0.1.5/30 64 P2P 1/1
  6. Se0/1/0 1 4 10.0.1.9/30 64 P2P 1/1
  1. Router#show ip ospf interface Serial 0/0/0
  2. Serial0/0/0 is up, line protocol is up
  3. Internet Address 172.16.24.9/30, Area 3
  4. Process ID 10, Router ID 172.16.24.9, Network Type POINT_TO_POINT, Cost: 64
  5. Transmit Delay is 1 sec, State POINT_TO_POINT,
  6. Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
  7. oob-resync timeout 40
  8. Hello due in 00:00:2
  9. Supports Link-local Signaling (LLS)
  10. Index 1/2, flood queue length 0
  11. Next 0x0(0)/0x0(0)
  12. Last flood scan length is 1, maximum is 1
  13. Last flood scan time is 0 msec, maximum is 0 msec
  14. Neighbor Count is 1, Adjacent neighbor count is 1
  15. Adjacent with neighbor 172.16.24.10
  16. Suppress hello for 0 neighbor(s)
  1. Router#show ip route ospf
  2. Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
  3. D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
  4. N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
  5. E1 - OSPF external type 1, E2 - OSPF external type 2
  6. i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
  7. ia - IS-IS inter area, * - candidate default, U - per-user static route
  8. o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
  9. + - replicated route, % - next hop override
  10. Gateway of last resort is not set
  11. 10.0.0.0/8 is variably subnetted, 9 subnets, 3 masks
  12. O 10.1.0.0/24 [110/65] via 10.51.0.1, 00:45:35, Serial0/0/0
  13. O 10.2.0.0/24 [110/65] via 10.52.0.1, 00:45:35, Serial0/0/1
  14. O 10.50.0.0/30 [110/128] via 10.51.0.1, 00:45:35, Serial0/0/0
  15. [110/128] via 10.52.0.1, 00:04:38, Serial0/0/1
  16. 192.168.1.0/24 is variably subnetted, 5 subnets, 2 masks
  17. O 192.168.1.64/26 [110/2] via 192.168.3.5, 00:45:35, GigabitEthernet0/0
  18. O 192.168.1.128/26 [110/2] via 192.168.3.4, 00:45:35, GigabitEthernet0/0
  19. O IA 192.168.1.192/26 [110/2] via 192.168.3.3, 00:45:35, GigabitEthernet0/0
  1. Router#show ip ospf neighbor
  2. Neighbor ID Pri State Dead Time Address Interface
  3. 1.1.1.1 1 Full/DR 00:00:31 192.168.1.1 GigabitEthernet0/0
  4. 2.2.2.2 1 Full/BDR 00:00:31 192.168.1.2 GigabitEthernet0/0
  5. 3.3.3.3 1 2Way/DROTHER 00:00:31 192.168.1.3 GigabitEthernet0/0
  1. Router#show ip ospf
  2. Routing Process "ospf 10" with ID 10.51.0.1
  3. Start time: 19:09:43, Time elapsed: 00:01:01
  4. Supports only single TOS(TOS0) routes
  5. Supports opaque LSA
  6. Supports Link-local Signaling (LLS)
  7. Supports area transit capability
  8. Router is not originating router-LSAs with maximum metric
  9. Initial SPF schedule delay 5000 msecs
  10. Minimum hold time between two consecutive SPFs 10000 msecs
  11. Maximum wait time between two consecutive SPFs 10000 msecs
  12. Incremental-SPF disabled
  13. Minimum LSA interval 5 secs
  14. Minimum LSA arrival 1000 msecs
  15. LSA group pacing timer 240 secs
  16. Interface flood pacing timer 33 msecs
  17. Retransmission pacing timer 66 msecs
  18. Number of external LSA 0. Checksum Sum 0x000000
  19. Number of opaque AS LSA 0. Checksum Sum 0x000000
  20. Number of DCbitless external and opaque AS LSA 0
  21. Number of DoNotAge external and opaque AS LSA 0
  22. Number of areas in this router is 1. 1 normal 0 stub 0 nssa
  23. Number of areas transit capable is 0
  24. External flood list length 0
  25. Area BACKBONE(0)
  26. Number of interfaces in this area is 3
  27. Area has no authentication
  28. SPF algorithm last executed 19:09:43 ago
  29. SPF algorithm executed 5 times
  30. Area ranges are
  31. Number of LSA 2. Checksum Sum 0x008AC0
  32. Number of opaque link LSA 0. Checksum Sum 0x000000
  33. Number of DCbitless LSA 0
  34. Number of indication LSA 0
  35. Number of DoNotAge LSA 0
  36. Flood list length 0
  1. Router#show ip ospf database
  2. OSPF Router with ID(192.168.10.1) (Process ID 50)
  3. Router Link States Area(0)
  4. LinkID ADV Router Age Seq# CheckSum Link count
  5. 192.168.30.1 192.168.30.1 90 0x80000002C 0x00EB29 3
  6. 192.168.10.1 192.168.10.1 181 0x80000002C 0x00EB29 7
  7. 192.168.20.1 192.168.20.1 91 0x80000002C 0x00EB29 3
  8. 192.168.40.1 192.168.40.1 90 0x80000002C 0x00EB29 3
  1. Router#show ipv6 ospf neighbor
  2. Neighbor ID Pri State Dead Time Interface Id Interface
  3. 2.2.2.2 1 Full/BDR 00:00:33 4 GigabitEthernet0/0
  4. 3.3.3.3 1 Full/DROTHER 00:00:33 4 GigabitEthernet0/0
  5. 4.4.4.4 1 Full/DROTHER 00:00:33 4 GigabitEthernet0/0
  1. Router#show ipv6 ospf interface brief
  2. Interface PID Area Intf id Cost State Nbrs F/C
  3. Gi0/0 10 0 4 1 DR 3/3
  4. Gi0/1 10 0 5 1 DR 0/0

EIGRP

Enable with an ASN:

  • Router(config)#router eigrp <asn>
    • asn needs to be globally unique

Define max number of EIGRP routes used for equal cost load balancing:

  • Router(config-router)#maximum-paths <max>
    • Default max is 4
    • Set max to 1 to disable load ballancing

Enable unequal cost load balancing:

  • Router(config-router)#variance <x>
    • Applies to all EIGRP routes with a sucessor (S) and feasible sucessor (FS) in the topology table
    • Allows for FS routes with a FD(FS) < (variance * FD(S)) to be added to the routing table
      • FD is feasible distance

Define a passive EIGRP interface:

  • Router(config-router)#passive-interface <interface>
  • Can also enable globally:
    • 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>
  • Can also configure using classful network ID:
    • Router(config-router)#network <classfull-network>

Manually specify Router ID (RID):

  • Router(config-router)#eigrp router-id <rid>
    • RID selection priority ranking:
      1. eigrp router-id command value
      2. Highest Loopback interface IP (does not need to be EIGRP enabled!)
      3. Highest interface IP (does not need to be EIGRP enabled!)

Enable auto-summarization:

  • Router(config-router)#auto-summary
    • Not enabled by default

Define timers:

  • Hello timer: Router(config-if)#ip hello-interval eigrp <asn> <seconds>
    • Default for Ethernet interfaces is 5 seconds
    • Default for Serial interfaces is 60 seconds
  • Hold timer: Router(config-if)#ip hold-time eigrp <asn> <seconds>
    • Default is 3 * hello timer value
    • Value does not change in sync when changing the hello timer directly

Metric

EIGRP Metric

Metric equation with default K values:

  • metric = 256 * (((10^7) / smallest_bandwidth) + cumulative_delay)
  • Default K values:
    • K1 (Bandwidth) = 1
    • K2 (Load) = 0
    • K3 (Delay) = 1
    • K4 (Reliability) = 0
    • K5 (MTU) = 0

Modify bandwidth:

  • Router(config-if)#bandwidth <bandwidth in Kbps>
    • Default bandwidth can be seen with Router#show int <int>

Modify delay:

  • Router(config-if)#delay <delay in 10s of microseconds>
    • Default delay can be seen with Router#show int <int>

EIGRP (IPv6)

Same as IPv4 with the following notes:

  • EIGRP neighbors do not need to be in the same subnet (with global or unique local addresses) since they use link-local addresses to communicate directly instead
    • When looking at the output of 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 locally
  • EIGRP RID is set the same way and selection priority is done the same way (using IPv4 addresses)
    • If the device does not have an IPv4 address, you will need to set it
  • EIGRP uses ipv6 instead of the ip configuration command for all the same commands
  • EIGRP uses interface configuration assignment to enable EIGRP on an interface
    • Router(config-if)#ipv6 eigrp <asn>
    • EIGRP does not allow the use of the network command to assign EIGRP enabled interfaces
  • EIGRP for IPv4’s 224.0.0.10 is FF02::A in EIGRP IPv6 for neighbor relationship forming
  • EIGRP dual-stack has different values for the following traits for the IPv4 and IPv6 configuration:
    • Equal/unqual load ballancing (variance & maximum-paths)
    • Hello/hold timers
    • Not metric calculation. This is configured per interface with delay and bandwidth commands and applies for both IPv4 and IPv6 EIGRP.

Troubleshooting

Common Issues:

  1. No EIGRP neighbors…
    1. Authentication values incorrect?
    2. Local interfaces not in an up&up state?
    3. EIGRP neighbor interfaces not in the same subnet?
    4. ACL blocking routing protocol packets to 224.0.0.10?
    5. EIGRP neighbors not in same ASN?
    6. K-values do not match?
  2. EIGRP neighbors can’t stay up…
    1. Local hello timer value greater than neighbor’s hold timer value?
  3. Passive interfaces…
    1. show ip eigrp interfaces shows only active interfaces
      • Use show ip protocols to see passive interfaces
  4. Auto summarization issues…
    1. Any discontiguous networks?

Example troubleshooting output:

  1. Router#show ip eigrp interfaces
  2. IP-EIGRP interfaces for process 50
  3. Xmit Queue Mean Pacing Time Multicast Pending
  4. Interface Peers Un/Reliable SRTT Un/Reliable Flow Timer Routes
  5. Gi0/0 0 0/0 72 0/1 287 0
  6. Se0/0/0 1 0/0 72 0/15 287 0
  7. Se0/0/1 1 0/0 72 0/15 287 0
  1. Router#show ip protocols
  2. *** IP Routing is NSF aware ***
  3. Routing Protocol is "eigrp 50"
  4. Outgoing update filter list for all interfaces is not set
  5. Incoming update filter list for all interfaces is not set
  6. Default networks flagged in outgoing updates
  7. Default networks accepted from incoming updates
  8. EIGRP-IPv4 Protocol for AS(10)
  9. Metric weight K1=1, K2=0, K3=1, K4=0, K5=0
  10. NSF-aware route hold timer is 240s
  11. Router-ID: 192.168.10.1
  12. Topology : 0(Base)
  13. Active Timer: 3 min
  14. Distance: internal 90 external 170
  15. Maximum Path: 4
  16. Maximum hopcount: 100
  17. Maximum metric variance: 1
  18. Automatic Summarization : disabled
  19. Maximum path: 4
  20. Routing for Networks:
  21. 10.50.40.0/24
  22. 192.0.2.0
  23. 192.168.10.0
  24. Passive Interface(s):
  25. GigabitEthernet0/0
  26. Routing Information Sources:
  27. Gateway Distance Last Update
  28. 192.0.2.2 90 00:12:13
  29. 192.0.2.10 90 00:12:12
  30. 192.0.2.6 90 00:12:15
  31. Distance: internal 90 external 170
  1. Router#show ip eigrp neighbors
  2. IP-EIGRP neighbors for process 50
  3. H Address Interface Hold Uptime SRTT RTQ Q Seq
  4. (sec) (ms) Cnt Num
  5. 0 192.0.2.2 Se0/0/0 9 00:14:46 72 432 0 3
  6. 0 192.0.2.6 Se0/0/1 7 00:14:48 72 432 0 3
  7. 0 192.0.2.10 Se0/1/0 11 00:14:44 72 432 0 3
  1. Router#show ip eigrp topology
  2. IP-EIGRP Topology Table for AS(50)/ID(192.168.10.1)
  3. Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
  4. r - reply Status, s - sia Status
  5. P 172.16.34.0/29, 2 successors, FD is 2681856
  6. via 192.0.2.6 (2681856/2169856), Serial0/0/1
  7. via 192.0.2.10 (2681856/2169856), Serial0/1/0
  8. P 192.0.2.8/30, 1 successors, FD is 2169856
  9. via Connected, Serial0/1/0
  10. P 192.168.40.0/24, 1 successors, FD is 2172416
  11. via 192.0.2.10 (2172416/28160), Serial0/1/0
  12. P 192.0.2.0/30, 1 successors, FD is 2169856
  13. via Connected, Serial0/0/0
  14. P 192.168.10.0/24, 1 successors, FD is 28160
  15. via Connected, GigabitEthernet0/0
  16. P 192.168.30.0/24, 1 successors, FD is 2172416
  17. via 192.0.2.6 (2172416/28160), Serial0/0/1
  18. P 192.0.2.4/30, 1 successors, FD is 2169856
  19. via Connected, Serial0/0/1
  20. P 192.168.20.0/24, 1 successors, FD is 2172416
  21. via 192.0.2.2 (2172416/28160), Serial0/0/0
  1. Router#show ip route eigrp
  2. Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
  3. D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
  4. N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
  5. E1 - OSPF external type 1, E2 - OSPF external type 2
  6. i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
  7. ia - IS-IS inter area, * - candidate default, U - per-user static route
  8. o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
  9. + - replicated route, % - next hop override
  10. Gateway of last resort is not set
  11. 172.16.0.0/29 is subnetted, 1 subnets
  12. D 172.16.34.0 [90/2172416] via 192.0.2.6, 00:17:25, Serial0/0/1
  13. [90/2681856] via 192.0.2.10, 00:01:14, Serial0/1/0
  14. D 192.168.20.0/24 [90/2172416] via 192.0.2.2, 00:17:23, Serial0/0/0
  15. D 192.168.30.0/24 [90/2172416] via 192.0.2.6, 00:17:25, Serial0/0/1
  16. D 192.168.40.0/24 [90/2172416] via 192.0.2.10, 00:17:22, Serial0/1/0

BGP

Enable with an ASN:

  • Router(config)#router bgp <asn>
    • asn needs to be globally unique

Define 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>
    • RID selection priority ranking:
      1. bgp router-id command value
      2. Highest Loopback interface IP
      3. Highest interface IP

Specify internal networks to advertise over eBGP:

  • Router(config-router)#network <network> mask <mask>
  • Can also configure using classful network ID:
    • Router(config-router)#network <classful-network>
  • A route to the network being advertised must be in the local routing table in order for it to be advertised over eBGP

Troubleshooting

Common Issues:

  1. No BGP neighbors…
    1. Is the local interface up&up?
    2. Any ACLs blocking TCP port 179?
    3. remote-as value in neighbor command wrong?
    4. Neighbor IP in neighbor command wrong?
    5. Neighbor IPs or local IP in the wrong subnet?
  2. No BGP external routes…
    1. Bad subnet defined in network command?
    2. Advertised subnet not in local routing table?
      1. May need to use a discard route: ip route <network> <mask> null0

Example troubleshooting output:

  1. Router#show ip bgp summary
  2. BGP Router identifier 200.200.200.4 , local AS number 400
  3. BGP table version is 7, main routing table version 7
  4. 4 network entries using 592 bytes of memory.
  5. 4 path entires using 256 bytes of memory.
  6. 4/4 BGP path/bestpath attribute entries using 544 bytes of memory
  7. 1 BGP AS-PATH entries using 24 bytes of memory
  8. 0 BGP route map cache entries using 0 bytes of memory
  9. 0 BGP filter-list cache entires using 0 bytes of memory
  10. BGP using 1416 total bytes of memory
  11. BGP activity 4/0 prefixes, 4/0 paths, scan interval 60 secs
  12. Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
  13. 200.200.200.1 4 100 26 26 3 0 0 00:21:54 1
  14. 200.200.200.2 4 200 26 26 3 0 0 00:21:53 1
  15. 200.200.200.3 4 300 26 26 3 0 0 00:21:53 1
  1. Router#show ip route
  2. Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
  3. D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
  4. N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
  5. E1 - OSPF external type 1, E2 - OSPF external type 2
  6. i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
  7. ia - IS-IS inter area, * - candidate default, U - per-user static route
  8. o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
  9. + - replicated route, % - next hop override
  10. Gateway of last resort is not set
  11. 192.168.1.0/24 is variably subnetted, 5 subnets, 5 masks
  12. B 192.168.1.0/25 [20/0] via 200.200.200.1, 00:14:54
  13. B 192.168.1.128/26 [20/0] via 200.200.200.2, 00:14:27
  14. B 192.168.1.192/27 [20/0] via 200.200.200.3, 00:12:47
  15. C 192.168.1.224/28 is directly connected, GigabitEthernet0/1
  16. L 192.168.1.225/32 is directly connected, GigabitEthernet0/1
  17. 200.200.200.0/24 is variably subnetted, 2 subnets, 2 masks
  18. C 200.200.200.0/29 is directly connected, GigabitEthernet0/0
  19. L 200.200.200.4/32 is directly connected, GigabitEthernet0/0
  1. Router#show ip bgp
  2. BGP table version is 3, local router ID is 200.200.200.4
  3. Status Codes: s suppressed, d damped, h history, * valid, > best, i - internal,
  4. r RIB-Failure, S stale, m multipath, b backup-path, f RT-Filter,
  5. x best-external, a additional-path, c RIB-compressed,
  6. Origin codes: i - IGP, e - EGP, ? - incomplete
  7. RPKI validation codes: V valid, I invalid, N Not found
  8. Network Next Hop Metric LocPrf Weight Path
  9. *> 192.168.1.0 200.200.200.1 0 0 100 i
  10. *> 192.168.1.128 200.200.200.2 0 0 200 i
  11. *> 192.168.1.224 0.0.0.0 0 32768 i
  12. *> 192.168.1.192 200.200.200.3 0 0 300 i
  1. Router#show ip bgp neighbors 200.200.200.1
  2. BGP neighbor is 200.200.200.1, remote AS 100, external link
  3. BGP version 4, remote router ID 200.200.200.1
  4. BGP state = ESTABLISHED, up for 00:22:04
  5. Last read = 00:00:29, last write 00:00:29, hold time is 180, keepalive interval is 60 seconds
  6. Neighbor sessions:
  7. 1 active, is not multisession capable (disabled).
  8. Neighbor capabilities:
  9. Route refresh: advertised and received(new)
  10. Four-octets ASN Capability: advertised and received
  11. Address family IPv4 Unicast: advertised and received
  12. Enhanced Refresh Capability: advertised and received
  13. Multisession Capability:
  14. Stateful switchover support enabled: NO for session 1
  15. Message statistics:
  16. InQ depth is 0
  17. OutQ depth is 0
  18. Sent Rcvd
  19. Opens: 1 1
  20. Notifications: 0 0
  21. Updates: 2 2
  22. Keepalives: 2 2
  23. Route Refresh: 0 0
  24. Total: 5 5
  25. Default minimum time between advertisement runs is 30 seconds
  26. For address family: IPv4 Unicast
  27. Session:200.200.200.1
  28. BGP table version3, neighbor version 3/0
  29. Output queue size : 0
  30. Index 1, Advertise bit 0
  31. 1 update-group member
  32. Slow-peer detection is disabled
  33. Slow-peer split-update-group dynamic is disabled
  34. Sent Rcvd
  35. Prefix activity: ---- ----
  36. Prefix Current: 1 1
  37. Prefixes Total: 1 1
  38. Implicit Withdraw: 0 0
  39. Explicit Withdraw: 0 0
  40. Used as bestpath: 0 0
  41. Used as multipath: 0 0
  42. Outbound Inbound
  43. Local Policy Denied Prefixes: -------- --------
  44. Bestpath from this peer: 1 0
  45. Total: 1 0
  46. Number of NLRIs in the update sent: max 0, min 0
  47. Last detected as dynamic slow peer: never
  48. Dynamic slow peer recovered: never
  49. Refresh Epoch: 1
  50. Last Sent Refresh Start-of-rib: never
  51. Last Sent Refresh End-of-rib: never
  52. Last Received Refresh Start-of-rib: never
  53. Last Received Refresh End-of-rib: never
  54. Sent Rcvd
  55. Refresh Activity: ---- ----
  56. Refresh Start of RIB: 0 0
  57. Refresh End of RIB: 0 0
  58. Address tracking is enabled, the RIB does have a route to 200.200.200.1
  59. Connections established 1; dropped 0
  60. Last reset never
  61. Transport(tcp) path-mtu-discovery is enabled
  62. Graceful-Restart is disabled
  63. Connection state is ESTAB, I/O status: 1, unread input bytes: 0
  64. Connection is ECN Disabled, Mininum incoming TTL 0, Outgoing TTL 1
  65. Local host: 192.168.1.225, Local port: 179
  66. Foreign host: 200.200.200.1, Foreign port: 58251
  67. Connection tableid (VRF): 0
  68. Maximum output segment queue size: 50
  69. Enqueued packets for retransmit: 0, input: 0 mis-ordered: 0 (0 bytes)
  70. Event Timers (current time is 0x4DC0841C):
  71. Timer Starts Wakeups Next
  72. Retrans 3 0 0x0
  73. TimeWait 0 0 0x0
  74. AckHold 3 0 0x0
  75. SendWnd 0 0 0x0
  76. KeepAlive 0 0 0x0
  77. GiveUp 0 0 0x0
  78. PmtuAger 0 0 0x0
  79. DeadWait 0 0 0x0
  80. Linger 0 0 0x0
  81. ProcessQ 0 0 0x0
  82. iss: 4153197359 snduna: 4153197478 sndnxt: 4153197478
  83. irs: 3201954199 rcvnxt: 3201954318
  84. sndwnd: 16266 scale: 0 maxrcvwnd: 16384
  85. rcvwnd: 16266 scale: 0 delrcvwnd: 118
  86. SRTT: 330 ms, RTTO: 3159 ms, RTV: 2829 ms, KRTT: 0 ms
  87. minRTT: 0 ms, maxRTT: 1000 ms, ACK hold: 200 ms
  88. Status Flags: passive open, gen tcbs
  89. IP Precedence value : 6
  90. Datagrams (max data segment is 1460 bytes):
  91. Rcvd: 8 (out of order: 0), with data: 4, total data bytes: 118
  92. Sent: 7 (retransmit: 0, fastretransmit: 0, partialack: 0, Second Congestion:
  93. 0), with data: 4, total data bytes: 118
  94. Packets received in fast path: 0, fast processed: 0, slow path: 0
  95. fast lock acquisition failures: 0, slow path: 0
  96. TCP Semaphore 0x30CD7404 FREE

HDLC

Enable HDLC on an interface:

  • Router(config-if)#encapsulation hdlc
    • This is the default encapuslation for serial interfaces

Disable keepalive messages:

  • Router(config-if)#no keepalive
    • Keepalives are enabled by default
    • Sent every 10 seconds by default

Define interface clock rate:

  • Router(config-if)#clock rate <bps>
    • In units of bits per second
    • Default is T1 speed (1544Kbps)

Define interface bandwidth:

  • Router(config-if)#bandwidth <Kbps>
    • In units of Kilo bits per second
    • Default is T1 speed (1544Kbps)
    • Has no effect on actual line speed. Used for routing protocol metric calculations.

Common serial TDMA speeds:

  • Overhead is 8Kbps
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)

Troubleshooting

Common Issues:

  1. Interface is up&down?
    1. If other side is flipping between states, check for encapsulation miss match
    2. If other side stays up, check for keepalive messages disabled on one side but not the other
      1. Side showing up should be the one with keepalives disabled

Example troubleshooting output:

  1. Router#show controllers serial 0/0/0
  2. Interface Serial0/0/0
  3. Hardware is SCC
  4. DCE V.35, clock rate 256000
  1. Router#show interfaces serial 0/0/0
  2. Serial0/0/0 is up, line protocol is up
  3. Hardware is GT96K Serial
  4. Internet address is 10.100.0.1/12
  5. MTU 1500 bytes, BW 1544 Kbit/sec, DLY 20000 usec,
  6. reliability 255/255, txload 1/255, rxload 1/255
  7. Encapsulation HDLC
  8. Keepalive not set
  9. Last input never, output never, output hang never
  10. Last clearing of "show interface" counters 07:09:39
  11. Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  12. Queueing strategy: weighted fair
  13. Output queue: 0/1000/64/0 (size/max total/threshold/drops)
  14. Conversations 0/0/256 (active/max active/max total)
  15. Reserved Conversations 0/0 (allocated/max allocated)
  16. Available Bandwidth 1158 kilobits/sec
  17. 5 minute input rate 0 bits/sec, 0 packets/sec
  18. 5 minute output rate 0 bits/sec, 0 packets/sec
  19. 0 packets input, 0 bytes, 0 no buffer
  20. Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
  21. 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
  22. 0 packets output, 0 bytes, 0 underruns
  23. 0 output errors, 0 collisions, 2 interface resets
  24. 0 output buffer failures, 0 output buffers swapped out
  25. 0 carrier transitions
  26. DCD=up DSR=up DTR=down RTS=down CTS=up

PPP

Enable PPP on an interface:

  • Router(config-if)#encapsulation ppp
    • The default encapuslation for serial interfaces is HDLC

Define interface clock rate:

  • Router(config-if)#clock rate <bps>
    • In units of bits per second
    • Default is T1 speed (1544Kbps)

Define interface bandwidth:

  • Router(config-if)#bandwidth <Kbps>
    • In units of Kilo bits per second
    • Default is T1 speed (1544Kbps)
    • Has no effect on actual line speed. Used for routing protocol metric calculations.

PAP

Enable PAP on the interface connecting to the neighbor:

  • Router(config-if)#ppp authentication pap
    • PPP must be enabled on the interface first before this command

Define local username and password:

  • Router(config-if)#ppp pap sent-username <username> password <password>
    • PPP must be enabled on the interface first before this command
    • username is the username sent to neighbor device
    • password is the password sent to neighbor device

Define 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 device
    • password must match case-sensitive the password configured on the neighbor device

CHAP

Enable CHAP on the interface connecting to the neighbor device:

  • Router(config-if)#ppp authentication chap
    • PPP must be enabled on the interface first before this command

Define username and password for neighbor device:

  • Router(config)#username <username> password <password>
    • Must be done on both devices
    • username must match case-sensitive the hostname of the neighbor device
    • password must match case-sensitive on both devices

MLPPP

Create local multilink interface:

  • Router(config)#interface multilink <num>
    • num must match multilink group locally and on neighbor router
  • Router(config-if)#encapsulation ppp
  • Router(config-if)#ppp multilink
  • Router(config-if)#ip address <ip> <mask>
    • This is the IP of the multilink bundle logically seen by the neighbor router
  • Router(config-if)#ppp multilink group <num>
    • num must match local group and on neighbor router

Add 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 router
  • Add PAP/CHAP authentication on each physical interface in the multilink group if it is used

PPPoE

Create logical dialer interface:

  • Router(config)#interface dialer <num>
    • num is only locally unique
  • Router(config-if)#encapsulation ppp
    • Layer 2: Add PAP/CHAP authentication to dialer interface if it is used
  • Router(config-if)#ip address negotiated
    • Layer 3: Uses IPCP (a type of NCP) from PPP to learn IP from neighbor
  • Router(config-if)#mtu 1492
    • Layer 3: Accounts for the 8 byte PPPoE header
  • Router(config-if)#dialer pool <pool>
    • Layer 1: pool is only locally unique

Define physical Ethernet interface:

  • Router(config)#interface <eth-int>
  • Router(config-if)#pppoe enable
    • Layer 2: enables PPoE on interface
  • Router(config-if)#pppoe-client dial-pool-number <pool>
    • Layer 1: pool must match the pool defined in the corresponding dialer interface
  • Router(config-if)#no ip address
    • Layer 3: IP address tied to logical not physical interface in PPPoE

Troubleshooting

Common Issues:

  1. PPP issues…
    1. Interface is up&down?
      1. If other side is flipping between states, check for encapsulation miss match
      2. If other side stays down, check for PAP/CHAP authentication failure
      3. Check LCP (Link Control Protocol) state?
        1. REQsent => likely an encapsulation miss match
        2. LCPopen => link is up
    2. ping to neighbor interface works but no routing?
      1. Check if interfaces in different subnets?
        1. PPP will add a host route to routing table by default (makes ping work)
    3. IPv4 works but not IPv6?
      1. Check NCP (Network Control Protocols) for IPv6CP in Open state?
    4. CDP is not working?
      1. Check NCP (Network Control Protocols) for CDPCP in Open state?
  2. MLPPP issues…
    1. IP address assigned to physical interfaces instead of multilink interface?
    2. Interface multilink number and group number don’t match locally and with neighbor?
    3. Multilink interface will be up&up as long as one of the serial links in the multilink group is up&up
  3. PPPoE issues…
    1. show interface dialer <num> shows the interface as up (spoofing) & up (spoofing)?
      1. If show pppoe session has no output, then check (Layer 1):
        1. Dial pool numbers matching in the Ethernet interface and dialer interface?
      2. If show pppoe session has no virtual access interface output, then check (Layer 2):
        1. CHAP/PAP authentication issues?
    2. show interface dialer <num> shows the interface as up & up (spoofing)?
      1. If dialer interface does not have an IP, then check (Layer 3):
        1. MTU equals 1492 on dialer interface?
        2. PPP NCP protocols allow for IPCP or IPv6CP to negotiate IP on dialer interface?

Example troubleshooting output:

  1. Router#show controllers serial 0/0/1
  2. Interface Serial0/0/1
  3. Hardware is SCC
  4. DTE V.35 RX clock detected.
  1. Router#show ppp multilink
  2. Multilink1
  3. Bundle name: R2
  4. Remote Endpoint Discriminator: [1] R2
  5. Local Endpoint Discriminator: [1] R1
  6. Bundle up for 00:06:00, total bandwidth 3088, load 1/255
  7. Receive buffer limit 24000 bytes, frag timeout 1000 ms
  8. 0/0 fragments/bytes in reassembly list
  9. 0 lost fragments, 3 reordered
  10. 0/0 discarded fragments/bytes, 0 lost received
  11. 0x26 received sequence, 0x2A sent sequence
  12. Member links: 2 active, 0 inactive (max 255, min not set)
  13. Se0/0/0, since 00:06:00
  14. Se0/1/0, since 00:05:53
  15. No inactive multilink interfaces
  1. Router#show pppoe session
  2. 1 client session
  3. Uniq ID PPPoE RemMAC Port VT VA State
  4. SID LocMAC VA-st Type
  5. N/A 1 30f7.0da3.1641 Gi0/1 Di2 Vi2 UP
  6. 30f7.0da3.0da1 UP
  1. Router#show interfaces serial 0/0/1
  2. Serial0/0/1 is up, line protocol is up
  3. Hardware is GT96K Serial
  4. Internet address is 10.100.0.2/12
  5. MTU 1500 bytes, BW 1544 Kbit/sec, DLY 20000 usec,
  6. reliability 255/255, txload 1/255, rxload 1/255
  7. Encapsulation PPP, LCP Open
  8. Open: IPCP, CDPCP, Loopback not set
  9. Keepalive set (10sec)
  10. Last input never, output never, output hang never
  11. Last clearing of "show interface" counters 07:09:39
  12. Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  13. Queueing strategy: weighted fair
  14. Output queue: 0/1000/64/0 (size/max total/threshold/drops)
  15. Conversations 0/0/256 (active/max active/max total)
  16. Reserved Conversations 0/0 (allocated/max allocated)
  17. Available Bandwidth 1158 kilobits/sec
  18. 5 minute input rate 0 bits/sec, 0 packets/sec
  19. 5 minute output rate 0 bits/sec, 0 packets/sec
  20. 0 packets input, 0 bytes, 0 no buffer
  21. Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
  22. 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
  23. 0 packets output, 0 bytes, 0 underruns
  24. 0 output errors, 0 collisions, 2 interface resets
  25. 0 output buffer failures, 0 output buffers swapped out
  26. 0 carrier transitions
  27. DCD=up DSR=up DTR=down RTS=down CTS=up
  1. Router#show interfaces dialer 2
  2. Dialer2 is up, line protocol is up (spoofing)
  3. Hardware is Unknown
  4. Internet address is 10.1.3.1/32
  5. MTU 1492 bytes, BW 56 Kbit/sec, DLY 20000 usec,
  6. reliability 255/255, txload 1/255, rxload 1/255
  7. Encapsulation PPP, LCP Closed, loopback not set
  8. Keepalive set (10 sec)
  9. DTR is pulsed for 1 seconds on reset

GRE Tunnels

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 WAN

Define the tunnel:

  • Router(config)#interface tunnel <num>
    • num is only locally unique
  • Router(config-if)#tunnel mode gre ip
    • Sets GRE encapsulation for IPv4 only
  • Router(config-if)#tunnel source <src>
    • src can be a local interface or IP on the WAN
    • This is the local public source address for the start of the tunnel
  • Router(config-if)#tunnel destination <dst>
    • dst can be an IP or hostname for the tunnel endpoint across the WAN
    • This is the remote public destination address of the other end of the tunnel
  • Router(config-if)#ip address <private-ip> <mask>
    • private-ip is used for the point-to-point private connection inside the tunnel

Troubleshooting

Common Issues:

  1. Is tunnel interface up&up?
    1. Tunnels are stateless
      1. Local end being up&up does not mean the remote end is up&up as well
  2. Is tunnel interface up&down?
    1. By default, without any additional configuration, the tunnel will be up&down
    2. Is tunnel destination IP route in the local routing table?
      1. If not, tunnel will be up&down
  3. Is tunnel source interface up&up?
  4. Is an ACL blocking GRE (transport protocol number 47)
    1. Need a permit ip ... or permit gre ...
  5. Is tunnel interface flapping states (up and down)?
    1. Likely a recursive route due to a dynamic routing protocol being used through the tunnel to learn a better route to the tunnel’s public interface through the tunnel itself

Example troubleshooting output:

  1. Router#show interfaces tunnel 0
  2. Tunnel0 is up, line protocol is up
  3. Hardware is Tunnel
  4. Internet address is 192.168.1.2/24
  5. MTU 1514 bytes, BW 8000000 Kbit/sec, DLY 5000 usec,
  6. reliability 255/255, txload 1/255, rxload 1/255
  7. Encapsulation TUNNEL, Loopback not set
  8. keep alive not set
  9. Tunnel Source 10.10.10.2 (Serial0/0/1) , destination 10.10.10.1
  10. Tunnel Subblocks:
  11. src-tracks:
  12. Tunnel0 source tracking sub block associated with Serial0/0/1
  13. set of tunnel with sourceSerial0/0/1 , 1 member (includes iterators)
  14. , on interface<OK>
  15. Tunnel protocol/Transport GRE/IP
  16. keep disabled, sequencing disabled
  17. Tunnel 255, Fast tunnelling enabled
  18. Tunnel transport MTU 1476 bytes
  19. Tunnel transmit bandwidth 8000 (kbps)
  20. Tunnel receive bandwidth 8000 (kpbs)
  21. Last input never, output never, output hang never
  22. Last clearing of "show interface" counters never
  23. Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  24. Queueing strategy: fifo
  25. Output queue: 0/0 (size/max)
  26. 5 minute input rate 0 bits/sec, 0 packets/sec
  27. 5 minute output rate 0 bits/sec, 0 packets/sec
  28. 0 packets input, 0 bytes, 0 no buffer
  29. Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
  30. 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
  31. 0 packets output, 0 bytes, 0 underruns
  32. 0 output errors, 0 collisions, 0 interface resets
  33. 0 output buffer failures, 0 output buffers swapped out
  1. Router#show ip route connected
  2. Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
  3. D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
  4. N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
  5. E1 - OSPF external type 1, E2 - OSPF external type 2
  6. i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
  7. ia - IS-IS inter area, * - candidate default, U - per-user static route
  8. o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
  9. + - replicated route, % - next hop override
  10. Gateway of last resort is 172.16.1.2 to network 0.0.0.0
  11. 1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
  12. C 1.1.1.0/24 is directly connected, GigabitEthernet0/0
  13. L 1.1.1.1/32 is directly connected, GigabitEthernet0/0
  14. 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
  15. C 172.16.1.0/24 is directly connected, Tunnel0
  16. L 172.16.1.1/32 is directly connected, Tunnel0
  17. 192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
  18. C 192.168.1.0/30 is directly connected, Serial0/0/0
  19. L 192.168.1.1/32 is directly connected, Serial0/0/0
  1. Router#show ip interface brief
  2. Interface IP-Address OK? METHOD Status Protocol
  3. GigabitEthernet0/0 1.1.1.1 YES NVRAM up up
  4. GigabitEthernet0/1 unassigned YES NVRAM administratively down down
  5. Serial0/0/0 192.168.1.1 YES NVRAM up up
  6. Serial0/0/1 unassigned YES NVRAM administratively down down
  7. Tunnel0 172.16.1.1 YES NVRAM up up

ACLs

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:

  • IPv4:
    • host <ip> = <ip> 0.0.0.0
    • any = x.x.x.x 255.255.255.255
  • IPv6:
    • host <ipv6> = <ipv6>/128
    • any = ::/0

Standard

Numbered ACL definition:

  • Router(config)#access-list <num> <permit|deny> <src> <wildcard> [log]
    • num must be in ranges 1-99 or 1300-1999
    • log keyword enables notificational logging (level 6) for matching packets

Named ACL definition:

  • Router(config)#ip access-list standard <num|name>
    • num must be in ranges 1-99 or 1300-1999 if used
      • Numbered ACLs configured through named ACL configuration mode show up as numbered ACLs in the running configuration but are managed through named ACL configuration mode
  • Router(config-std-nacl)#<seq> <permit|deny> <src> <wildcard>
    • seq is the sequence number for this rule in the list
      • Named ACLs enable editing/specifying ACL list order using sequence numbers before each rule

Extended

Numbered ACL definition:

  • Router(config)#access-list <num> <permit|deny> <proto> <src> <wc> <dst> <wc> [log]
    • num must be in ranges 100-199 or 2000-2699
    • log keyword enables notificational logging (level 6) for matching packets
    • proto is the transport layer protocol keyword (ip, tcp, udp, icmp, gre, ospf, eigrp)
      • For TCP/UDP, following each IP & wildcard pair for source & destination, you can specify ports ( eq, lt, ne, gt, range)
      • Not specfying specific ports assumes all ports will match rule

Named ACL definition:

  • Router(config)#ip access-list extended <num|name>
    • num must be in ranges 100-199 or 2000-2699 if used
      • Numbered ACLs configured through named ACL configuration mode show up as numbered ACLs in the running configuration but are managed through named ACL configuration mode
  • Router(config-ext-nacl)#<seq> <permit|deny> <proto> <src> <wildcard> <dst> <wildcard>
    • seq is the sequence number for this rule in the list
      • Named ACLs enable editing/specifying ACL list order using sequence numbers before each rule
    • proto is the transport layer protocol keyword (ip, tcp, udp, icmp, gre, ospf, eigrp)
      • For TCP/UDP, following each IP & wildcard pair for source & destination, you can specify ports ( eq, lt, ne, gt, range)
      • Not specfying specific ports assumes all ports will match rule

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 -

IPv6

Similar to IPv4 ACLs with the following notes:

  • Only use named ACLs and only match IPv6 traffic
    • Router(config)#ipv6 access-list <name>
  • Can be used in conjunction with IPv4 ACLs (Dual Stack)
    • 1 IPv6 and/or IPv4 ACL per interface per direction
  • No concept of wildcard masks. Instead, IPv6 ACLs use prefix lengths.
  • Standard IPv6 ACL:
    • Router(config-ipv6-acl)#<permit|deny> <ipv6|icmp|tcp|...> <src> <dst>
    • Contain a source and destination only
  • Extended IPv6 ACLs look like standard ones, but they match on ports/icmp types/etc
  • Applying IPv6 ACL to an interface:
    • Router(config-if)#ipv6 traffic-filter <name> <in|out>
  • Applying IPv6 ACL to a VTY line:
    • Router(config-line)#ipv6 access-class <name> <in|out>
  • IPv6 ACLs also end in a default deny any any but also have the following implicit permits:
    • permit icmp any any nd-na
    • permit icmp any any nd-ns
    • These do not include NDP router solicitations/advertisements:
      • permit icmp any any router-advertisement
      • permit icmp any any router-solicitation

Troubleshooting

Common Issues:

  1. Standard ACLs close to source?
  2. Extended ACLs close to destination?
  3. ACL rules ordered most to least specific?

    1. ACLs use first match logic
  4. ACL applied in wrong direction?
  5. ACL has bad wildcard mask or swapped source and destination addresses?
  6. Routers ignore outbound ACL for self generated packets
  7. Router self-pings…
    1. To Serial interfaces will leave local interface and use inbound ACL if there is one
    2. To Ethernet interfaces will not leave local interface and instead test local TCP/IP stack
  8. IPv6 ACL blocking required ICMP values? Example bad ACLs:
    1. deny icmp any any
    2. deny ipv6 ff00::/8 any
    3. deny ipv6 any ff0::/8
  9. Router routing protocol overhead being blocked?
    1. | Protocol | Addresses (IPv4) | Transport Protocol | Addresses (IPv6) |
      | ———— | ——————————- | ————————————— | ———————— |
      | RIPv2 | 224.0.0.9 | UDP port 520 | FF02::9 |
      | OSPF | 224.0.0.5 & 224.0.0.6 | OSPF (protocol number 89) | FF02::5, FF02::6 |
      | EIGRP | 224.0.0.10 | EIGRP (protocol number 88) | FF02::A |

Example troubleshooting output:

  1. Router#show ip access-lists
  2. Extended IP access list 100
  3. 10 permit icmp any host 172.30.4.190
  4. 20 deny icmp any 172.30.4.128 0.0.0.63
  5. 30 permit tcp any host 172.30.4.190 eq 22
  6. 40 permit tcp any host 172.30.4.129 eq 22
  7. 50 deny tcp any host 172.30.4.129 eq telnet
  8. 60 deny tcp any host 172.30.4.190 eq telnet
  9. 70 permit ip any any
  1. Router#show ipv6 access-lists
  2. Ipv6 access list advanceipv6
  3. permit icmp host 3001::1 any sequence 10
  4. permit icmp host 3000::1 any sequence 20
  5. deny icmp 3000::/64 any sequence 30
  6. permit tcp host 3000::1 eq 22 any sequence 40
  7. permit tcp host 2750::2 eq 22 any sequence 50
  8. deny tcp host 3000::1 eq telnet any sequence 60
  9. deny tcp host 2750::2 eq telnet any sequence 70
  10. permit ipv6 any any sequence 80
  1. Router#show ip interface serial 0/0/0
  2. Serial0/0/0 is up, line protocol is up
  3. Internet address is 172.30.4.230/30
  4. Broadcast address is 255.255.255.255
  5. Address determined by non-volatile memory
  6. MTU is 1500 bytes
  7. Helper address is not set
  8. Directed broadcast forwarding is disabled
  9. Multicast reserved groups joined: 224.0.0.10
  10. Outgoing access list is not set
  11. Inbound access list is 100
  12. Proxy ARP is enabled
  13. Local Proxy ARP is disabled
  14. Security level is default
  15. Split horizon is enabled
  16. ICMP redirects are always sent
  17. ICMP unreachables are always sent
  18. ICMP mask replies are never sent
  19. IP fast switching is enabled
  20. IP fast switching on the same interface is disabled
  21. IP Flow switching is disabled
  22. IP CEF switching is enabled
  23. IP CEF Fast switching turbo vector
  24. IP multicast fast switching is enabled
  25. IP multicast distributed fast switching is disabled
  26. IP route-cache flags are Fast, CEF
  27. Router Discovery is disabled
  28. IP output packet accounting is disabled
  29. IP access violation accounting is disabled
  30. TCP/IP header compression is disabled
  31. RTP/IP header compression is disabled
  32. Policy routing is disabled
  33. Network address translation is disabled
  34. BGP Policy Mapping is disabled
  35. Input features: MCI Check
  36. Output features: Post-Ingress-NetFlow
  37. IPv4 WCCP Redirect outbound is disabled
  38. IPv4 WCCP Redirect inbound is disabled
  39. IPv4 WCCP Redirect exclude is disabled

Inter-VLAN Routing

Layer 3 Switch

Enable IPv4/IPv6 routing:

  • Switch(config)#sdm prefer lanbase-routing
    • Configures ASIC hardware to make room in memory for IP routing tables
    • May require a reload before enabling IP routing with the next command
    • May not be required on all switch models
  • Switch(config)#sdm prefer dual-ipv4-and-ipv6
    • Used to enable IPv6 routing (does not support dynamic IPv6 routing)
  • Switch(config)#ip routing

Define a Layer 3 switch SVI (logical):

  • Switch(config)#interface vlan <num>
  • Switch(config-if)#ip address <ip> <mask>
  • Used between access and distribution switches with multiple access ports connected to a VLAN

Define a Layer 3 Switch Routed Port (physical):

  • Switch(config-if)#no switchport
  • Switch(config-if)#ip address <ip> <mask>
  • Used between distribution and core switches with one link between each other for point-to-point routing

Define a Layer 3 Switch EtherChannel (Layer 3):

  1. Used between distribution and core switches with multiple links between each other for redundant/load balanced routing
  2. Define associated physical interfaces:
    • Switch(config)#interface <int>
    • Switch(config-if)#no switchport
      • This command will remove all L2 configuration commands on the interface
    • 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 number
      • Mode supports LACP/PAgP negotiation or on for always enabled
  3. Define layer 3 logical EtherChannel:
    • Switch(config)#interface port-channel <num>
      • num must match locally on all physical interfaces in EtherChannel
    • Switch(config-if)#no switchport
    • Switch(config-if)#ip address <ip> <mask>

Router on a Stick

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 trunk
  • Router(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 untagged
  • Router(config-subif)#ip address <ip> <mask>
    • Encapsulation must be configured first before this command

Defining native VLAN on physical interface (for untagged traffic):

  • Router(config)#interface <int>
  • Router(config-if)#ip address <ip> <mask>
    • Router expects untagged native VLAN traffic to be in this subnet without having to define a matching native VLAN ID as done in a subinterface

Troubleshooting

Common Issues:

  1. SVI issues…
    1. Missing sdm prefer or ip routing?
    2. VLAN interface is shutdown?
    3. VLAN is shutdown?
    4. VLAN interface created but not assigned to an interface?
      1. VLAN interface will be up&down until VLAN assigned to an access port
  2. Router on a stick issues…
    1. Wrong encapsulation number on subinterface to match VLAN ID?
    2. Bad IP/subnet mask for VLAN subinterface?
    3. Wrong native VLAN ID on subinterface?
      1. native keyword on wrong subinterface?
      2. IP/subnet mask wrong on physical interface for native VLAN?
    4. DTP in use on neighbor switch?
    5. Physical interface up&up?
      1. Logical subinterfaces will not come up if physical interface is down
  3. Layer 3 Etherchannel issues…
    1. Non-matching channel numbers on interfaces and channel definition?
    2. switchport (L2) not disabled on all interfaces and channel?
    3. IP address assigned to physical interface and not channel interface?
    4. LACP/PAgP protocol miss match?

Example troubleshooting output:

  1. Router#show vlan
  2. Virtual LAN ID: 1 IEEE 802.1Q Encapsulation
  3. vLAN Trunk Interfaces: GigabitEthernet0/0
  4. This is configured as native vlan for the following interface(s):
  5. GigabitEthernet0/0 Native-vlan Tx-type:Untagged
  6. Protocols Configured: Address: Received: Transmitted:
  7. IP 100.100.100.65 0 0
  8. other 0 0
  9. 0 packets, 0 bytes input
  10. 0 packets, 0 bytes output
  11. Virtual LAN ID: 10 IEEE 802.1Q Encapsulation
  12. vLAN Trunk Interfaces: GigabitEthernet0/0.100
  13. Protocols Configured: Address: Received: Transmitted:
  14. 0 packets, 0 bytes input
  15. 0 packets, 0 bytes output
  16. Virtual LAN ID: 20 IEEE 802.1Q Encapsulation
  17. vLAN Trunk Interfaces: GigabitEthernet0/0.150
  18. Protocols Configured: Address: Received: Transmitted:
  19. IP 100.100.100.129 0 0
  20. other 0 0
  21. 0 packets, 0 bytes input
  22. 0 packets, 0 bytes output
  1. Router#show ip interface brief
  2. Interface IP-Address OK? METHOD Status Protocol
  3. GigabitEthernet0/0 100.100.100.65 YES NVRAM up up
  4. GigabitEthernet0/0.150 100.100.100.129 YES NVRAM up up
  5. GigabitEthernet0/0.100 unassigned YES NVRAM up up
  6. GigabitEthernet0/1 unassigned YES NVRAM administratively down down
  7. Serial0/0/0 192.168.1.1 YES NVRAM up up
  8. Serial0/0/1 unassigned YES NVRAM administratively down down
  1. Switch#show ip interface brief
  2. Interface IP-Address OK? METHOD Status Protocol
  3. FastEthernet0/1 unassigned YES NVRAM up up
  4. FastEthernet0/2 unassigned YES NVRAM down down
  5. FastEthernet0/3 unassigned YES NVRAM down down
  6. FastEthernet0/4 unassigned YES NVRAM down down
  7. FastEthernet0/5 unassigned YES NVRAM down down
  8. FastEthernet0/6 unassigned YES NVRAM down down
  9. FastEthernet0/7 unassigned YES NVRAM down down
  10. FastEthernet0/8 unassigned YES NVRAM down down
  11. FastEthernet0/9 unassigned YES NVRAM down down
  12. FastEthernet0/10 unassigned YES NVRAM up up
  13. FastEthernet0/11 unassigned YES NVRAM up up
  14. FastEthernet0/12 unassigned YES NVRAM down down
  15. FastEthernet0/13 unassigned YES NVRAM down down
  16. FastEthernet0/14 unassigned YES NVRAM down down
  17. FastEthernet0/15 unassigned YES NVRAM down down
  18. FastEthernet0/16 unassigned YES NVRAM down down
  19. FastEthernet0/17 unassigned YES NVRAM down down
  20. FastEthernet0/18 unassigned YES NVRAM down down
  21. FastEthernet0/19 unassigned YES NVRAM down down
  22. FastEthernet0/20 unassigned YES NVRAM down down
  23. FastEthernet0/21 unassigned YES NVRAM down down
  24. FastEthernet0/22 unassigned YES NVRAM down down
  25. FastEthernet0/23 unassigned YES NVRAM down down
  26. FastEthernet0/24 unassigned YES NVRAM down down
  27. GigabitEthernet0/1 unassigned YES NVRAM up up
  28. GigabitEthernet0/2 unassigned YES NVRAM up up
  29. Vlan1 unassigned YES NVRAM up up
  30. Vlan69 10.10.69.1 YES NVRAM up up
  31. Vlan70 10.10.70.1 YES NVRAM up down

HSRP

Enable on an interface:

  • Router(config-if)#standby <group> ip <virtual-ip>
  • group must be globally unique across all routers in this HSRP group

Define group priority:

  • Router(config-if)#standby <group> priority <priority>
  • Setting this higher than the current active router’s priority will not make the local router active unless preemption is enabled
  • The default priority is 100

Enable preemption:

  • Router(config-if)#standby <group> preempt
  • This is disabled by default

Define version:

  • Router(config-if)#standby version <1|2>
  • The default is version 1
  • Version must match globally with all routers in the HSRP group

Define timers:

  • Router(config-if)#standby <group> timers <hello> <hold>
  • hello and hold are in seconds
  • Only the active router can set and immediately activate changes in these timer values
    • If the local router is not active, the timer values will activate when the local router becomes active

Define 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 state

HSRP/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

Troubleshooting

Common Issues:

  1. Multiple active routers?
    1. Likely a group number miss match
  2. Default gateway only works sometimes?
    1. Routers in group with miss matching virtual IPs?
    2. Virtual IP not in in the same subnet as all interfaces?
    3. Virtual IP in use by some other device in the subnet?
  3. Router with highest priority not active?
    1. HSRP routers will listen for a certain amount of time on boot and default to the active router in the HSRP group if no other router with a better priority or IP speaks during that time
      1. This methodology favors the router who booted first if preemption is not enabled
  4. Multiple active routers in a given group?
    1. Version miss match?
    2. ACL blocking UDP port 1985 and/or 224.0.0.2/224.0.0.102?

Example troubleshooting output:

  1. Router#show standby
  2. GigabitEthernet0/0 - Group 2
  3. State is Standby
  4. 6 State changes last change is 00:00:25
  5. Virtual IP address is 10.10.10.15
  6. Active virtual MAC address is 0000.0c07.ac02
  7. Local virtual MAC address is 0000.0c07.ac02 (v1 default)
  8. Hello time 3 sec, hold time 10 sec
  9. Next hello sent in 0.752 secs
  10. Preemption enabled
  11. Active router is 10.10.10.1, priority 100 (expires in 8.080 sec)
  12. Standby router is local
  13. Priority 90 (configured 140)
  14. Track object 1 state Down decrement 50
  15. Group name is "hsrp-g0/0-2" (default)
  16. GigabitEthernet0/0 - Group 1
  17. State is Standby
  18. 4 State changes last change is 00:00:25
  19. Virtual IP address is 10.10.10.10
  20. Active virtual MAC address is 0000.0c07.ac01
  21. Local virtual MAC address is 0000.0c07.ac01 (v1 default)
  22. Hello time 3 sec, hold time 10 sec
  23. Next hello sent in 0.752 secs
  24. Preemption enabled
  25. Active router is 10.10.10.1, priority 140 (expires in 8.080 sec)
  26. Standby router is local
  27. Priority 50 (default 100)
  28. Track object 1 state Down decrement 50
  29. Group name is "hsrp-g0/0-1" (default)

SNMP

NOTE: SNMP servers are valid on Routers and Switches. The below configuration examples may also be run on a Switch.

Terminology:

  • OID = Variable (eg 1.3.6.12.19)
  • MIB = Database of OIDs
  • NMS = Manager = Client
    • This is the device getting/setting MIB on different devices
  • Agent = Server
    • This is the device with the MIB responding to NMS queries/requests

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

Version 1

Define a community string:

  • Router(config)#snmp-server community <password> <ro|rw> [ipv6 <acl>] [<acl>]
  • password must match on both SNMP NMS and agent
    • Sent in clear text
  • 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 agent
  • acl can be IPv6 or IPv4 and is applied to incoming traffic to the agent

Define 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 NMS
  • password is the community string shared with the NMS
    • Sent in clear text

Version 2c

Define a community string:

  • Same as SNMP version 1. See above.

Define an NMS to receive traps from agent:

  • Router(config)#snmp-server host <address> <traps|informs> version 2c <password>
  • Same as SNMP version 1 with the addition of an inform option
    • Same as trap but requires ACK from NMS for error recovery

Version 3

Define a group:

  • Router(config)#snmp-server group <name> v3 <noauth|auth|priv> [write v1default] [access [ipv6] <acl>]
  • name is the name of the group
  • v1default is the default MIB view that gives access to the majority of the MIB
  • acl is the same as SNMP versions 1 & 2c
  • noauth|auth|priv differences:

    • | Keyword | Integrity | Authentication | Encryption |
      | ———— | ————- | ——————— | ————— |
      | 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 username
  • group is the group for this user
  • auth option is required only if user’s group has auth or priv enabled
  • priv oprion is required onyl if user’s group has priv enabled

Define 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 NMS
  • username is the username allows to receive traps
  • noauth|auth|priv option must match the group option set for the username

Troubleshooting

Common Issues:

  1. NMS cannot set MIB on server?
    1. SNMP v1/v2c: Is the community string being used read-only?
    2. SNMPv3: snmp-server user missing auth and/or priv to match the group’s setting?
  2. NMS cannot connect to server?
    1. ACL blocking UDP port 161/162?

Example troubleshooting output:

  1. Router#show snmp chassis
  2. 69696969
  1. Router#show snmp contact
  2. Dude Bro (420) 420-6969
  1. Router#show snmp location
  2. The sun dude...
  1. Router#show snmp community
  2. Community name: ILMI
  3. Community Index: cisco0
  4. Community Securityname: ILMI
  5. storage-type: read only active
  6. Community name: keep-it-safe
  7. Community Index: cisco1
  8. Community Securityname: keep-it-safe
  9. storage-type: read write active
  10. Community name: keep-it-safe@1
  11. Community Index: cisco2
  12. Community Securityname: keep-it-safe@1
  13. storage-type: read write active
  14. Community name: keep-it-secret
  15. Community Index: cisco2
  16. Community Securityname: keep-it-secret
  17. storage-type: read only active
  18. Community name: keep-it-secret@1
  19. Community Index: cisco3
  20. Community Securityname: keep-it-secret@1
  21. storage-type: read only active
  1. Router#show snmp host
  2. Notification host: 1.1.1.1 udp-port: 162 type: trap
  3. user: this-is-old-school security model: v1
  4. Notification host: 192.168.69.69 udp-port: 162 type: trap
  5. user: this-is-secret-i-think security model: v2c
  6. Notification host: 10.10.10.100 udp-port: 162 type: trap
  7. user: dude security model: v3 priv

IP SLA

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 locally

Define an ICMP Echo SLA:

  • Router(config-ip-sla)#icmp-echo <ip>
  • ip is the target you wish to marry this SLA to
  • Define the frequency in between ICMP Echo requests:
    • Router(config-ip-sla-echo)#frequency <seconds>
    • Default is 60 seconds

Troubleshooting

Common Issues:

  1. No statistics?
    1. Is SLA responder enabled on the other device?
      1. Not needed from some SLAs (eg ICMP Echo SLA)
  2. Statistics show failures but history show success?
    1. Increase the number of buckets?
    2. Increase frequency?

Example troubleshooting output:

  1. Router#show ip sla summary
  2. IPSLAs Latest Operation Summary
  3. Codes : * active, ^ inactive, ~ pending
  4. ID Type Destination Stats Return Code Last Run
  5. *6969 icmp-echo 10.10.10.10 - timeout 4 seconds ago
  1. Router#show ip sla statistics
  2. IPSLAs Latest Operation Statistic
  3. IPSLA operation id:6969
  4. Latest RTT: NoConnection/Busy/Timeout
  5. Latest operation start time: Sat Feb 15 17:11:26 PST 2020
  6. Latest operation return code: timeout
  7. Number of successes: 0
  8. Number of failures: 1
  9. Operation time to live: forever
  1. Router#show ip sla configuration
  2. IP SLAs Infrastructure Engine- III
  3. Entry Number: 6969
  4. Owner:
  5. Tag:
  6. Operation timeout(milliseconds): 5000
  7. Type of operation to perform: icmp-echo
  8. Target address/Source address: 10.10.10.10/0.0.0.0
  9. Type of Service parameter: 0x0
  10. Request Size (ARR data portion): 28
  11. verify data: No
  12. vrf Name:
  13. Schedule:
  14. Operation frequency (seconds): 69 (not considered if randomly schedule)
  15. Next Scehduled Start Time: Start time already passed
  16. Group Scheduled : FALSE
  17. Randomly Scheduled : FALSE
  18. Life (seconds) : forever
  19. Entry Ageout (seconds): Never
  20. Recurring (Starting everyday) : FALSE
  21. Status of entry (SNMP rowstatus): Active
  22. Threshold (milliseconds): 5000
  23. destribution Statistics:
  24. Number of statistic hours kept: 2
  25. Number of statistic distribution buckets kept: 1
  26. Statistic distribution interval (milliseconds): 20
  27. Enhanced history:
  28. History Statistics:
  29. Number of history Lives kept: 0
  30. Number of history Buckets kept: 15
  31. History Filter Type: None

SPAN

Local

Define sources:

  • Switch(config)#monitor session <num> source <source> <rx|tx|both>
  • num must match on all local source ports in this SPAN
  • source can be a VLAN or physical interface (which can also be a trunk)
  • both is the default SPAN direction

Define destinations:

  • Switch(config)#monitor session <num> destination interface <dest>
  • num must match on all local destination ports and must match all source ports in SPAN
  • dest must be a local interface number unless using remote SPAN
    • Destination port is no longer considered in the switch’s CAM table for unicast frames and has no source MAC tied to it in the CAM table

Remote

  • Must define local VLAN as the destination for SPAN
  • The same VLAN ID must be defined on all switchs in between local source and remote destination port

Troubleshooting

Common Issues:

  1. Local SPAN…
    1. Destination…
      1. Port can be used in only one SPAN at a time
      2. Port cannot be a source SPAN port
    2. Source…
      1. Can have mutliple ports or VLANs
        1. Cannot have a mix of VLANs and ports (one or the other)
      2. Can be an EtherChannel or trunk port
      3. Can have a mix of Rx/Tx/Both as long as they are applied to different SPAN sources

Example troubleshooting output:

  1. Switch#show monitor
  2. Session 1
  3. ----------
  4. Type : Local Session
  5. Source Ports :
  6. Boths : Fa0/1-2
  7. rx Only : Gi0/1-2
  8. tx Only : Fa0/11
  9. Destination Ports : Fa0/9-10
  10. Encapsulation : Native
  11. Ingress : Disabled