Spanning Tree

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 4

Press RETURN to get started!

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up


%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state t
o up
%LINK-5-CHANGED: Interface FastEthernet0/2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state t
o up
%LINK-5-CHANGED: Interface FastEthernet0/3, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state t
o up
%LINK-5-CHANGED: Interface FastEthernet0/4, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state t
o up
S3>
S3>en
S3>enable
S3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
S3(config)#in
S3(config)#interface f
S3(config)#interface fastEthernet 0/11
S3(config-if)#no sh
S3(config-if)#no shutdown
S3(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/11, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/11, changed state
to up
S3(config-if)#
S3(config-if)#
S3(config-if)#cl
S3(config-if)#crx
S3(config-if)#ex
S3(config-if)#exit
S3(config)#v
S3(config)#vl
S3(config)#vlan 10
S3(config-vlan)#exi
S3(config)#vlan 20
S3(config-vlan)#exi
S3(config)#vlan 30
S3(config-vlan)#exi
S3(config)#vlan 40
S3(config-vlan)#exi
S3(config)#vlan 50
S3(config-vlan)#exi
S3(config)#vlan 60

S3(config-vlan)#exi
S3(config)#vlan 70
S3(config-vlan)#exi
S3(config)#vlan 80
S3(config-vlan)#exi
S3(config)#vlan 99
S3(config-vlan)#exi
S3(config)#
S3(config)#int
S3(config)#interface f
S3(config)#interface fastEthernet 0/11
S3(config-if)#sw
S3(config-if)#switchport m
S3(config-if)#switchport mode a
S3(config-if)#switchport mode access
S3(config-if)#sw
S3(config-if)#switchport a
S3(config-if)#switchport access v
S3(config-if)#switchport access vlan 10
S3(config-if)#ex
S3(config)#interface fastEthernet 0/18
S3(config-if)#sw
S3(config-if)#switchport m
S3(config-if)#switchport mode a
S3(config-if)#switchport mode access
S3(config-if)#sw
S3(config-if)#switchport a
S3(config-if)#switchport access v
S3(config-if)#switchport access vlan 20
S3(config-if)#exi
S3(config)#in
S3(config)#interface f
S3(config)#interface fastEthernet 0/6
S3(config-if)#sw
S3(config-if)#switchport m
S3(config-if)#switchport mode a
S3(config-if)#switchport mode access
S3(config-if)#sw
S3(config-if)#switchport a
S3(config-if)#switchport access v
S3(config-if)#switchport access vlan 30
S3(config-if)#%SPANTREE-2-RECV_PVID_ERR: Received BPDU with inconsistent peer vl
an id 99 on FastEthernet0/3 VLAN1.
%SPANTREE-2-BLOCK_PVID_LOCAL: Blocking FastEthernet0/3 on VLAN0001. Inconsistent
local vlan.
%SPANTREE-2-RECV_PVID_ERR: Received BPDU with inconsistent peer vlan id 99 on Fa
stEthernet0/4 VLAN1.
%SPANTREE-2-BLOCK_PVID_LOCAL: Blocking FastEthernet0/4 on VLAN0001. Inconsistent
local vlan.
S3(config-if)#
S3(config-if)#exi
S3(config)#int
S3(config)#interface r
S3(config)#interface range f
S3(config)#interface range fastEthernet 0/1-4

S3(config-if-range)#sw
S3(config-if-range)#switchport m
S3(config-if-range)#switchport mode t
S3(config-if-range)#switchport mode trunk

S3(config-if-range)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state t
o down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state t
o up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state t
o down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state t
o up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state t
o down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state t
o up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state t
o down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state t
o up
sw
S3(config-if-range)#switchport t
S3(config-if-range)#switchport trunk n
S3(config-if-range)#switchport trunk native v
S3(config-if-range)#switchport trunk native vlan 99
S3(config-if-range)#%SPANTREE-2-UNBLOCK_CONSIST_PORT: Unblocking FastEthernet0/3
on VLAN0099. Port consistency restored.
%SPANTREE-2-UNBLOCK_CONSIST_PORT: Unblocking FastEthernet0/3 on VLAN0001. Port c
onsistency restored.
%SPANTREE-2-UNBLOCK_CONSIST_PORT: Unblocking FastEthernet0/4 on VLAN0099. Port c
onsistency restored.
%SPANTREE-2-UNBLOCK_CONSIST_PORT: Unblocking FastEthernet0/4 on VLAN0001. Port c
onsistency restored.
exit
S3(config)#
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/1
(99), with S1 FastEthernet0/1 (1).
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/2
(99), with S1 FastEthernet0/2 (1).
S3(config)#in
S3(config)#interface v
S3(config)#interface vlan 99

S3(config-if)#
%LINK-5-CHANGED: Interface Vlan99, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan99, changed state to up
S3(config-if)#ip ad
S3(config-if)#ip address 172.31.99.3 255.255.255.0
S3(config-if)#no sh
S3(config-if)#no shutdown
S3(config-if)#exit
S3(config)#spa
S3(config)#spanning-tree m
S3(config)#spanning-tree mode ?
pvst
Per-Vlan spanning tree mode
rapid-pvst Per-Vlan rapid spanning tree mode
S3(config)#spanning-tree mode pv
S3(config)#spanning-tree mode pvst
S3(config)#
S3(config)#spanning-tree vlan 20 root primary
S3(config)#spanning-tree vlan 40 root primary
S3(config)#spanning-tree vlan 60 root primary
S3(config)#spanning-tree vlan 80 root primary
S3(config)#spanning-tree vlan 99 root primary
S3(config)#
S3(config)#in
S3(config)#interface f
S3(config)#interface fastEthernet 0/11
S3(config-if)#sp
S3(config-if)#spa
S3(config-if)#spanning-tree p
S3(config-if)#spanning-tree portfast
%Warning: portfast should only be enabled on ports connected to a single
host. Connecting hubs, concentrators, switches, bridges, etc... to this
interface when portfast is enabled, can cause temporary bridging loops.
Use with CAUTION
%Portfast has been configured on FastEthernet0/11 but will only
have effect when the interface is in a non-trunking mode.
S3(config-if)#spa
S3(config-if)#spanning-tree b
S3(config-if)#spanning-tree bpduguard e
S3(config-if)#spanning-tree bpduguard enable
S3(config-if)#

You might also like