Layer 2 Troubleshooting
Layer 2 Troubleshooting
Layer 2 Troubleshooting
trunk
VTP
VLAN
STP
Etherchannel
SVI
Etherchannel L3
Switch Security
FHRP
DHCP show mac address-table
show mac-address-table
show interface fa0/1 switchport
show interface trunk
Causes
1 .- Troubleshooting Trunks
2 .- VTP Troubleshooting
3 .- VLAN troubleshooting
Car
Desirable
Manual
int fa0/24
sw trunk enca dot
int fa0/24
sw trunk encap isl
default-gateway 192.168.x.1
802.1q
802.1 qn int fa0/24
sw mode trunk
sw
nonegotiate
int fa0/24
sw mode trunk dynamic desirable (DTP)
customer
server
transparent
off
ipconfig
vlan 50
name SUPPORT
int fa0/3
sw mode acc
sw acc vlan 20
Spanning-tree and Etherchannel troubleshooting
Spanning tree
Configuration process
MST Name
Region MST
MST instance
Map VLAN instance
Issues
Spanning-tree problems
%SW_MATM-4-MACFLAP_NOTIF
2. Broadcast storms
Frames do not have a TTL, broadcast frames are always being forwarded by all switches.
Consumes BW
Network delay
CPU
RAM
3. portfast
- Configure on edge ports
- transition to forwarding state immediately.
- Deletes the Listening and Learning state of the STP.
int fa0/1
spann portf!
4. BPDU Guard
int f0/3
spanning-tree bpduguard enable
do sh int fa0/3
5. Root Guard
int fa0/4
spanning-tree portfast
spanning-tree guard root
6. BPDU Filter
7. Loop Guard
Identical:
- Port speed
- Duplex Mode
- trunk mode
- Native VLAN
- VLANs included in the port
- Po L2 or Po L3
LACP
Active/Passive
Active/Active
PAGP
self/desirable
desirable/desirable
ON
on/off
2.3 Inappropriate distribution of the Etherchannel algorithm
HIS
S: L2
U: Use
Router-on-a-stick
Switch Virtual Interface
Routed Ports
Etherchannel L3
Port-security
Spoof
Private VLAN
MAC ACL
Port ACL
VLAN ACL
HSRP
VRRP
GLBP
DHCP
Troubleshooting
Goals
- Tshoot Port-security
- Tshoot Dhcp Snooping
- Tshoot Dynamic ARP inspection
1. Tshoot Port-security
1.1 Port-sec is configured but not enabled
1.2 Static MAC configured incorrectly
1.3 Maximum MAC reached
1.5 Port-sec not saved
int fa0/0
sw port-security -> When not added
sw port-sec max 1
sw port-sec violation shutdown
sw port-sec mac-address sticky
sw port-sec mac-address 0001.0002.0003
------------
10 0001.0002.0003 SecureConfigured
FastEthernet0/2 -
10 0040.0BC4.A853 SecureSticky FastEthernet0/2 -
int fa0/0
sw port-sec max 1 -> Default is 1
PRS
#show errdisable
Port-sec
DAI
bpduguard
Ethcerchannel
dhcp
psecure-violation
wr
copy rs
IP dhcp snooping
Dynamic ARP Inspection
IP Source Guard
MAC ACL
Port ACL
VACL
2. HSRP AD for hosts -> GW Virtual int vlan 10
ip address 192.168.1.1 255.255.255.0
standby 10 ip 192.168.1.254
standby 10 preempt
standby 10 track fa0/0 decrement 50
standby 10 priority 110
standby 10 timers 1 3
Failures
2.1 Virtual IP address that does not correspond.
- Configured on PC
- Configured in HSRP group
int vlan 10
ip address 192.168.1.1 255.255.255.0
standby 20 ip 192.168.1.254
standby 10 preempt
standby 10 track fa0/0 decrement 50
standby 10 priority 110
standby 10 timers 1 3
Check on both routers
int vlan 20
ip address 192.168.20.1 255.255.255.0
standby ip 192.168.1.254
R1
int vlan 10
ip address 192.168.1.1 255.255.255.0
R2
int vlan 10
ip address 192.168.1.2 255.255.255.0
Functioning
- VRRP
- GLBP
3. Troubleshooting router-on-a-trunk
3. Troubleshooting router-on-a-stick
int gi0/0.10
encapsulation dot1q 10
ip add 192.168.10.1 255.255.255.0 !
S.W.
int fa0/24
desc LINK_RO1
sw trunk enc dot
sw mode tunk
sw none
sw trunk native vlan 99
sw trunk all vlan 10,20,30,40
int vlan 10
ip add 192.168.10.1 255.255.255.0
no shut
desc LAN_VLAN10
int fa0/1
no switchchport
ip add 10.232.0.1 255.255.255.0
src-mac
src-ip
dst-mac
dst-ip
src-dst mac
src-dst ip
DSW1(config)#port-channel load-balance ?
src-ac
dst-ip