SwitchA# conf t
SwitchA(config)# spanning-tree mode rapid-pvst
SwitchA(config)# int fa 0/12
SwitchA(config-if)# duplex full
SwitchA(config-if)# speed 100
SwitchA(config-if)# switchport mode trunk
SwitchA(config-if)# end
SwitchA# show int fa 0/12 switchport
Name: Fa0/12
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: down
Administrative Trunking Encapsulation: dot1q
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Voice VLAN: none
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL
Protected: false
Unknown unicast blocked: disabled
Unknown multicast blocked: disabled
Voice VLAN: none (Inactive)
Appliance trust: none
SwitchA# conf t
SwitchA(config)# int fa 0/12
SwitchA(config-if)# no shutdown
SwitchA(config-if)# end
SwitchA# show spanning-tree vlan 2
VLAN0002
Spanning tree enabled protocol ieee
Root ID Priority 24578
Address 000b.be96.7700
Cost 19
Port 11 (FastEthernet0/11)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32770 (priority 32768 sys-id-ext 2)
Address 000e.d78d.ac80
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/11 Root FWD 19 128.11 P2p
Fa0/12 Desg FWD 19 128.12 P2p
[從 Step 9 開始]
RouterA# telnet 10.1.1.2
Password:
CoreSwitchA>show spanning-tree vlan 2
VLAN0002
Spanning tree enabled protocol rstp
Root ID Priority 24578
Address 000b.be96.7700
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 24578 (priority 24576 sys-id-ext 2)
Address 000b.be96.7700
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/1 Desg FWD 19 128.1 P2p Peer(STP)
Fa0/2 Desg FWD 19 128.2 P2p Peer(STP)
Fa0/3 Desg FWD 19 128.3 P2p Peer(STP)
Fa0/4 Desg FWD 19 128.4 P2p Peer(STP)
Fa0/5 Desg FWD 19 128.5 P2p Peer(STP)
Fa0/6 Desg FWD 19 128.6 P2p
Fa0/7 Desg FWD 19 128.7 P2p Peer(STP)
Fa0/9 Desg FWD 19 128.9 Shr Peer(STP)
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/10 Desg FWD 19 128.10 Shr Peer(STP)
Fa0/23 Desg FWD 19 128.23 P2p
CoreSwitchB>show spanning-tree vlan 2
Spanning tree enabled protocol rstp
Root ID Priority 24578
Address 000b.be96.7700
Cost 19
Port 13 (FastEthernet0/13)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32770 (priority 32768 sys-id-ext 2)
Address 0014.69d1.fa80
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/5 Desg FWD 19 128.5 P2p
Fa0/6 Desg FWD 19 128.6 P2p
Fa0/9 Altn BLK 19 128.9 P2p
Fa0/13 Root FWD 19 128.13 P2p
Fa0/14 Altn BLK 19 128.14 P2p
CoreSwitchB>
[從 Step 11 開始]
RouterA# ping
Protocol [ip]:
Target IP address: 10.1.1.3
Repeat count [5]: 200
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 200, 100-byte ICMP Echos to 10.1.1.3, timeout is 2 seconds:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Success rate is 100 percent (200/200), round-trip min/avg/max = 1/1/4 ms
RouterA#