Sunteți pe pagina 1din 4

LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to

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
S2>ena
S2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
S2(config)#int f0/11
S2(config-if)#no shut
S2(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
int f0/18
S2(config-if)#no shut
S2(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/18, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/18, changed state
to up
int f0/6
S2(config-if)#no shut
S2(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/6, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/6, changed state t
o up
S2(config-if)#exit
S2(config)#vlan 10
S2(config-vlan)#vlan 20
S2(config-vlan)#vlan 30
S2(config-vlan)#vlan 40
S2(config-vlan)#vlan 50
S2(config-vlan)#vlan 60
S2(config-vlan)#vlan 70
S2(config-vlan)#vlan 80
S2(config-vlan)#vlan 99
S2(config-vlan)#exit
S2(config)#int f0/6
S2(config-if)#sw
S2(config-if)#switchport
S2(config-if)#switchport
S2(config-if)#switchport
S2(config-if)#sw
S2(config-if)#switchport

m
mode ac
mode access
ac

S2(config-if)#switchport access v
S2(config-if)#switchport access vlan 30
S2(config-if)#int f0/11
S2(config-if)#switchport mode access
S2(config-if)#switchport access vlan 10
S2(config-if)#int f0/18
S2(config-if)#switchport mode access
S2(config-if)#switchport access vlan 20
S2(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.
%SPANTREE-2-RECV_PVID_ERR: Received BPDU with inconsistent peer vlan id 99 on Fa
stEthernet0/2 VLAN1.
%SPANTREE-2-BLOCK_PVID_LOCAL: Blocking FastEthernet0/2 on VLAN0001. Inconsistent
local vlan.
%SPANTREE-2-RECV_PVID_ERR: Received BPDU with inconsistent peer vlan id 99 on Fa
stEthernet0/1 VLAN1.
%SPANTREE-2-BLOCK_PVID_LOCAL: Blocking FastEthernet0/1 on VLAN0001. Inconsistent
local vlan.
S2(config-if)#exit
S2(config)#int r
S2(config)#int range f0/1-4
S2(config-if-range)#sw
S2(config-if-range)#switchport m
S2(config-if-range)#switchport mode t
S2(config-if-range)#switchport mode trunk

S2(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
s
S2(config-if-range)#st
S2(config-if-range)#sw
S2(config-if-range)#switchport t
S2(config-if-range)#switchport trunk n
S2(config-if-range)#switchport trunk native v
S2(config-if-range)#switchport trunk native vlan 99
S2(config-if-range)#%SPANTREE-2-UNBLOCK_CONSIST_PORT: Unblocking FastEthernet0/2
on VLAN0099. Port consistency restored.
%SPANTREE-2-UNBLOCK_CONSIST_PORT: Unblocking FastEthernet0/2 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.
%SPANTREE-2-UNBLOCK_CONSIST_PORT: Unblocking FastEthernet0/1 on VLAN0099. Port c
onsistency restored.
%SPANTREE-2-UNBLOCK_CONSIST_PORT: Unblocking FastEthernet0/1 on VLAN0001. Port c
onsistency restored.
%SPANTREE-2-UNBLOCK_CONSIST_PORT: Unblocking FastEthernet0/3 on VLAN0099. Port c
onsistency restored.
%SPANTREE-2-UNBLOCK_CONSIST_PORT: Unblocking FastEthernet0/3 on VLAN0001. Port c
onsistency restored.
S2(config-if-range)#exit
S2(config)#int v
S2(config)#int vlan 99
S2(config-if)#
%LINK-5-CHANGED: Interface Vlan99, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan99, changed state to up
S2(config-if)#ip
S2(config-if)#ip add
S2(config-if)#ip address
S2(config-if)#exit
S2(config)#sp
S2(config)#spanning-tree
S2(config)#spanning-tree
S2(config)#spanning-tree
S2(config)#sp
S2(config)#spanning-tree
S2(config)#spanning-tree
S2(config)#spanning-tree

172.17.99.12 255.255.255.0
m
mode r
mode rapid-pvst
v
vlan 1 r
vlan 1 root s

S2(config)#spanning-tree vlan 1 root secondary


S2(config)#spanning-tree vlan 10 root secondary
S2(config)#spanning-tree vlan 20 root secondary
S2(config)#spanning-tree vlan 30 root secondary
S2(config)#spanning-tree vlan 40 root secondary
S2(config)#spanning-tree vlan 50 root secondary
S2(config)#spanning-tree vlan 60 root secondary
S2(config)#spanning-tree vlan 70 root secondary
S2(config)#spanning-tree vlan 80 root secondary
S2(config)#spanning-tree vlan 99 root secondary
S2(config)#int f0/11
S2(config-if)#sp
S2(config-if)#spa
S2(config-if)#spanning-tree po
S2(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.
S2(config-if)#sp
S2(config-if)#spa
S2(config-if)#spanning-tree b
S2(config-if)#spanning-tree bpduguard e
S2(config-if)#spanning-tree bpduguard enable
S2(config-if)#exit
S2(config)#int f0/6
S2(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/6 but will only
have effect when the interface is in a non-trunking mode.
S2(config-if)#spanning-tree bpduguard enable
S2(config-if)#exit
S2(config)#int f0/18
S2(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/18 but will only
have effect when the interface is in a non-trunking mode.
S2(config-if)#spanning-tree bpduguard enable
S2(config-if)#

S-ar putea să vă placă și