CCNA Switching and Network Access • Complete Question Bank
Complete CCNA Switching and Network Access question bank — all 0 questions with answers and detailed explanations.
A switch shows this output from the "show interfaces trunk" command:
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
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
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.22.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 PortFast enabled port. Disabling interface.
Match each wireless or edge-switch concept on the left to the description on the right that best fits it. Not all descriptions will be used.
Concepts: • SSID • CAPWAP • Voice VLAN • PortFast
Descriptions: A. Name of the wireless LAN shown to clients B. Communication relationship between lightweight APs and controller C. Separates phone traffic from ordinary data on an edge port D. Allows an endpoint-facing switchport to move quickly toward forwarding E. Delivers power to devices over Ethernet (PoE) F. Authenticates users before granting network access (802.1X) G. Aggregates multiple physical links for increased bandwidth (LACP/EtherChannel)
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 Gi1/0/10 connected 20 a-full a-100 10/100/1000BaseTX show vlan brief 10 Users active 30 Voice active 20 inactive
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
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
Switch A: channel-group 5 mode active Switch B: channel-group 5 mode passive
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-4094 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 SW1# show running-config interface gi0/1 Building configuration... Current configuration : 150 bytes ! interface GigabitEthernet0/1 switchport trunk encapsulation dot1q switchport mode trunk switchport trunk native vlan 1 end SW1# show vlan brief VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default active Gi0/1, Gi0/2, Gi0/3 10 VLAN0010 active Gi0/4 20 VLAN0020 active Gi0/5 1002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup
interface GigabitEthernet1/0/24 description VoIP and Desktop switchport mode access switchport access vlan 10 switchport voice vlan 20 spanning-tree portfast !
SwitchA# 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 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 Desg FWD 4 128.1 P2p
Gi0/2 Desg FWD 4 128.2 P2p
Gi0/3 Altn BLK 4 128.3 P2pSwitchC# 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 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 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 !
R1# show monitor capture CAP1 buffer brief # size timestamp source destination protocol 1 64 00:01:23.456 192.168.10.10 192.168.10.1 ICMP 2 64 00:01:23.789 192.168.10.10 192.168.10.1 ICMP 3 60 00:01:24.123 192.168.10.1 192.168.10.10 ARP 4 60 00:01:24.456 192.168.10.10 192.168.10.1 ICMP 5 60 00:01:24.789 192.168.10.1 192.168.10.10 ARP 6 60 00:01:25.123 192.168.10.10 192.168.10.1 ICMP R1# show ip interface vlan 10 Vlan10 is up, line protocol is up Internet address is 192.168.10.1/24 Broadcast address is 255.255.255.255 Address determined by non-volatile memory MTU is 1500 bytes Helper address is not set Directed broadcast forwarding is disabled Outgoing access list is not set Inbound access list is not set Proxy ARP is enabled Local Proxy ARP is disabled Security level is default Split horizon is enabled ICMP redirects are always sent ICMP unreachables are always sent ICMP mask replies are never sent IP fast switching is enabled IP CEF switching is enabled IP Null turbo vector IP multicast fast switching is enabled IP multicast distributed fast switching is disabled IP route-cache flags are Fast, CEF Router Discovery is disabled IP output packet accounting is disabled IP access violation accounting is disabled TCP/IP header compression is disabled RTP/IP header compression is disabled Policy routing is disabled Network address translation is disabled BGP Policy Mapping is disabled Input features: MCI Check Output features: None WCCP Redirect outbound is disabled WCCP Redirect inbound is disabled WCCP Redirect exclude is disabled
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
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
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
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
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
Port Vlans in spanning tree forwarding state and not pruned
Gig0/0 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 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.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
!
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.4SW2#show running-config | section interface FastEthernet0/[5,10] interface FastEthernet0/5 switchport mode access switchport access vlan 50 ! interface FastEthernet0/10 switchport mode access switchport access vlan 100 !
SW1#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 !
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
spanning-tree portfast
!
interface GigabitEthernet0/3
switchport mode trunk
!
...
SW1#show interfaces switchport
Name: Gi0/1
Switchport: Enabled
Administrative Mode: static access
Operational Mode: static access
Administrative Trunking Encapsulation: negotiate
Operational Trunking Encapsulation: native
Negotiation of Trunking: On
Access Mode VLAN: 10 (VLAN0010)
Trunking Native Mode VLAN: 1 (default)
Administrative Native VLAN tagging: enabled
Voice VLAN: none
...
SW1#show power inline
Module Available Used Remaining
(Watts) (Watts) (Watts)
--------- --------- --------- ---------
1 370 0 370
Interface Admin Oper Power Device Class Max
(Watts)
--------- ------ ---------- ------- ------------------- ----- ---
Gi0/1 auto off 0.0 n/a n/a 30.0
Gi0/2 auto 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 : 93 bytes ! interface FastEthernet0/1 no switchport ip address 192.168.10.1 255.255.255.0 duplex auto speed auto !
SW1#show spanning-tree vlan 10
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 32778
Address 0001.0001.0001
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 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/1 Desg FWD 4 128.1 P2p
Gi0/2 Desg FWD 4 128.2 P2p
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
Gi0/1 err-disabled bpduguard
SW1#show spanning-tree vlan 20
VLAN0020
Spanning tree enabled protocol rstp
Root ID Priority 32788
Address 0002.0002.0002
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32788 (priority 32768 sys-id-ext 20)
Address 0002.0002.0002
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 P2pMLSW1# show spanning-tree vlan 10
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 32768
Address 0c75.15b6.0001
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32768 (priority 32768 sys-id-ext 10)
Address 0c75.15b6.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/1 Desg FWD 4 128.1 P2p
Gi0/2 Desg FWD 4 128.2 P2p
MLSW1# show interfaces gigabitEthernet 0/1 status
Port Name Status Vlan Duplex Speed Type
Gi0/1 err-disabled 10 full 1000 10/100/1000BaseTX
MLSW1# show running-config | section interface GigabitEthernet0/1
interface GigabitEthernet0/1
switchport mode access
switchport access vlan 10
spanning-tree portfast
spanning-tree bpduguard enableSW1# show spanning-tree
VLAN0001
Spanning tree enabled protocol rstp
Root ID Priority 32769
Address 0001.1111.1111
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 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 Desg 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 Edge
SW1# show running-config interface GigabitEthernet0/3
Building configuration...
Current configuration : 60 bytes
!
interface GigabitEthernet0/3
switchport mode access
end
SW1# show interfaces status err-disabled
Port Name Status Reason
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 32769
Address aabb.cc00.0100
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 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
MLS1# show interfaces gigabitEthernet 0/1 status
Port Name Status Vlan Duplex Speed Type
Gi0/1 connected 10 a-full a-100 10/100/1000BaseTXR1# 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 spanning-tree vlan 10
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 32778
Address aabb.cc00.0100
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 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/0 Desg FWD 4 128.1 P2p
Gi0/1 Desg BLK 4 128.2 P2p Edge
Gi0/2 Desg FWD 4 128.3 P2p
SW1#show interfaces gigabitEthernet 0/1 status
Port Name Status Vlan Duplex Speed Type
Gi0/1 err-disabled 10 auto auto 10/100/1000BaseTX
SW1#show running-config | section interface GigabitEthernet0/1
interface GigabitEthernet0/1
switchport mode access
switchport access vlan 10
spanning-tree portfast
spanning-tree bpduguard enableSW3# show interfaces status
Port Name Status Vlan Duplex Speed Type
Gi0/1 connected 1 a-full a-1000 10/100/1000BaseTX
Gi0/2 connected 1 a-full a-1000 10/100/1000BaseTX
Gi0/3 err-disabled 1 auto auto 10/100/1000BaseTX
SW3# show spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 24577
Address 0001.1111.1111
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 0001.1111.1111
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/3 Desg BKN*4 128.3 P2p *PVID_Inc
SW2# show spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 24577
Address 0001.1111.1111
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 0002.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/1 Root FWD 4 128.1 P2p
Gi0/2 Altn BLK 4 128.2 P2pSW1# show running-config | section interface
interface GigabitEthernet0/0
description Link to SW2
switchport mode trunk
spanning-tree vlan 10 priority 4096
!
interface GigabitEthernet0/1
description Server Port
switchport mode access
switchport access vlan 10
spanning-tree portfast
!
SW1# show spanning-tree vlan 10
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 4096
Address aabb.cc00.0100
This bridge is the root
Bridge ID Priority 4096 (priority 4096 sys-id-ext 10)
Address aabb.cc00.0100
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 Edge
SW1# show interfaces status | include Gi0/1
Gi0/1 err-disabled auto auto 10/100/1000MLS1# show spanning-tree
VLAN0001
Spanning tree enabled protocol rstp
Root ID Priority 32769
Address 0001.1111.1111
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 0002.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 Desg FWD 4 128.1 P2p
Gi0/1 Desg FWD 4 128.2 P2p
Gi0/2 Desg FWD 4 128.3 P2p Edge
MLS1# show interfaces gigabitEthernet 0/2 status
Port Name Status Vlan Duplex Speed Type
Gi0/2 err-disabled 1 auto auto 10/100/1000BaseTX
MLS1# show running-config | include spanning-tree
spanning-tree mode rapid-pvst
spanning-tree vlan 1 root primary
MLS1# show running-config interface gigabitEthernet 0/2
interface GigabitEthernet0/2
spanning-tree portfast
spanning-tree bpduguard enable
shutdownSW1#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 P2pR1# show interfaces status
Port Name Status Vlan Duplex Speed Type
Gi0/0 connected routed full 1000 SFP
Gi0/1 err-disabled 10 auto auto 10/100/1000BaseTX
Gi0/2 notconnect 10 auto auto 10/100/1000BaseTX
Gi0/3 connected routed full 1000 SFP
R1# show running-config | section interface GigabitEthernet0/1
interface GigabitEthernet0/1
switchport mode access
switchport access vlan 10
spanning-tree bpduguard enable
spanning-tree portfast
R1# show running-config | include errdisable
R1# show spanning-tree vlan 10
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 24586
Address aaaa.bbbb.cccc
This bridge is the root
Bridge ID Priority 24586 (priority 24576 sys-id-ext 10)
Address aaaa.bbbb.cccc
Interface Role Sts Cost Prio.Nbr Type
Gi0/1 Desg BKN*4 128.2 P2p *BPDU_Guard
Gi0/2 Desg BLK 4 128.3 P2p
*BPDU_Guard: err-disabledSW1# 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 GigabitEthernet1/0/1 description Link to R2 switchport mode access spanning-tree guard root ! interface GigabitEthernet1/0/2 description Uplink to Core switchport mode trunk spanning-tree guard loop ! interface GigabitEthernet1/0/3 description Access Port switchport mode access spanning-tree portfast spanning-tree bpduguard enable ! R1#show spanning-tree interface Gi1/0/1 detail Port 1 (GigabitEthernet1/0/1) of VLAN0001 is root blocking Port path cost 4, Port priority 128, Port Identifier 128.1. Designated root has priority 0, address aaaa.bbbb.cccc Designated bridge has priority 4096, address aaaa.bbbb.cccc Designated port id is 128.1, designated path cost 0 Timers: message age 2, forward delay 15, hold 0 Number of transitions to forwarding state: 0 BPDU: sent 0, received 10 Root guard is enabled, but port is root inconsistent R1#show spanning-tree interface Gi1/0/2 detail Port 2 (GigabitEthernet1/0/2) of VLAN0001 is alternate blocking Port path cost 4, Port priority 128, Port Identifier 128.2. Designated root has priority 0, address aaaa.bbbb.cccc Designated bridge has priority 0, address aaaa.bbbb.cccc Designated port id is 128.2, designated path cost 0 Timers: message age 2, forward delay 15, hold 0 Number of transitions to forwarding state: 0 BPDU: sent 0, received 10 Loop guard is enabled, but port is loop-inconsistent R1#show interfaces Gi1/0/3 status Port Name Status Vlan Duplex Speed Type Gi1/0/3 err-disabled 1 auto auto 10/100/1000BaseTX
R1# 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 Management ip address 192.168.1.1 255.255.255.0 ! interface GigabitEthernet0/1 description Link to Access Switch switchport mode access switchport access vlan 10 spanning-tree portfast ! interface GigabitEthernet0/2 description Uplink to Core 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/0
no switchport
ip address 192.0.2.1 255.255.255.252
!
interface GigabitEthernet0/1
switchport mode trunk
spanning-tree guard root
!
interface GigabitEthernet0/2
switchport mode trunk
spanning-tree loopguard default
!
interface GigabitEthernet0/3
switchport mode access
switchport access vlan 10
spanning-tree portfast
spanning-tree bpduguard enable
!
R1# show spanning-tree root
VLAN0001
Root ID Priority 32769
Address 0001.1111.1111
This bridge is the root
R1# show interfaces status | include err-disabled
GigabitEthernet0/3 err-disabledR1#show running-config | section interface interface GigabitEthernet0/0 description Uplink to R2 switchport mode trunk spanning-tree guard loop ! interface GigabitEthernet0/1 description Downstream to SW2 switchport mode access switchport access vlan 10 spanning-tree guard root ! interface GigabitEthernet0/2 description Access port for PC switchport mode access switchport access vlan 10 spanning-tree portfast spanning-tree bpduguard enable !
MLS1# show running-config | include interface|spanning-tree|portfast|rootguard|loopguard|bpduguard interface GigabitEthernet0/1 spanning-tree guard root interface GigabitEthernet0/2 spanning-tree guard loop interface GigabitEthernet0/3 spanning-tree portfast spanning-tree bpduguard enable ! Current state: MLS1# show spanning-tree interface gigabitEthernet 0/1 detail Port 1 (GigabitEthernet0/1) of VLAN0001 is root inconsistent (Root Guard) Designated bridge has priority 4096, address 0050.7966.6800 Configured guard type: root Root guard active MLS1# show spanning-tree interface gigabitEthernet 0/3 detail Port 3 (GigabitEthernet0/3) of VLAN0001 is down (err-disabled) BPDU guard enabled BPDU received, moving to errdisable state
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
!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 Potential Root Port
switchport access vlan 10
switchport mode access
spanning-tree guard root
!
interface GigabitEthernet1/0/4
description Server
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet1/0/5
description Desktop
switchport access vlan 10
switchport mode access
spanning-tree portfast
spanning-tree bpduguard enable
!
interface Vlan10
ip address 192.168.10.1 255.255.255.0
!
R1#show spanning-tree vlan 10
VLAN0010
Spanning tree enabled protocol ieee
Root ID Priority 4097
Address 0011.2233.4455
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 4097 (priority 4096 sys-id-ext 1)
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
---------------- ---- --- --------- -------- --------------------------------
Gi1/0/1 Desg FWD 4 128.1 Shr
Gi1/0/2 Desg FWD 4 128.2 Shr
Gi1/0/3 Desg BKN*4 128.3 Shr *ROOT_Guard
Gi1/0/4 Desg FWD 4 128.4 Shr Edge
Gi1/0/5 Desg FWD 4 128.5 Shr Edge
R1#show interfaces status | include err-disabled
Gi1/0/5 err-disabled auto auto 10/100/1000MLS1# 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
Gi0/1 Desg FWD 4 128.2 P2p
Gi0/2 Desg FWD 4 128.3 P2p
Gi0/2 is connected to SW2. Gi0/1 is uplink to core. Gi0/0 is access port with PortFast enabled.
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
!You are connected to SW1. The current configurations of interfaces GigabitEthernet0/1 and GigabitEthernet0/2 are as follows:
Gi0/1: speed 100, duplex half, switchport access vlan 10 Gi0/2: speed 1000, duplex full, switchport access vlan 20
The port-channel interface 1 does not exist. Configure a LACP EtherChannel between SW1 and SW2 using these two interfaces, with port-channel 1 and mode active on both sides. Ensure the channel forms by resolving any speed/duplex or VLAN mismatches. After configuration, verify with 'show etherchannel summary'.
SW1# 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 !
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
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 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
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 25 (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 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/0 trunk Port Mode Encapsulation Status Native vlan Gi0/0 on isl not-trunking 1 Port Vlans allowed on trunk Gi0/0 1-4094 Port Vlans allowed and active in management domain Gi0/0 1,10,20,30,99 Port Vlans in spanning tree forwarding state and not pruned Gi0/0 none
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
SW1# show etherchannel detail
Channel-group listing:
Group: 1
----------
Group state = L2
Ports: 2 Maxports = 8
Port-channels: 1 Max Port-channels = 1
Protocol: LACP
Ports in the group:
Port: Gi0/1
Port state = Up Cntrl-fwd/bndl In-bndl Mstr
Channel group: 1 Mode: Active
Port-channel = Po1
Age of the port in the current state: 0d:00h:12m:10s
Port: Gi0/2
Port state = Down Cntrl-fwd/susp Not-in-bndl
Channel group: 1 Mode: Active
Native vlan mismatch: local 20, partner 1SW2# show spanning-tree vlan 1
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address 000a.f3e5.1234
This bridge is the root
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
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Gi0/1 Desg FWD 4 128.1 P2p
Gi0/2 Desg FWD 4 128.2 P2pR1#show interfaces GigabitEthernet0/1 GigabitEthernet0/1 is up, line protocol is up (connected) Hardware is Gigabit Ethernet, address is 00aa.bbcc.1122 Description: Uplink to Distribution Switch MTU 1500 bytes, BW 100000 Kbit, DLY 10 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set Full-duplex, 100Mb/s, media type is 10/100/1000BaseTX Last input never, output 00:00:01, output hang never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 12450 Queueing strategy: fifo Output queue: 40/40 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 10000000 bits/sec, 2500 packets/sec 12345 packets input, 1234567 bytes, 0 no buffer 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 9876 packets output, 1234567890 bytes, 0 underruns 0 output errors, 0 collisions, 0 interface resets Total output drops: 12450
SW1# show spanning-tree vlan 10 detail
VLAN0010 is executing the ieee compatible Spanning Tree protocol
Bridge Identifier has priority 32768, address aabb.cc00.0200
Configured hello time 2, max age 20, forward delay 15
Current root has priority 32768, address aabb.cc00.0100
Root port is GigabitEthernet0/2, cost of root path is 4
Topology change flag not set, detected flag not set
Number of topology changes 2 last change occurred 00:05:30 ago
Times: hold 1, topology change 35, notification 2
hello 2, max age 20, forward delay 15
Timers: hello 0, topology change 0, notification 0
Port 13 (GigabitEthernet0/1) of VLAN0010 is listening
Port path cost 4, Port priority 128, Port Identifier 128.13
Designated root has priority 32768, address aabb.cc00.0100
Designated bridge has priority 32768, address aabb.cc00.0200
Designated port id is 128.13, designated path cost 0
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
Edge port: no (default) portfast: no (default)