CCNA Switching and Network Access • Complete Question Bank
Complete CCNA Switching and Network Access question bank — all 0 questions with answers and detailed explanations.
Drag a concept onto its matching description — or click a concept then click the description.
Standards-based protocol used to negotiate an EtherChannel bundle
Indicates a port is bundled in the channel
Indicates a port is operating individually and not bundled
Indicates the port-channel is Layer 2 and in use
Drag a concept onto its matching description — or click a concept then click the description.
The VLAN assigned to a normal end-device access port
The VLAN used to carry phone voice traffic separately
A link carrying traffic for multiple VLANs
The VLAN associated with untagged traffic on an 802.1Q trunk
Drag a concept onto its matching description — or click a concept then click the description.
Speeds an edge port into forwarding state
Disables an edge port if a BPDU is received
Prevents a port from becoming a root path under superior BPDU conditions
Protects certain non-designated ports when expected BPDUs stop arriving
Drag a concept onto its matching description — or click a concept then click the description.
A switch link that can carry multiple VLANs
A switchport that normally belongs to one VLAN for endpoint traffic
The VLAN associated with untagged traffic on an 802.1Q trunk
The setting that restricts which VLANs a trunk may carry
Drag a concept onto its matching description — or click a concept then click the description.
Speeds an edge port into forwarding state
Disables an edge port if a BPDU is received
Separates phone voice traffic from normal user data
Limits and controls MAC address use on a switch port
Drag a concept onto its matching description — or click a concept then click the description.
Endpoint-facing port that normally belongs to one VLAN
Link that carries multiple VLANs
Restriction controlling which VLANs traverse the trunk
VLAN associated with untagged traffic on the trunk
Drag a concept onto its matching description — or click a concept then click the description.
The central reference switch for STP path calculation
The best path on a non-root switch toward the root bridge
Feature that speeds an edge port into forwarding
Feature that disables an edge port if a BPDU is received
Drag a concept onto its matching description — or click a concept then click the description.
Limits and controls MAC address use on a switch port
Disables an edge port if a BPDU is received
Helps block rogue DHCP behavior and build trusted bindings
Validates ARP traffic using trusted information
Drag a concept onto its matching description — or click a concept then click the description.
Link carrying traffic for multiple VLANs
VLAN assigned to a normal endpoint-facing port
VLAN associated with untagged traffic on an 802.1Q trunk
Setting that restricts which VLANs may cross a trunk
Drag a concept onto its matching description — or click a concept then click the description.
Link carrying multiple VLANs
Setting that restricts which VLANs may cross the trunk
VLAN associated with untagged traffic on the trunk
VLAN assigned to a normal endpoint-facing port
Drag a concept onto its matching description — or click a concept then click the description.
Limits and controls MAC address use on a switch port
Disables an edge port if a BPDU is received
Helps block rogue DHCP behavior and build trusted bindings
Validates ARP traffic using trusted information
Drag a concept onto its matching description — or click a concept then click the description.
Switchport that normally carries one VLAN for an endpoint
Link that carries multiple VLANs
Setting that restricts which VLANs may traverse the trunk
VLAN associated with untagged traffic on an 802.1Q trunk
Drag a concept onto its matching description — or click a concept then click the description.
Link carrying multiple VLANs
VLAN assigned to a normal endpoint-facing port
VLAN associated with untagged traffic on an 802.1Q trunk
Setting that limits which VLANs may traverse a trunk
Drag a concept onto its matching description — or click a concept then click the description.
Speeds an edge port into forwarding state
Disables an edge port if a BPDU is received
Prevents a port from becoming the root path under superior BPDUs
Limits and controls MAC address use on a switch port
Drag a concept onto its matching description — or click a concept then click the description.
The WLAN name shown to clients
Device that provides wireless connectivity
Design in which centralized devices manage APs
Wireless security standard
Drag a concept onto its matching description — or click a concept then click the description.
Name of the wireless network shown to clients
Wireless security standard
Protocol associated with AP-controller communication
Client movement between AP coverage areas
Drag a concept onto its matching description — or click a concept then click the description.
Name of the wireless LAN shown to clients
Communication relationship between lightweight APs and controller
Separates phone traffic from ordinary data on an edge port
Allows an endpoint-facing switchport to move quickly toward forwarding
Switch A: channel-group 5 mode active Switch B: channel-group 5 mode passive
Drag a concept onto its matching description — or click a concept then click the description.
Configures an interface to operate as a trunk link
Sets the native VLAN on a trunk to VLAN 999
Assigns a port to VLAN 10 as an access port
VLAN that carries untagged traffic on a trunk
Creates a subinterface for router-on-a-stick
Configures 802.1Q tagging for VLAN 10 on a subinterface
SwitchC# show spanning-tree vlan 10
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 32778
Address 0011.2233.4455
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 40968 (priority 40960 sys-id-ext 10)
Address 00a1.b2c3.d4e5
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Gi0/1 Desg LRN 4 128.1 P2p
Gi0/2 Root BLK 4 128.2 P2pDrag a concept onto its matching description — or click a concept then click the description.
Switch with the lowest bridge ID in the topology
Port that is in forwarding state on each LAN segment
Port that provides an alternative path to the root bridge and is in blocking state
Feature that brings a port directly into forwarding state for access ports
Feature that disables a port if a BPDU is received on a PortFast-enabled port
Drag a concept onto its matching description — or click a concept then click the description.
Used to elect the root bridge; consists of priority and MAC address
Port on a non-root bridge with the best path to the root bridge
Port that is in forwarding state on a given LAN segment
Feature that immediately transitions an access port to forwarding state
Feature that err-disables a PortFast port upon receiving a BPDU
Command to force a switch to become the root bridge for VLAN 1
R1# show monitor capture CAP1 buffer brief # size timestamp source destination protocol src port dst port flags 1 64 00:01:23.456 192.168.10.10 192.168.10.1 ICMP 0x0800 0x0800 0x4000 2 64 00:01:23.457 192.168.10.1 192.168.10.10 ICMP 0x0800 0x0800 0x4000 3 64 00:01:24.456 192.168.10.10 192.168.10.1 ICMP 0x0800 0x0800 0x4000 4 64 00:01:24.457 192.168.10.1 192.168.10.10 ICMP 0x0800 0x0800 0x4000 5 64 00:01:25.456 192.168.10.10 192.168.10.1 ICMP 0x0800 0x0800 0x4000 6 64 00:01:25.457 192.168.10.1 192.168.10.10 ICMP 0x0800 0x0800 0x4000 R1# show running-config | section interface Vlan10 interface Vlan10 ip address 192.168.10.1 255.255.255.0 no shutdown !
SwitchA# show interfaces GigabitEthernet0/1 status Port Name Status Vlan Duplex Speed Type Gi0/1 err-disabled 1 auto auto 10/100/1000BaseTX SwitchA# show running-config interface GigabitEthernet0/1 Building configuration... Current configuration : 150 bytes ! interface GigabitEthernet0/1 switchport mode trunk spanning-tree guard root spanning-tree bpduguard enable end SwitchA# show spanning-tree interface GigabitEthernet0/1 detail Port 1 (GigabitEthernet0/1) of VLAN0001 is root blocking Port path cost 4, Port priority 128, Port Identifier 128.1. Designated root has priority 8193, address 0001.0001.0001 Designated bridge has priority 32769, address aaaa.aaaa.aaaa Designated port id is 128.1, designated path cost 4 Timers: message age 2, forward delay 15, hold 0 Number of transitions to forwarding state: 1 BPDU: sent 3, received 102 The port is not in the portfast mode Root guard is enabled on the port BPDU guard is enabled on the port
Drag a concept onto its matching description — or click a concept then click the description.
Immediately transitions port to forwarding state
Err-disables port upon receiving a BPDU
Prevents port from becoming root port
Prevents port from becoming designated if BPDUs stop arriving
Drops all BPDUs sent and received on the port
Reverts port to normal STP listening/learning
Drag a concept onto its matching description — or click a concept then click the description.
Enables LACP active negotiation to form EtherChannel
Enables LACP passive negotiation (waits for active side)
Enables PAgP desirable mode to actively negotiate EtherChannel
Displays port-channel interface status and member ports
Creates and enters the logical EtherChannel interface
Sets LACP heartbeat interval to 1 second instead of default 30 seconds
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag a concept onto its matching description — or click a concept then click the description.
Port on a non-root switch with the best path to the root bridge
Port on a segment that forwards traffic and has the best path to the root bridge
Blocked port that provides a backup path to the root bridge
Blocked port that provides a redundant connection to the same segment
Port that is administratively shut down or not participating in STP
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
R1#show running-config | section interface interface GigabitEthernet0/0 no ip address duplex auto speed auto ! interface GigabitEthernet0/0.10 encapsulation dot1Q 10 ip address 192.168.1.1 255.255.255.0 ! interface GigabitEthernet0/0.20 encapsulation dot1Q 20 ip address 192.168.2.1 255.255.255.0 ! interface GigabitEthernet0/0.99 encapsulation dot1Q 99 ip address 192.168.99.1 255.255.255.0 ! R1#show running-config | include ip routing no ip routing R1#show interfaces trunk Port Mode Encapsulation Status Native vlan Gi0/0 on 802.1q trunking 1 Port Vlans allowed on trunk Gi0/0 1-1005 Port Vlans allowed and active in management domain Gi0/0 1,10,20,99 Port Native VLAN tagging enabled Gi0/0 yes
R1# show running-config | section interface GigabitEthernet0/0
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/0.10
encapsulation dot1Q 10
ip address 192.168.10.1 255.255.255.0
!
interface GigabitEthernet0/0.20
encapsulation dot1Q 20
ip address 192.168.20.1 255.255.255.0
!
R1# 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
Gateway of last resort is not set
C 192.168.10.0/24 is directly connected, GigabitEthernet0/0.10
C 192.168.20.0/24 is directly connected, GigabitEthernet0/0.20
R1# show interfaces trunk
No trunks exist
R1#R1#show running-config
Building configuration...
Current configuration : 1024 bytes
!
hostname R1
!
interface GigabitEthernet0/0
no shutdown
!
interface GigabitEthernet0/0.10
encapsulation dot1Q 10
ip address 10.0.10.1 255.255.255.0
!
interface GigabitEthernet0/0.20
encapsulation dot1Q 20
ip address 10.0.20.1 255.255.255.0
!
interface GigabitEthernet0/0.99
encapsulation dot1Q 99 native
ip address 192.168.99.1 255.255.255.0
!
end
R1#show interfaces trunk
Port Mode Encapsulation Status Native vlan
Gig0/0.10 on 802.1q trunking 1
Gig0/0.20 on 802.1q trunking 1
Gig0/0.99 on 802.1q trunking 99
Port Vlans allowed on trunk
Gig0/0.10 1-1005
Gig0/0.20 1-1005
Gig0/0.99 1-1005
R1#show ip route
Codes: C - connected, S - static, I - IGP, R - RIP, ...
Gateway of last resort is not set
10.0.0.0/24 is subnetted, 2 subnets
C 10.0.10.0/24 is directly connected, GigabitEthernet0/0.10
C 10.0.20.0/24 is directly connected, GigabitEthernet0/0.20
192.168.99.0/24 is subnetted, 1 subnets
C 192.168.99.0/24 is directly connected, GigabitEthernet0/0.99
R1#show vlan brief
<no output — switch not R1>R1# show running-config | section interface GigabitEthernet0/0
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/0.10
encapsulation dot1Q 10
ip address 192.168.10.1 255.255.255.0
!
interface GigabitEthernet0/0.20
encapsulation dot1Q 20
ip address 192.168.20.1 255.255.255.0
!
R1# 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
Gateway of last resort is not set
C 192.168.10.0/24 is directly connected, GigabitEthernet0/0.10
C 192.168.20.0/24 is directly connected, GigabitEthernet0/0.20R1#show running-config | section interface
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/0.10
encapsulation dot1Q 10
ip address 192.168.10.1 255.255.255.0
!
interface GigabitEthernet0/0.20
encapsulation dot1Q 20
ip address 192.168.20.1 255.255.255.0
!
interface GigabitEthernet0/1
ip address 203.0.113.1 255.255.255.252
duplex auto
speed auto
!
R1#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
Gateway of last resort is not set
C 203.0.113.0/30 is directly connected, GigabitEthernet0/1
L 203.0.113.1/32 is directly connected, GigabitEthernet0/1R1#show running-config | section interface GigabitEthernet0/0
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/0.10
encapsulation dot1Q 10
ip address 192.168.10.1 255.255.255.0
!
interface GigabitEthernet0/0.20
encapsulation dot1Q 10
ip address 192.168.20.1 255.255.255.0
!
R1#show interfaces trunk
Port Mode Encapsulation Status Native vlan
Gig0/0 on 802.1q trunking 1
Port Vlans allowed on trunk
Gig0/0 1-1005
Port Vlans allowed and active in management domain
Gig0/0 1,10,20
Port Vlans in spanning tree forwarding state and not pruned
Gig0/0 1,10,20
R1#show ip route
Codes: C - connected, S - static, I - IGRP, 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
Gateway of last resort is not set
192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.10.0/24 is directly connected, GigabitEthernet0/0.10
192.168.20.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.20.0/24 is directly connected, GigabitEthernet0/0.20SW1#show running-config | section interface GigabitEthernet0/1
interface GigabitEthernet0/1
switchport mode trunk
switchport trunk native vlan 99
switchport trunk allowed vlan 10,20
!
R1#show running-config | section interface GigabitEthernet0/0
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/0.10
encapsulation dot1Q 10
ip address 192.168.10.1 255.255.255.0
!
interface GigabitEthernet0/0.20
encapsulation dot1Q 20
ip address 192.168.20.1 255.255.255.0
!
interface GigabitEthernet0/0.30
encapsulation dot1Q 30
ip address 192.168.30.1 255.255.255.0
!
R1#show ip route
Codes: C - connected, S - static, I - IGRP, 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
Gateway of last resort is not set
192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.10.0/24 is directly connected, GigabitEthernet0/0.10
L 192.168.10.1/32 is directly connected, GigabitEthernet0/0.10
192.168.20.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.20.0/24 is directly connected, GigabitEthernet0/0.20
L 192.168.20.1/32 is directly connected, GigabitEthernet0/0.20
192.168.30.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.30.0/24 is directly connected, GigabitEthernet0/0.30
L 192.168.30.1/32 is directly connected, GigabitEthernet0/0.30You are troubleshooting inter-VLAN routing on a router-on-a-stick setup. R1 is connected to SW1 via trunk port G0/0. VLANs 10, 20, and 30 exist on SW1, and R1 should route between them. Currently, hosts in VLAN 10 can communicate with VLAN 20 but cannot reach VLAN 30. Review the provided configuration and fix the issue.
R1 configuration:
interface GigabitEthernet0/0 no shutdown interface GigabitEthernet0/0.10 encapsulation dot1Q 10 ip address 192.168.10.1 255.255.255.0 interface GigabitEthernet0/0.20 encapsulation dot1Q 20 ip address 192.168.20.1 255.255.255.0 interface GigabitEthernet0/0.30 encapsulation dot1Q 100 ip address 192.168.30.1 255.255.255.0
SW1 configuration:
interface GigabitEthernet0/1 switchport trunk encapsulation dot1q switchport mode trunk switchport trunk allowed vlan 10,20,30
R1#show running-config | section interface GigabitEthernet0/0
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/0.10
encapsulation dot1Q 10
ip address 192.168.10.1 255.255.255.0
!
interface GigabitEthernet0/0.20
encapsulation dot1Q 20
ip address 192.168.20.1 255.255.255.0
!
interface GigabitEthernet0/0.30
encapsulation dot1Q 100
ip address 192.168.30.1 255.255.255.0
!
R1#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
Gateway of last resort is not set
C 192.168.10.0/24 is directly connected, GigabitEthernet0/0.10
L 192.168.10.1/32 is directly connected, GigabitEthernet0/0.10
C 192.168.20.0/24 is directly connected, GigabitEthernet0/0.20
L 192.168.20.1/32 is directly connected, GigabitEthernet0/0.20
C 192.168.30.0/24 is directly connected, GigabitEthernet0/0.30
L 192.168.30.1/32 is directly connected, GigabitEthernet0/0.30
SW1#show interfaces trunk
Port Mode Encapsulation Status Native vlan
Gig0/1 on 802.1q trunking 1
Port Vlans allowed on trunk
Gig0/1 1-1005
Port Vlans allowed and active in management domain
Gig0/1 1,10,20,30
Port Vlans in spanning tree forwarding state and not pruned
Gig0/1 10,20,30R1#show running-config | section interface GigabitEthernet0/0 interface GigabitEthernet0/0 no ip address duplex auto speed auto ! interface GigabitEthernet0/0.10 encapsulation dot1Q 10 ip address 192.168.10.1 255.255.255.0 ! R1#show running-config | include ip routing no ip routing R1#show interfaces trunk Port Mode Encapsulation Status Native vlan Gi0/0 on 802.1q trunking 99 Port Vlans allowed on trunk Gi0/0 10,20 Port Vlans allowed and active in management domain Gi0/0 10
R1# show running-config | section interface interface GigabitEthernet0/0 no ip address duplex auto speed auto ! interface GigabitEthernet0/0.10 encapsulation dot1Q 10 ip address 192.168.10.1 255.255.255.0 ! interface GigabitEthernet0/0.20 encapsulation dot1Q 20 ip address 192.168.20.1 255.255.255.0 ! interface GigabitEthernet0/1 ip address 203.0.113.2 255.255.255.252 duplex auto speed auto ! router ospf 1 network 203.0.113.0 0.0.0.3 area 0 ! SW1# show interfaces trunk Port Mode Encapsulation Status Native vlan Gig0/1 on 802.1q trunking 99 Port Vlans allowed on trunk Gig0/1 1-1005 Port Vlans allowed and active in management domain Gig0/1 10,20 SW1# show running-config | include vlan vlan 10 vlan 20 vlan 99
SW1#show interfaces trunk
Port Mode Encapsulation Status Native vlan
Gi0/1 on 802.1q trunking 1
Port Vlans allowed on trunk
Gi0/1 1-1005
Port Vlans allowed and active in management domain
Gi0/1 1,10,20
Port Vlans in spanning tree forwarding state and not pruned
Gi0/1 1,10,20
R1#show running-config | section interface GigabitEthernet0/0
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/0.10
encapsulation dot1Q 10
ip address 10.10.10.1 255.255.255.0
!
interface GigabitEthernet0/0.20
encapsulation dot1Q 20
ip address 10.10.20.1 255.255.255.0
!
R1#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
Gateway of last resort is not set
R1#SW1#show running-config | section interface interface GigabitEthernet0/1 switchport mode access switchport access vlan 10 spanning-tree portfast ! interface GigabitEthernet0/2 switchport mode access switchport access vlan 20 spanning-tree portfast !
MLS1#show running-config | section interface
interface FastEthernet0/1
switchport mode access
switchport access vlan 10
no shutdown
!
interface FastEthernet0/2
switchport mode access
switchport access vlan 10
no shutdown
!
interface FastEthernet0/3
switchport mode access
switchport access vlan 30
no shutdown
!
interface GigabitEthernet0/1
no switchport
ip address 192.0.2.1 255.255.255.252
no shutdown
!
MLS1#show interfaces switchport
Name: Fa0/1
Switchport: Enabled
Administrative Mode: static access
Operational Mode: static access
Administrative Trunking Encapsulation: negotiate
Operational Trunking Encapsulation: native
Negotiation of Trunking: Off
Access Mode VLAN: 10 (VLAN0010)
Trunking Native Mode VLAN: 1 (default)
Administrative Native VLAN tagging: enabled
Voice VLAN: none
Administrative Private VLAN Host Association: none
Administrative Private VLAN Mapping: none
...
Name: Fa0/2
... (similar to Fa0/1)
...
Name: Fa0/3
... (similar to Fa0/1 but Access Mode VLAN: 30)
...
MLS1#show power inline
Module Available Used Remaining
(Watts) (Watts) (Watts)
1 370 0 370
Interface Admin Oper Power Device Class Max
(Watts)
--------- ------ ---------- ------- ------------- ----- ---
Fa0/1 auto off 0.0 n/a n/a 15.4
Fa0/2 auto off 0.0 n/a n/a 15.4
Fa0/3 auto off 0.0 n/a n/a 15.4SW1#show running-config | section interface interface GigabitEthernet0/1 switchport mode access switchport access vlan 10 ! interface GigabitEthernet0/2 switchport mode access switchport access vlan 10 ! interface GigabitEthernet0/3 switchport mode access switchport access vlan 100 ! interface GigabitEthernet0/0 switchport mode trunk switchport trunk native vlan 100 !
R1# show spanning-tree
VLAN0001
Spanning tree enabled protocol rstp
Root ID Priority 32769
Address 0011.2233.4401
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)
Address 0011.2233.4401
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/1 Desg FWD 19 128.1 P2p
Fa0/2 Desg FWD 19 128.2 P2p
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 24586
Address 0011.2233.4402
Cost 19
Port 1 (FastEthernet0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32778 (priority 32768 sys-id-ext 10)
Address 0011.2233.4401
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/1 Root FWD 19 128.1 P2p
Fa0/2 Altn BLK 19 128.2 P2p
VLAN0020
Spanning tree enabled protocol rstp
Root ID Priority 24676
Address 0011.2233.4402
Cost 19
Port 1 (FastEthernet0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32788 (priority 32768 sys-id-ext 20)
Address 0011.2233.4401
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/1 Root FWD 19 128.1 P2p
Fa0/2 Altn BLK 19 128.2 P2p
R1# show interfaces fastEthernet 0/2
FastEthernet0/2 is down, line protocol is down (err-disabled)
Hardware is Fast Ethernet, address is 0011.2233.4402 (bia 0011.2233.4402)
MTU 1500 bytes, BW 100000 Kbit/sec, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Auto-duplex, 100Mb/s
input flow-control is off, output flow-control is off
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:08, output 00:00:05, 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/40 (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
Received 0 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 0 multicast, 0 pause input
0 input packets with dribble condition detected
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures, 0 output buffers swapped out
R1# show running-config | section interface FastEthernet0/2
interface FastEthernet0/2
switchport mode access
switchport access vlan 10
spanning-tree bpduguard enableSW1#show running-config | section vlan|spanning-tree|interface
vlan 10,20
spanning-tree mode rapid-pvst
spanning-tree vlan 10 priority 4096
spanning-tree vlan 20 priority 4096
!
interface GigabitEthernet0/1
switchport mode trunk
!
interface GigabitEthernet0/2
switchport mode access
switchport access vlan 10
!
interface GigabitEthernet0/3
switchport mode access
switchport access vlan 20
!
interface GigabitEthernet0/4
switchport mode access
switchport access vlan 10
SW1#show interfaces status | include err
Gi0/3 err-disabled auto auto 10/100/1000
SW1#show spanning-tree vlan 10
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 4096
Address aaaa.bbbb.cccc
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 4096 (priority 4096 sys-id-ext 10)
Address aaaa.bbbb.cccc
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type
------------------ ---- --- --------- -------- --------------------------------
Gi0/1 Desg FWD 4 128.1 P2p
Gi0/2 Desg FWD 4 128.2 P2p
Gi0/4 Desg FWD 4 128.4 P2p
SW1#show spanning-tree vlan 20
VLAN0020
Spanning tree enabled protocol rstp
Root ID Priority 4096
Address aaaa.bbbb.cccc
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 4096 (priority 4096 sys-id-ext 20)
Address aaaa.bbbb.cccc
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type
------------------ ---- --- --------- -------- --------------------------------
Gi0/1 Desg FWD 4 128.1 P2p
Gi0/3 Desg BLK 4 128.3 P2pSW1# show spanning-tree vlan 10
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 32768
Address 0011.2233.4455
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32768
Address 0011.2233.4455
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Gi0/1 Desg FWD 4 128.1 P2p
Gi0/2 Desg FWD 4 128.2 P2p
SW1# show running-config | include bpduguard
spanning-tree portfast bpduguard default
SW1# show interfaces gigabitethernet 0/2
GigabitEthernet0/2 is down, line protocol is down (err-disabled)
Hardware is Gigabit Ethernet, address is 0011.2233.4456
MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Auto-duplex, Auto-speed
input flow-control is off, output flow-control is off
ARP type: ARPA, ARP Timeout 04:00:00
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/40 (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 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 0 multicast, 0 pause input
0 input packets with dribble condition detected
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures, 0 output buffers swapped out
SW1# show errdisable recovery
ErrDisable Reason Timer Status
---------------- --------------
bpduguard Enabled
SW1# show spanning-tree vlan 20
VLAN0020
Spanning tree enabled protocol rstp
Root ID Priority 32778
Address 0055.6677.8899
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32778
Address 0055.6677.8899
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Gi0/1 Desg FWD 4 128.1 P2p
Gi0/2 Desg FWD 4 128.2 P2pR1# show running-config | section interface
interface GigabitEthernet0/0
description Uplink to R2
no switchport
ip address 10.0.0.1 255.255.255.252
!
interface GigabitEthernet0/1
description Access port to SwitchA
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/2
description Uplink to SwitchB
switchport mode trunk
!
interface GigabitEthernet0/3
description Access port to SwitchC
switchport mode access
spanning-tree portfast
!
R1# show spanning-tree
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address 0000.0c12.3456
This bridge is the root
Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)
Address 0000.0c12.3456
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Gi0/1 Desg FWD 4 128.2 P2p Edge
Gi0/2 Desg FWD 4 128.3 P2p
Gi0/3 Desg FWD 4 128.4 P2p EdgeR1# show running-config | section interface interface GigabitEthernet0/0 description Uplink to R2 switchport mode trunk ! interface GigabitEthernet0/1 description Downstream to SW2 switchport mode trunk ! interface GigabitEthernet0/2 description Access port for PC switchport mode access switchport access vlan 10 !
R1#show running-config interface gigabitEthernet0/1
Building configuration...
Current configuration : 133 bytes
!
interface GigabitEthernet0/1
description Link to Access Switch
switchport mode access
switchport access vlan 10
spanning-tree guard root
end
R1#show running-config interface gigabitEthernet0/2
Building configuration...
Current configuration : 115 bytes
!
interface GigabitEthernet0/2
description Uplink to Core
switchport mode trunk
spanning-tree guard loop
end
R1#show running-config interface gigabitEthernet0/3
Building configuration...
Current configuration : 127 bytes
!
interface GigabitEthernet0/3
description Server Port
switchport mode access
switchport access vlan 10
spanning-tree portfast
spanning-tree bpduguard enable
end
R1#show spanning-tree interface gigabitEthernet0/1 detail
Port 1 (GigabitEthernet0/1) of VLAN0010 is root guard blocked
Port path cost 4, Port priority 128, Port Identifier 128.1.
Designated root has priority 24576, address 0011.2233.4455
Designated bridge has priority 24576, address 0011.2233.4455
Designated port id is 128.1, designated path cost 0
Timers: message age 2, forward delay 0, hold 0
Number of transitions to forwarding state: 1
BPDU: sent 1, received 5
R1#show interfaces gigabitEthernet0/3 status
Port Name Status Vlan Duplex Speed Type
Gi0/3 Server Port err-disabled 10 auto auto 10/100/1000BaseTX
R1#show spanning-tree vlan 10
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 24576
Address 0011.2233.4455
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 24576 (priority 24576 sys-id-ext 10)
Address 0011.2233.4455
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Gi0/1 Desi BLK*4 128.1 P2p *ROOT_Guard
Gi0/2 Desi FWD 4 128.2 P2p *LOOP_Guard
Gi0/3 Desi BLK 4 128.3 P2p *BPDU_GuardSW1# show spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address aaaa.bbbb.cccc
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)
Address aaaa.bbbb.cccc
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20 sec
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Gi0/0 Desg FWD 4 128.1 P2p
Gi0/1 Desg FWD 4 128.2 P2p
Gi0/2 Desg FWD 4 128.3 P2p Edge
SW1# show running-config | section interface
interface GigabitEthernet0/0
description to SW2
switchport mode access
spanning-tree guard root
!
interface GigabitEthernet0/1
description to SW3
switchport mode trunk
spanning-tree guard loop
!
interface GigabitEthernet0/2
description to Workstation
switchport mode access
spanning-tree portfast
spanning-tree bpduguard enable
!MLS1# show spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address aabb.cc00.0100
This bridge is the root
Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)
Address aabb.cc00.0100
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Gi0/0 Desg FWD 4 128.1 P2p Edge
Gi0/1 Desg FWD 4 128.2 P2p
Gi0/2 Desg FWD 4 128.3 P2p
MLS1# show running-config | section interface
interface GigabitEthernet0/0
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/1
switchport mode trunk
!
interface GigabitEthernet0/2
switchport mode trunk
!Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag a concept onto its matching description — or click a concept then click the description.
Sets the switch port to permanent access mode
Configures the port as an 802.1Q trunk
Assigns VLAN 10 to the access port for data traffic
Specifies VLAN 20 for voice traffic on the port
Restricts the trunk to carry only VLANs 10 and 20
A switch shows this summary of trunk-related port settings (port, DTP mode, encapsulation, status, native VLAN):
Gi0/1 on 802.1q trunking 1 Gi0/2 auto 802.1q not-trunking 1
Which statement is correct?
A switch displays this output:
Port Name Status Vlan Fa0/1 connected 10 Fa0/2 connected 10 Fa0/24 connected trunk
Which port should be checked first if a user in VLAN 20 cannot reach the distribution switch over the uplink?
A switch displays the following output:
Switch# show interfaces trunk
Port Mode Encapsulation Status Native vlan Gi1/0/24 on 802.1q trunking 99
Port Vlans allowed on trunk Gi1/0/24 10,20,30
Port Vlans active in management domain Gi1/0/24 10,20,30,40
Users in VLAN 40 cannot reach resources across this trunk.
What is the most likely reason?
A switch administrator enters the following commands on interface GigabitEthernet1/0/10:
interface g1/0/10 switchport mode access switchport access vlan 30 spanning-tree portfast spanning-tree bpduguard enable
A user connects a small managed switch to this port, and the access port immediately changes to an err-disabled state.
Which feature caused the port to shut down?
A network engineer checks EtherChannel status on a switch and sees the following output:
Group Port-channel Protocol Ports ------+-------------+---------+----------------------------- 1 Po1(SD) LACP Gi1/0/1(s) Gi1/0/2(I)
What is the most likely reason the EtherChannel is not forwarding traffic?
interface GigabitEthernet1/0/12 switchport mode access spanning-tree portfast spanning-tree bpduguard enable
interface Vlan30 ip address 10.30.30.1 255.255.255.0 no shutdown interface Vlan99 ip address 10.99.99.1 255.255.255.0 no shutdown DHCP server IP: 10.99.99.20
SwitchA# show interfaces trunk Port Mode Encapsulation Status Native vlan Gi0/1 on 802.1q trunking 1 Port Vlans allowed on trunk Gi0/1 10,20,40 SwitchB# show interfaces trunk Port Mode Encapsulation Status Native vlan Gi0/1 on 802.1q trunking 1 Port Vlans allowed on trunk Gi0/1 10,20,30,40
Goal: - VLAN 10 and VLAN 20 must communicate through a multilayer switch
Switch port requirement: - IP phone and PC share one physical access connection - Voice and data must remain logically separate
SwitchA# show interfaces trunk Port Mode Encapsulation Status Native vlan Gi0/1 on 802.1q trunking 1 Port Vlans allowed on trunk Gi0/1 10,20,40 SwitchB# show interfaces trunk Port Mode Encapsulation Status Native vlan Gi0/1 on 802.1q trunking 1 Port Vlans allowed on trunk Gi0/1 10,20,30,40
Drag a concept onto its matching description — or click a concept then click the description.
Speeds an edge port into forwarding state
Disables an edge port if a BPDU is received
Limits and controls MAC address use on a switch port
Helps block rogue DHCP behavior and build trusted bindings
SwitchA# show interfaces trunk Port Mode Encapsulation Status Native vlan Gi0/2 on 802.1q trunking 1 Port Vlans allowed on trunk Gi0/2 10,20,30 SwitchB# show interfaces trunk Port Mode Encapsulation Status Native vlan Gi0/2 on 802.1q trunking 1 Port Vlans allowed on trunk Gi0/2 10,20,30,50
Drag a concept onto its matching description — or click a concept then click the description.
Limits and controls MAC address use on a switch port
Disables an edge port if a BPDU is received
Helps block rogue DHCP activity and build trusted bindings
Validates ARP traffic using trusted information
Drag a concept onto its matching description — or click a concept then click the description.
Centralized platform used to manage access points
Name that identifies the wireless network to clients
Wireless security standard
Protocol associated with AP-to-controller communication
interface GigabitEthernet0/1 switchport mode trunk channel-group 1 mode active interface GigabitEthernet0/2 switchport mode access channel-group 1 mode active
SW1# show interfaces trunk Port Mode Encapsulation Status Native vlan Gi0/1 on 802.1q trunking 1 Port Vlans allowed on trunk Gi0/1 10,20,30,40 SW2# show interfaces trunk Port Mode Encapsulation Status Native vlan Gi0/1 on 802.1q trunking 1 Port Vlans allowed on trunk Gi0/1 10,20,30,40,50
Corrective action applied: - Both Gi0/1 and Gi0/2 on both switches now use trunk mode - channel-group 1 mode active remains configured
Client observations: - Joined SSID: Corp-Employee - Authentication: success - Assigned IP: 10.90.200.44/24 Expected employee subnet: 10.90.10.0/24 Observed guest subnet: 10.90.200.0/24
Controller status: - 14 APs joined successfully AP-15 status: - Power on: yes - Ethernet link: up - IP address: 10.60.15.44/24 - Default gateway configured: 10.60.14.1 - Controller management IP: 10.60.15.10
interface GigabitEthernet0/10 switchport mode access switchport port-security switchport port-security maximum 1 switchport port-security violation shutdown Event: %PORT_SECURITY-2-PSECURE_VIOLATION: Security violation occurred, caused by MAC addresses ... on port Gi0/10.
AP-22 status: - Ethernet link: up - IP address: 10.75.22.18/24 - Default gateway: 10.75.21.1 - Controller: 10.75.30.5 - Other APs joined: yes
interface GigabitEthernet1/0/9 switchport mode access spanning-tree portfast spanning-tree bpduguard enable Event: %SPANTREE-2-BLOCK_BPDUGUARD: Received BPDU on port Gi1/0/9 with BPDU Guard enabled. Disabling port.
SW1# show vlan brief 60 Users-60 active SW2# show vlan brief 10 Users-10 active 20 Users-20 active SW2# show interfaces trunk Port Mode Encapsulation Status Native vlan Gi0/1 on 802.1q trunking 1 Port Vlans allowed on trunk Gi0/1 10,20,60
Interface Gi1/0/12: switchport mode access spanning-tree portfast spanning-tree bpduguard enable Status after connection: err-disabled
Interface config: switchport mode access switchport access vlan 10 spanning-tree portfast
SW1 Gi0/1 trunk allowed vlan 10,20 SW2 Gi0/1 trunk allowed vlan 10,20 Both switches have VLAN 30 configured and access ports assigned correctly.
Laptop status: Associated to CorpWiFi, signal strong AP dashboard: client joined successfully Client shows APIPA address 169.254.22.14
SW1 show interfaces trunk Port Vlans allowed on trunk: 10,30 SW2 show interfaces trunk Port Vlans allowed on trunk: 10
show port-security interface gi1/0/10 Port Status : secure-shutdown Violation Mode : shutdown Maximum MAC Addresses : 1 Total MAC Addresses : 2
WLAN security: WPA2-Enterprise AP log: RADIUS server timeout SSID is visible and clients associate, but login fails
SW2 uplink A root path cost = 4 SW2 uplink B root path cost = 19 Both links receive superior BPDUs
SW1: interface range g1/0/1-2 channel-group 1 mode active SW2: interface range g1/0/1-2 channel-group 1 mode on
SW1: switchport trunk allowed vlan 10,20,30 SW2: switchport trunk allowed vlan 10,20
interface g1/0/24 switchport mode access spanning-tree portfast spanning-tree bpduguard enable
WLAN Corp uses WPA2-Enterprise WLAN Guest uses WPA2-PSK AP joined to WLC successfully Recent event: AAA server unreachable
show interfaces status Port Name Status Vlan Duplex Speed Type Gi1/0/10 inactive 20 auto auto 10/100/1000BaseTX show vlan brief VLAN Name Status Ports 1 default active Gi1/0/1, Gi1/0/2 10 Users active Gi1/0/5 30 Voice active Gi1/0/6
Current 2.4 GHz plan: AP1 channel 1 AP2 channel 2 AP3 channel 3
SW1# show etherchannel summary Group Port-channel Protocol Ports 1 Po1(SU) LACP Gi1/0/1(P) Gi1/0/2(s)
SW1# show interfaces trunk Port Mode Encapsulation Status Native vlan Gi1/0/24 on 802.1q trunking 1 Port Vlans allowed on trunk Gi1/0/24 10,20,40 Port Vlans in spanning tree forwarding state and not pruned Gi1/0/24 10,20,40
interface Gi1/0/7 switchport mode access switchport voice vlan 20 spanning-tree portfast
Drag a concept onto its matching description — or click a concept then click the description.
Reduces delay for an end-host access port to reach forwarding
Err-disables a PortFast port that unexpectedly receives a BPDU
Prevents an access or designated port from becoming a new root port because of superior BPDUs
Helps stop a non-designated port from transitioning to forwarding when BPDUs stop arriving
interface gi1/0/10 switchport mode access switchport access vlan 999 switchport voice vlan 20 spanning-tree portfast
SW1# show etherchannel summary Group Port-channel Protocol Ports 1 Po1(SD) LACP Gi1/0/1(I) Gi1/0/2(I) SW1 interface range gi1/0/1-2 channel-group 1 mode active SW2 interface range gi1/0/1-2 channel-group 1 mode on
Switch A trunk allowed VLANs: 10,20,30 Switch B trunk allowed VLANs: 10,20
Desired behavior: - one known endpoint per port - violation causes interface shutdown
SW1# show interfaces trunk Port Mode Encapsulation Status Native vlan Gi0/1 on 802.1q trunking 1 Port Vlans allowed on trunk Gi0/1 1,30 Port Vlans allowed and active in management domain Gi0/1 1,30 Port Vlans in spanning tree forwarding state and not pruned Gi0/1 1,30 SW1# show running-config interface gi0/1 Building configuration... Current configuration : 168 bytes ! interface GigabitEthernet0/1 switchport trunk encapsulation dot1q switchport trunk allowed vlan 1,30 switchport mode trunk end SW1# show vlan brief VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default active Gi0/2, Gi0/3 10 VLAN0010 active Gi0/4 20 VLAN0020 active Gi0/5 30 MGMT active 1002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup
Drag a concept onto its matching description — or click a concept then click the description.
Enables 802.1Q trunking on a switch interface
Assigns an access port to VLAN 10
VLAN that carries untagged traffic on a trunk link; default is VLAN 1
Changes the native VLAN on a trunk to VLAN 99
Uses subinterfaces on a single router interface to route between VLANs
interface GigabitEthernet1/0/24 description VoIP and Desktop switchport mode access switchport access vlan 10 switchport voice vlan 20 spanning-tree portfast !
Drag a concept onto its matching description — or click a concept then click the description.
Configures the port as a non-trunking access port
Limits the number of MAC addresses on a desktop access port
Separates VoIP traffic into a dedicated VLAN
Assigns the data VLAN for desktop or AP devices
Immediately transitions an end-device port to forwarding state
Macro that sets access mode and PortFast and disables EtherChannel on the port
SwitchA# show spanning-tree vlan 10
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 24586
Address 00aa.bbcc.ddee
Cost 4
Port 1 (GigabitEthernet0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32778 (priority 32768 sys-id-ext 10)
Address 0011.2233.4455
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Gi0/1 Root FWD 4 128.1 P2p
Gi0/2 Altn BLK 4 128.2 P2pSwitchC# show interfaces status
Port Name Status Vlan Duplex Speed Type
Gi0/1 err-disabled 10 auto auto 10/100/1000BaseTX
Gi0/2 connected 10 a-full a-100 10/100/1000BaseTX
Gi0/3 connected 1 a-full a-100 10/100/1000BaseTX
SwitchC# show interfaces gigabitEthernet 0/1
GigabitEthernet0/1 is down, line protocol is down (err-disabled)
Hardware is Gigabit Ethernet, address is aaaa.bbbb.cccc (bia aaaa.bbbb.cccc)
MTU 1500 bytes, BW 100000 Kbit/sec, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Auto-duplex, Auto-speed, media type is 10/100/1000BaseTX
input flow-control is off, output flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:00, 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/40 (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 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 0 multicast, 0 pause input
0 input packets with dribble condition detected
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures, 0 output buffers swapped out
SwitchC# show errdisable recovery
ErrDisable Reason Timer Status
----------------- --------------
arp-inspection Disabled
bpduguard Enabled
channel-misconfig Disabled
...
SwitchC# show spanning-tree vlan 10
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 32778
Address aaaa.bbbb.cccc
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32778 (priority 32768 sys-id-ext 10)
Address aaaa.bbbb.cccc
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Gi0/2 Desg FWD 4 128.2 P2p
Gi0/3 Desg FWD 4 128.3 P2p
SwitchC# show running-config | section interface GigabitEthernet0/1
interface GigabitEthernet0/1
switchport mode access
switchport access vlan 10
spanning-tree portfast
spanning-tree bpduguard enableR1# show monitor capture CAP1 buffer brief
# size timestamp source destination protocol
1 60 0.000000 192.168.10.10 Broadcast ARP (Who has 192.168.10.1?)
2 60 0.000412 192.168.10.1 192.168.10.10 ARP (192.168.10.1 is at 0011.2233.4401)
3 74 0.001203 192.168.10.10 192.168.10.1 ICMP (Echo request)
4 74 1.003388 192.168.10.10 192.168.10.1 ICMP (Echo request)
5 74 2.005121 192.168.10.10 192.168.10.1 ICMP (Echo request)
R1# show ip interface vlan 10
Vlan10 is up, line protocol is up
Internet address is 192.168.10.1/24
Helper address is not set
Outgoing access list is not set
Inbound access list is VLAN10-IN
Proxy ARP is enabled
R1# show ip access-lists VLAN10-IN
Extended IP access list VLAN10-IN
10 deny icmp 192.168.10.0 0.0.0.255 host 192.168.10.1 echo (12 matches)
20 permit ip any any (87 matches)R1# show monitor capture CAP buffer brief -------------------------------------------------------------- # size timestamp source destination protocol -------------------------------------------------------------- 0 64 0.000000 0050.7966.6801 -> ffff.ffff.ffff ARP 1 64 2.001204 0050.7966.6801 -> ffff.ffff.ffff ARP 2 64 4.002871 0050.7966.6801 -> ffff.ffff.ffff ARP (ARP: who has 192.168.10.1? tell 192.168.10.10; 802.1Q VLAN 10) R1# show running-config | section interface GigabitEthernet0/1 interface GigabitEthernet0/1 no ip address no shutdown interface GigabitEthernet0/1.10 encapsulation dot1Q 10 no ip address interface GigabitEthernet0/1.20 encapsulation dot1Q 20 ip address 192.168.20.1 255.255.255.0
SW1# show interfaces gigabitEthernet 0/1 status Port Name Status Vlan Duplex Speed Type Gi0/1 err-disabled 1 auto auto 10/100/1000BaseTX SW1# show running-config interface gigabitEthernet 0/1 Building configuration... Current configuration : 109 bytes ! interface GigabitEthernet0/1 switchport mode access spanning-tree bpduguard enable end SW1# show spanning-tree interface gigabitEthernet 0/1 detail Port 1 (GigabitEthernet0/1) of VLAN0001 is broken (BPDU Guard) Port path cost 4, Port priority 128, Port Identifier 128.1. Designated root has priority 32768, address aaaa.bbbb.cccc Designated bridge has priority 32768, address aaaa.bbbb.cccc Designated port id is 128.1, designated path cost 0 Timers: message age 0, forward delay 0, hold 0 BPDU: sent 0, received 3
SW1# show interfaces status Port Name Status Vlan Duplex Speed Type Gi0/1 err-disabled 10 auto auto 10/100/1000BaseTX Gi0/2 err-disabled 10 auto auto 10/100/1000BaseTX Gi0/3 err-disabled 10 auto auto 10/100/1000BaseTX Gi0/4 err-disabled 10 auto auto 10/100/1000BaseTX Gi0/5 connected trunk auto auto 10/100/1000BaseTX Gi0/6 connected 1 auto auto 10/100/1000BaseTX Gi0/7 connected 1 auto auto 10/100/1000BaseTX SW1# show running-config interface gi0/1 Building configuration... Current configuration : 83 bytes ! interface GigabitEthernet0/1 switchport mode access switchport access vlan 10 spanning-tree bpduguard enable end SW1# show running-config | include bpduguard spanning-tree portfast bpduguard default
SwitchA# show spanning-tree interface gigabitEthernet 0/1 detail Port 1 (GigabitEthernet0/1) of VLAN0010 is root INCONSISTENT Port path cost 4, Port priority 128, Port Identifier 128.1. Designated root has priority 32768, address aaaa.bbbb.cccc Designated bridge has priority 32768, address aaaa.bbbb.cccc Designated port id is 128.1, designated path cost 0 Timers: message age 0, forward delay 0, hold 0 Number of transitions to forwarding state: 0 The port is not in the portfast mode Root guard is enabled on the port BPDU guard is disabled Loop guard is disabled Link type is point-to-point (auto) BPDU: sent 3, received 2
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
R1# show running-config | section interface GigabitEthernet0/0 interface GigabitEthernet0/0 no ip address shutdown duplex auto speed auto ! interface GigabitEthernet0/0.10 encapsulation dot1Q 10 ip address 192.168.10.1 255.255.255.0 ! interface GigabitEthernet0/0.20 encapsulation dot1Q 20 ip address 192.168.20.1 255.255.255.0 R1# show ip interface brief Interface IP-Address OK? Method Status Protocol GigabitEthernet0/0 unassigned YES unset administratively down down GigabitEthernet0/0.10 192.168.10.1 YES manual administratively down down GigabitEthernet0/0.20 192.168.20.1 YES manual administratively down down R1# show ip route Gateway of last resort is not set
SW2# show running-config interface FastEthernet0/5, then show running-config interface FastEthernet0/10 interface FastEthernet0/5 switchport access vlan 50 switchport mode access power inline never ! interface FastEthernet0/10 switchport access vlan 100 switchport mode access power inline never !
SW1#show running-config | section interface
interface GigabitEthernet0/1
switchport mode access
switchport access vlan 10
spanning-tree portfast
!
interface GigabitEthernet0/2
switchport mode access
switchport access vlan 30
power inline never
spanning-tree portfast
!
SW1#show interfaces gigabitethernet0/1 switchport | include Voice
Voice VLAN: none
SW1#show power inline
Interface Admin Oper Power Device Class Max
(Watts)
--------- ------ ---------- ------- ------------------- ----- ----
Gi0/1 auto off 0.0 n/a n/a 30.0
Gi0/2 off off 0.0 n/a n/a 30.0Current running-config (partial): ! hostname MLS1 ! vlan 10 name DATA ! vlan 20 name AP ! vlan 110 name VOICE ! interface GigabitEthernet1/0/1 description IP Phone Port ! interface GigabitEthernet1/0/2 description AP Port ! interface Vlan1 ip address 192.168.1.1 255.255.255.0 no shutdown ! line con 0 logging synchronous exit
Current running-config (partial): ! hostname MLS1 ! interface GigabitEthernet0/1 switchport mode access switchport access vlan 10 no shutdown ! interface GigabitEthernet0/2 switchport mode access switchport access vlan 10 no shutdown ! interface Vlan1 ip address 192.168.1.1 255.255.255.0 no shutdown ! end
MLS1# show running-config interface FastEthernet0/1 Building configuration... Current configuration : 118 bytes ! interface FastEthernet0/1 no switchport ip address 192.168.10.1 255.255.255.0 power inline never duplex auto speed auto end
SW1# show spanning-tree vlan 10
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 24586
Address 0000.0c12.3456
Cost 4
Port 2 (GigabitEthernet0/2)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32778 (priority 32768 sys-id-ext 10)
Address 0001.0001.0001
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- ----------------
Gi0/2 Root FWD 4 128.2 P2p
SW1# show spanning-tree vlan 20 | include Root|Priority
Root ID Priority 24596
Bridge ID Priority 32788 (priority 32768 sys-id-ext 20)
SW1# show running-config | section interface GigabitEthernet0/1
interface GigabitEthernet0/1
switchport mode access
switchport access vlan 10
spanning-tree portfast
spanning-tree bpduguard enable
SW1# show interfaces status err-disabled
Port Name Status Reason Err-disabled Vlans
Gi0/1 err-disabled bpduguard%SPANTREE-2-BLOCK_BPDUGUARD: Received BPDU on port Gi0/1 with BPDU Guard enabled. Disabling port.
MLSW1# show spanning-tree vlan 10
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 24586
Address 0c75.15b6.0099
Cost 4
Port 2 (GigabitEthernet0/2)
Bridge ID Priority 32778 (priority 32768 sys-id-ext 10)
Address 0c75.15b6.0001
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Gi0/2 Root FWD 4 128.2 P2p
Gi0/3 Altn BLK 4 128.3 P2p
MLSW1# show interfaces gigabitEthernet 0/1 status
Port Name Status Vlan Duplex Speed Type
Gi0/1 err-disabled 10 auto auto 10/100/1000BaseTXSW1# show spanning-tree vlan 1
VLAN0001
Spanning tree enabled protocol rstp
Root ID Priority 32769
Address 0001.1111.1111
Cost 4
Port 1 (GigabitEthernet0/0)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)
Address 0001.2222.2222
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Gi0/0 Root FWD 4 128.1 P2p
Gi0/1 Desg FWD 4 128.2 P2p
Gi0/2 Desg FWD 4 128.3 P2p
Gi0/3 Desg FWD 4 128.4 P2p
SW1# show running-config interface GigabitEthernet0/3
Building configuration...
Current configuration : 60 bytes
!
interface GigabitEthernet0/3
switchport mode access
end
(Later, after a BPDU is received on Gi0/3)
SW1# show interfaces status err-disabled
Port Name Status Reason Err-disabled Vlans
Gi0/3 err-disabled bpduguardMLS1# show running-config | include hostname|spanning-tree|interface GigabitEthernet0/1
hostname MLS1
spanning-tree mode rapid-pvst
interface GigabitEthernet0/1
switchport mode access
switchport access vlan 10
spanning-tree portfast
spanning-tree bpduguard enable
MLS1# show spanning-tree vlan 10
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 28682
Address 00aa.bbcc.ddee
Cost 4
Port 2 (GigabitEthernet0/2)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32778 (priority 32768 sys-id-ext 10)
Address aabb.cc00.0100
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Gi0/1 Desg FWD 4 128.1 P2p Edge
Gi0/2 Root FWD 4 128.2 P2p
Gi0/3 Altn BLK 4 128.3 P2p
MLS1# show interfaces gigabitEthernet 0/1 status
Port Name Status Vlan Duplex Speed Type
Gi0/1 connected 10 a-full a-100 10/100/1000BaseTX%SPANTREE-2-BLOCK_BPDUGUARD: Received BPDU on port Gi0/1 with BPDU Guard enabled. Disabling port.
%PM-4-ERR_DISABLE: bpduguard error detected on Gi0/1, putting Gi0/1 in err-disable state
SW1# show interfaces status err-disabled
Port Name Status Reason Err-disabled Vlans
Gi0/1 err-disabled bpduguard
SW1# show running-config interface GigabitEthernet0/1
interface GigabitEthernet0/1
switchport mode access
switchport access vlan 10
spanning-tree portfast
spanning-tree bpduguard enable
SW1# show spanning-tree vlan 10 | include Priority|root
Root ID Priority 24586
This bridge is the root
Bridge ID Priority 24586 (priority 24576 sys-id-ext 10)%SPANTREE-2-BLOCK_BPDUGUARD: Received BPDU on port Gi0/3 with BPDU Guard enabled. Disabling port. SW3# show interfaces status Port Name Status Vlan Duplex Speed Type Gi0/1 connected trunk a-full a-1000 10/100/1000BaseTX Gi0/2 connected trunk a-full a-1000 10/100/1000BaseTX Gi0/3 PC err-disabled 1 auto auto 10/100/1000BaseTX SW3# show running-config interface GigabitEthernet0/3 interface GigabitEthernet0/3 description PC switchport mode access switchport access vlan 1 spanning-tree bpduguard enable
SW1# show running-config | include spanning-tree|errdisable
spanning-tree mode rapid-pvst
spanning-tree vlan 10 priority 4096
SW1# show running-config interface GigabitEthernet0/1
interface GigabitEthernet0/1
description Server Port
switchport mode access
switchport access vlan 10
spanning-tree portfast
spanning-tree bpduguard enable
SW1# show spanning-tree vlan 10
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 4106
Address aabb.cc00.0100
This bridge is the root
Bridge ID Priority 4106 (priority 4096 sys-id-ext 10)
Address aabb.cc00.0100
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------
Gi0/0 Desg FWD 4 128.1 P2p
SW1# show interfaces status err-disabled
Port Name Status Reason Err-disabled Vlans
Gi0/1 Server Port err-disabled bpduguardMLS1# show running-config | include spanning-tree
spanning-tree mode rapid-pvst
spanning-tree vlan 1 priority 24576
MLS1# show spanning-tree vlan 1
VLAN0001
Spanning tree enabled protocol rstp
Root ID Priority 24577
Address aabb.cc00.0300
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 24577 (priority 24576 sys-id-ext 1)
Address aabb.cc00.0300
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Gi0/0 Desg FWD 4 128.1 P2p
Gi0/1 Desg FWD 4 128.2 P2p
Gi0/2 Desg FWD 4 128.3 P2p
MLS1# show running-config interface GigabitEthernet0/2
interface GigabitEthernet0/2
switchport mode access
switchport access vlan 1
endR1# show interfaces status Port Name Status Vlan Duplex Speed Type Gi0/0 connected routed full 1000 1000BaseSX Gi0/1 err-disabled 10 auto auto 10/100/1000BaseTX Gi0/2 connected 10 auto auto 10/100/1000BaseTX R1# show interfaces status err-disabled Port Name Status Reason Err-disabled Vlans Gi0/1 err-disabled bpduguard R1# show errdisable recovery ErrDisable Reason Timer Status ----------------- -------------- arp-inspection Disabled bpduguard Disabled channel-misconfig (STP) Disabled dtp-flap Disabled link-flap Disabled psecure-violation Disabled udld Disabled Timer interval: 300 seconds R1# show running-config | include errdisable R1#
R1# show spanning-tree inconsistentports Name Interface Inconsistency -------------------- ---------------------- ------------------ VLAN0001 GigabitEthernet1/0/1 Root Inconsistent Number of inconsistent ports (segments) in the system : 1 R1# show spanning-tree interface GigabitEthernet1/0/2 detail | include Port 2|Loop Port 2 (GigabitEthernet1/0/2) of VLAN0001 is root forwarding Loop guard is enabled on the port R1# show interfaces GigabitEthernet1/0/3 status Port Name Status Vlan Duplex Speed Type Gi1/0/3 Access Port err-disabled 1 auto auto 10/100/1000BaseTX
SW1# show running-config | section interface interface GigabitEthernet0/0 description Management ip address 192.168.1.1 255.255.255.0 ! interface GigabitEthernet0/1 description Link to Access Switch switchport trunk encapsulation dot1q switchport mode trunk ! interface GigabitEthernet0/2 description Uplink to Core switchport trunk encapsulation dot1q switchport mode trunk ! interface GigabitEthernet0/3 description End-Device Port switchport mode access switchport access vlan 10 spanning-tree portfast ! interface Vlan10 ip address 10.0.0.1 255.255.255.0
R1# show running-config | section interface interface GigabitEthernet0/1 switchport mode trunk spanning-tree guard root ! interface GigabitEthernet0/2 switchport mode trunk ! interface GigabitEthernet0/3 switchport mode access switchport access vlan 10 spanning-tree portfast spanning-tree bpduguard enable R1# show spanning-tree inconsistentports Name Interface Inconsistency -------------------- ---------------------- ------------------ VLAN0010 GigabitEthernet0/1 Root Inconsistent Number of inconsistent ports (segments) in the system : 1 R1# show interfaces status err-disabled Port Name Status Reason Err-disabled Vlans Gi0/3 err-disabled bpduguard
MLS1# show running-config | include interface|spanning-tree interface GigabitEthernet0/1 spanning-tree guard root interface GigabitEthernet0/2 spanning-tree guard loop interface GigabitEthernet0/3 spanning-tree portfast spanning-tree bpduguard enable MLS1# show spanning-tree inconsistentports Name Interface Inconsistency -------------------- ---------------------- ------------------ VLAN0001 GigabitEthernet0/1 Root Inconsistent Number of inconsistent ports (segment) : 1 MLS1# show interfaces status err-disabled Port Name Status Reason Err-disabled Vlans Gi0/3 access port to host err-disabled bpduguard MLS1# show spanning-tree interface GigabitEthernet0/2 detail Port 2 (GigabitEthernet0/2) of VLAN0001 is root forwarding Loop guard is enabled on the port
R1# show running-config | section interface
interface GigabitEthernet1/0/1
description Uplink to Core
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet1/0/2
description Uplink to Core
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet1/0/3
description Downstream switch
switchport trunk encapsulation dot1q
switchport mode trunk
spanning-tree guard root
!
interface GigabitEthernet1/0/5
description Desktop
switchport access vlan 10
switchport mode access
spanning-tree portfast
spanning-tree bpduguard enable
R1# show spanning-tree vlan 10
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 4106
Address 0011.2233.4455
Cost 4
Port 1 (GigabitEthernet1/0/1)
Bridge ID Priority 32778 (priority 32768 sys-id-ext 10)
Address 00aa.bbcc.ddee
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- ----------------
Gi1/0/1 Root FWD 4 128.1 P2p
Gi1/0/2 Altn BLK 4 128.2 P2p
Gi1/0/3 Desg BKN*4 128.3 P2p *ROOT_Inc
R1# show interfaces status err-disabled
Port Name Status Reason
Gi1/0/5 Desktop err-disabled bpduguardSW1# show running-config | section interface ! interface GigabitEthernet0/1 duplex half speed 100 switchport mode access switchport access vlan 10 ! interface GigabitEthernet0/2 duplex full speed 1000 switchport mode access switchport access vlan 20 ! interface Port-channel1 no ip address switchport mode access switchport access vlan 10 ! SW2# show running-config | section interface ! interface GigabitEthernet0/1 duplex half speed 100 switchport mode access switchport access vlan 10 ! interface GigabitEthernet0/2 duplex full speed 1000 switchport mode access switchport access vlan 20 ! interface Port-channel1 no ip address switchport mode access switchport access vlan 10 !
SW1# show ip interface brief | include Vlan Vlan10 192.168.10.1 YES manual up up Vlan20 192.168.20.1 YES manual up up SW1# show ip route Default gateway is not set Host Gateway Last Use Total Uses Interface ICMP redirect cache is empty
SW1# show running-config | include ip routing SW1# SW1# show running-config interface vlan 10 interface Vlan10 ip address 192.168.10.1 255.255.255.0 end SW1# show running-config interface vlan 20 interface Vlan20 ip address 192.168.20.1 255.255.255.0 end SW1# show ip interface brief | include Vlan Vlan10 192.168.10.1 YES manual up up Vlan20 192.168.20.1 YES manual up up
Drag a concept onto its matching description — or click a concept then click the description.
Statically configures the port as an access port
Sets the data VLAN for an access port
Assigns the VLAN for IP phone voice traffic
Permanently sets the interface as a trunk port
Restricts which VLANs traverse the trunk
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
Drag or tap steps into the slots.
SW1# show running-config interface GigabitEthernet0/1 Building configuration... Current configuration : 128 bytes ! interface GigabitEthernet0/1 switchport mode access switchport access vlan 10 spanning-tree portfast end SW1#
SW1# show running-config interface gigabitEthernet 1/0/1 Building configuration... Current configuration : 150 bytes ! interface GigabitEthernet1/0/1 switchport mode access switchport access vlan 10 no shutdown end SW1# show interfaces gigabitEthernet 1/0/1 switchport Name: Gi1/0/1 Switchport: Enabled Administrative Mode: static access Operational Mode: static access Administrative Trunking Encapsulation: negotiate Operational Trunking Encapsulation: native Negotiation of Trunking: Off Access Mode VLAN: 10 (VLAN0010) Trunking Native Mode VLAN: 1 (default) Administrative Native VLAN tagging: enabled Voice VLAN: none
SW-DIST# show spanning-tree inconsistentports Name Interface Inconsistency -------------------- ------------------------ ------------------ VLAN10 GigabitEthernet1/0/1 Root Inconsistent
Switch# show running-config interface GigabitEthernet0/5 Building configuration... Current configuration : 185 bytes ! interface GigabitEthernet0/5 switchport access vlan 10 switchport mode access switchport voice vlan 20 no ip address spanning-tree portfast end Switch# show vlan brief VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default active Gi0/1, Gi0/2, Gi0/3, Gi0/4 10 Data active Gi0/5, Gi0/6, Gi0/7 1002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup
Drag a concept onto its matching description — or click a concept then click the description.
Enables a port as an 802.1Q trunk port
The VLAN that carries untagged frames on a trunk link
Open standard for VLAN tagging on Ethernet frames
Process of forwarding traffic between different VLANs
Displays a summary of VLANs and their assigned ports
Drag or tap steps into the slots.
SW1# show vlan brief VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default active Gi0/1, Gi0/2, Gi0/4, Gi0/5, Gi0/6 10 Management active Gi0/7, Gi0/8 20 Sales active Gi0/9, Gi0/10 30 Engineering act/lshut Gi0/3 1002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup
SW1# show interfaces GigabitEthernet0/1 trunk Port Mode Encapsulation Status Native vlan Gi0/1 on 802.1q trunking 1 Port Vlans allowed on trunk Gi0/1 1-49,60-4094 Port Vlans allowed and active in management domain Gi0/1 1-49,60-4094 Port Vlans in spanning tree forwarding state and not pruned Gi0/1 1-49,60-4094
SW3# show spanning-tree vlan 10
VLAN0010
Spanning tree enabled protocol ieee
Root ID Priority 32778
Address 00d0.97f1.8a00
Cost 4
Port 26 (GigabitEthernet0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32778 (priority 32768 sys-id-ext 10)
Address 00d0.97f3.b200
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Gi0/0 Altn BLK 4 128.25 P2p
Gi0/1 Root FWD 4 128.26 P2p
Gi0/2 Desg FWD 19 128.27 P2pSW1# show ip interface brief Interface IP-Address OK? Method Status Protocol Vlan1 192.168.1.1 YES NVRAM up up Vlan10 172.16.10.1 YES NVRAM down down Vlan20 172.16.20.1 YES NVRAM up up GigabitEthernet0/0 unassigned YES unset up up GigabitEthernet0/1 unassigned YES unset up up GigabitEthernet0/2 unassigned YES unset up up GigabitEthernet0/3 unassigned YES unset up up
SW2# show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Gi0/1, Gi0/3, Gi0/4, Gi0/5
Gi0/6, Gi0/7, Gi0/8
10 Sales active Gi0/9, Gi0/10, Gi0/11
20 Engineering active Gi0/12, Gi0/13
30 Management active Gi0/14
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsupSW1# show running-config interface GigabitEthernet0/5 interface GigabitEthernet0/5 switchport mode access switchport access vlan 10 spanning-tree portfast spanning-tree bpdufilter enable end
SW1# show etherchannel load-balance
EtherChannel Load-Balancing Configuration:
src-mac
EtherChannel Load-Balancing Addresses Used Per-Protocol:
Non-IP: Source MAC address
IPv4: Source MAC address
IPv6: Source MAC address
Load-Balancing Operational Parameters:
Hash algorithm: CRC
Asymmetric hashing: disabledSW1# show interfaces GigabitEthernet0/1 trunk Port Mode Encapsulation Status Native vlan Gi0/1 on isl trunking 1 Port Vlans allowed on trunk Gi0/1 1-4094 Port Vlans allowed and active in management domain Gi0/1 1,10,20,30,99 Port Vlans in spanning tree forwarding state and not pruned Gi0/1 1,10,20,30,99 SW2# show interfaces GigabitEthernet0/1 trunk Port Mode Encapsulation Status Native vlan Gi0/1 on 802.1q trunking 1 Port Vlans allowed on trunk Gi0/1 1-4094 Port Vlans allowed and active in management domain Gi0/1 1,10,20,30,99 Port Vlans in spanning tree forwarding state and not pruned Gi0/1 1,10,20,30,99
SW1# show port-security interface GigabitEthernet0/5 Port Security : Enabled Port Status : Secure-shutdown Violation Mode : Shutdown Aging Time : 0 mins Aging Type : Absolute SecureStatic Address Aging : Disabled Maximum MAC Addresses : 1 Total MAC Addresses : 1 Configured MAC Addresses : 0 Sticky MAC Addresses : 1 Last Source Address:Vlan : aaaa.bbbb.cccc:10 Security Violation Count : 3
SW2# show spanning-tree vlan 1
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address 000a.f3e5.1234
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)
Address 000a.f3e5.1234
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Gi0/1 Desg FWD 4 128.1 P2p
Gi0/2 Desg FWD 4 128.2 P2p
SW1# show spanning-tree vlan 1
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address 000a.f3e5.1234
Cost 4
Port 1 (GigabitEthernet0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)
Address 001b.2c3d.4e5f
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Gi0/1 Root FWD 4 128.1 P2pR1#show interfaces GigabitEthernet0/1
GigabitEthernet0/1 is up, line protocol is up
Hardware is CN Gigabit Ethernet, address is 00aa.bbcc.1122 (bia 00aa.bbcc.1122)
Description: Uplink to Distribution Switch
MTU 1500 bytes, BW 100000 Kbit/sec, DLY 100 usec,
reliability 255/255, txload 250/255, rxload 10/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s, media type is RJ45
output flow-control is unsupported, input flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 1254321
Queueing strategy: fifo
Output queue: 40/40 (size/max)
5 minute input rate 4000000 bits/sec, 700 packets/sec
5 minute output rate 98000000 bits/sec, 8500 packets/sec
9876543 packets input, 812345678 bytes, 0 no buffer
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
48123456 packets output, 58901234567 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures, 0 output buffers swapped outSW1# show running-config interface gigabitethernet0/1 interface GigabitEthernet0/1 switchport trunk encapsulation dot1q switchport mode trunk switchport trunk allowed vlan 10,20 spanning-tree portfast end SW1# show interfaces gigabitethernet0/1 switchport | include Mode Administrative Mode: trunk Operational Mode: trunk SW1# show spanning-tree interface gigabitethernet0/1 detail Port 2 (GigabitEthernet0/1) of VLAN0010 is listening Port path cost 4, Port priority 128, Port Identifier 128.2. Designated root has priority 32778, address aabb.cc00.0100 Designated bridge has priority 32778, address aabb.cc00.0200 Designated port id is 128.2, designated path cost 4 Timers: message age 0, forward delay 12, hold 0 Number of transitions to forwarding state: 0 Link type is point-to-point by default BPDU: sent 2, received 0