Documente Academic
Documente Profesional
Documente Cultură
Switch>ena
Switch#sho span
Switch#sho spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID
Priority
32769
Address
0006.2A63.1C32
Cost
38
Port
1(FastEthernet0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority
Address
Hello Time
Aging Time
Interface
---------------Fa0/1
Fa0/2
Role
---Root
Altn
Sts
--FWD
BLK
Prio.Nbr
-------128.1
128.2
Type
-------------------------------P2p
P2p
Switch#sho spa
Switch#sho spanning-tree det
Switch#sho spanning-tree detail
VLAN0001 is executing the ieee compatible Spanning Tree Protocol
Bridge Identifier has priority of 32768, sysid 1, 0050.0F64.5827
Configured hello time 2, max age 20, forward delay 15
Current root has priority 32769
Root port is 1 (FastEthernet0/1), cost of root path is 38
Topology change flag not set, detected flag not set
Number of topology changes 0 last change occurred 00:00:00 ago
from FastEthernet0/1
Times: hold 1, topology change 35, notification 2
hello 2, max age 20, forward delay 15
Timers: hello 0, topology change 0, notification 0, aging 300
Port 1 (FastEthernet0/1) of VLAN0001 is root forwarding
Port path cost 19, Port priority 128, Port Identifier 128.1
Designated root has priority 128, address 00E0.F779.9E01
Designated bridge has priority 32769, address 0006.2A63.1C32
Timers: message age 16, forward delay 0, hold 0
Number of transitions to forwarding state: 1
Link type is point-to-point by default
Port 2 (FastEthernet0/2) of VLAN0001 is alternate blocking
Port path cost 19, Port priority 128, Port Identifier 128.2
Designated root has priority 128, address 00E0.F779.9E01
Designated bridge has priority 32769, address 0006.2A63.1C32
Timers: message age 16, forward delay 0, hold 0
Number of transitions to forwarding state: 1
Link type is point-to-point by default
Switch#sho span
Switch#sho spanning-tree summ
Switch#sho spanning-tree summary
Switch is in pvst mode
enabled
disabled
disabled
disabled
disabled
disabled
disabled
disabled
is short
Name
Blocking Listening Learning Forwarding STP Active
---------------------- -------- --------- -------- ---------- ---------VLAN0001
1
0
0
1
2
---------------------- -------- --------- -------- ---------- ---------1 vlans
1
0
0
1
2
Switch#sho span
Switch#sho spanning-tree int
Switch#sho spanning-tree interface
% Incomplete command.
Switch#sho spanning-tree interface fa0/1
Vlan
Role Sts Cost
Prio.Nbr Type
---------------- ---- --- --------- -------- -------------------------------VLAN0001
Root FWD 19
128.1
P2p
Switch#
-----------------------------------------------------------------------------------------------------------------------------------To Configure Switch as a Root Bridge.
Switch#
Switch#span
Switch#config t
Enter configuration commands, one
Switch(config)#span
Switch(config)#spanning-tree vla
Switch(config)#spanning-tree vlan
Switch(config)#spanning-tree vlan
Switch(config)#spanning-tree vlan
Switch(config)#
Switch#sho span
Switch#sho spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID
Priority
4097
Address
0050.0F64.5827
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority
Address
Hello Time
Aging Time
Interface
---------------Fa0/1
Fa0/2
Role
---Desg
Desg
Sts
--FWD
FWD
Prio.Nbr
-------128.1
128.2
Type
-------------------------------P2p
P2p
Switch#
***In above Switch show as root bridge.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------This is in PortFast1 example
---------------------------------------------------------------------------------------------------Switch#
Switch>ena
Switch#sho span
Switch#sho spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID
Priority
32769
Address
0006.2A63.1C32
Cost
19
Port
1(FastEthernet0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority
Address
Hello Time
Aging Time
Interface
---------------Fa0/1
Fa0/2
Switch#
Switch>ena
Switch#sho pan
Role
---Root
Desg
Sts
--FWD
FWD
Prio.Nbr
-------128.1
128.2
Type
-------------------------------P2p
P2p
Switch#sho span
Switch#sho spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID
Priority
32769
Address
0006.2A63.1C32
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority
Address
Hello Time
Aging Time
Interface
---------------Fa0/1
Fa0/2
Role
---Desg
Desg
Sts
--FWD
FWD
Prio.Nbr
-------128.1
128.2
Type
-------------------------------P2p
P2p
Switch#
------------------------------------------------------------------------------------------------------------------Port Fast (To increase the the uptime speed of the port)
Configure in both switches
e.g:-1
Switch>ena
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
%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
Switch(config)#spa
Switch(config)#spanning-tree por
Switch(config)#spanning-tree portfast def
Switch(config)#spanning-tree portfast default
Switch(config)#
Switch>ena
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
%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
Switch>ena
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#span
Switch(config)#spanning-tree por
Switch(config)#spanning-tree portfast defa
Switch(config)#spanning-tree portfast default <== to increase the up time spee
d of the port
Switch(config)#span
Switch(config)#spanning-tree mod
Switch(config)#spanning-tree mode rap
Switch(config)#spanning-tree mode rapid-pvst <== to quickly up the bckup link of
STP (Root Bridge)
Switch(config)#
---------------------------------------------------------------------------------------------------------------------------------------Switch>ena
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#sho
Switch#show vlan
Switch#show vlan
VLAN Name
Status
Ports
---- -------------------------------- --------- ------------------------------1
default
active
Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
Gig1/1, Gig1/2
1002 fddi-default
act/unsup
1003 token-ring-default
act/unsup
1004 fddinet-default
act/unsup
1005 trnet-default
act/unsup
VLAN
---1
1002
1003
1004
1005
Type
----enet
fddi
tr
fdnet
trnet
SAID
---------100001
101002
101003
101004
101005
MTU
----1500
1500
1500
1500
1500
Parent
------
RingNo
------
BridgeNo
--------
Stp
---ieee
ibm
BrdgMode
--------
Trans1
-----0
0
0
0
0
Trans2
-----0
0
0
0
0
Secondary Type
Ports
--------- ----------------- -----------------------------------------vla
vlan 2
^
% Invalid input detected at '^' marker.
Switch#
Switch#
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan
Switch(config)#vlan 2
Switch(config-vlan)#exit
Switch(config)#vla
Switch(config)#vlan 3
Switch(config-vlan)#exit
Switch(config)#vla
Switch(config)#vlan 4
Switch(config-vlan)#exit
Switch(config)#
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#sho vla
Switch#sho vlan
VLAN Name
Status
Ports
---- -------------------------------- --------- ------------------------------1
default
active
Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
VLAN0002
VLAN0003
VLAN0004
fddi-default
token-ring-default
fddinet-default
trnet-default
VLAN
---1
2
3
4
1002
1003
1004
1005
Type
----enet
enet
enet
enet
fddi
tr
fdnet
trnet
SAID
---------100001
100002
100003
100004
101002
101003
101004
101005
MTU
----1500
1500
1500
1500
1500
1500
1500
1500
active
active
active
act/unsup
act/unsup
act/unsup
act/unsup
Parent
------
RingNo
------
BridgeNo
--------
Stp
---ieee
ibm
BrdgMode
--------
Trans1
-----0
0
0
0
0
0
0
0
Trans2
-----0
0
0
0
0
0
0
0
Switch#sho vlan
VLAN Name
Status
Ports
---- -------------------------------- --------- ------------------------------1
default
active
Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
Gig1/1, Gig1/2
2
VLAN0002
active
3
VLAN0003
active
4
VLAN0004
active
5
aa
active
7
cc
active
56 bb
active
1002 fddi-default
act/unsup
1003 token-ring-default
act/unsup
1004 fddinet-default
act/unsup
1005 trnet-default
act/unsup
VLAN
---1
2
3
4
5
7
56
1002
1003
1004
1005
Type
----enet
enet
enet
enet
enet
enet
enet
fddi
tr
fdnet
trnet
SAID
---------100001
100002
100003
100004
100005
100007
100056
101002
101003
101004
101005
MTU
----1500
1500
1500
1500
1500
1500
1500
1500
1500
1500
1500
Parent
------
RingNo
------
BridgeNo
--------
Stp
---ieee
ibm
BrdgMode
--------
Trans1
-----0
0
0
0
0
0
0
0
0
0
0
Trans2
-----0
0
0
0
0
0
0
0
0
0
0
Type
----enet
enet
enet
enet
enet
enet
enet
enet
enet
fddi
tr
fdnet
trnet
SAID
---------100001
100002
100003
100004
100005
100007
100008
100009
100056
101002
101003
101004
101005
MTU
----1500
1500
1500
1500
1500
1500
1500
1500
1500
1500
1500
1500
1500
Parent
------
RingNo
------
BridgeNo
--------
Stp
---ieee
ibm
BrdgMode
--------
Trans1
-----0
0
0
0
0
0
0
0
0
0
0
0
0
Trans2
-----0
0
0
0
0
0
0
0
0
0
0
0
0
4414921
1036
Cisco WS-C2960-24TT (RC32300) processor (revision C0) with 21039K bytes of memor
y.
24 FastEthernet/IEEE 802.3 interface(s)
2 Gigabit Ethernet/IEEE 802.3 interface(s)
63488K bytes of flash-simulated
Base ethernet MAC Address
Motherboard assembly number
Power supply part number
Motherboard serial number
Power supply serial number
Model revision number
Motherboard revision number
Model number
System serial number
Top Assembly Part Number
Top Assembly Revision Number
Version ID
CLEI Code Number
Hardware Board Revision Number
Switch
-----*
1
Ports Model
----- ----26
WS-C2960-24TT
SW Image
---------C2960-LANBASE-M
Switch>ena
Switch#sho vla
Switch#sho vlan
VLAN Name
Status
Ports
---- -------------------------------- --------- ------------------------------1
default
active
Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
fddi-default
token-ring-default
fddinet-default
trnet-default
VLAN
---1
1002
1003
1004
1005
Type
----enet
fddi
tr
fdnet
trnet
SAID
---------100001
101002
101003
101004
101005
MTU
----1500
1500
1500
1500
1500
act/unsup
act/unsup
act/unsup
act/unsup
Parent
------
RingNo
------
BridgeNo
--------
Stp
---ieee
ibm
BrdgMode
--------
Trans1
-----0
0
0
0
0
Trans2
-----0
0
0
0
0
Switch#
Switch#vlan
Switch#vlan data
Switch#vlan database
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult user
documentation for configuring VTP/VLAN in config mode.
Switch(vlan)#vla
Switch(vlan)#vlan
Switch(vlan)#vlan
Switch(vlan)#vlan
VLAN 2 added:
Name: LAN_A
Switch(vlan)#vlan
Switch(vlan)#vlan
Switch(vlan)#vlan
VLAN 3 added:
Name: LAN_B
Switch(vlan)#vlan
Switch(vlan)#vlan
Switch(vlan)#vlan
VLAN 4 added:
Name: LAN_C
Switch(vlan)#exit
APPLY completed.
Exiting....
Switch# <====
2na
2 na
2 name LAN_A
3 na
3 name LAN_B
4 nam
4 name LAN_C
Type
----enet
enet
enet
enet
fddi
tr
fdnet
trnet
SAID
---------100001
100002
100003
100004
101002
101003
101004
101005
MTU
----1500
1500
1500
1500
1500
1500
1500
1500
Parent
------
RingNo
------
BridgeNo
--------
Stp
---ieee
ibm
BrdgMode
--------
Trans1
-----0
0
0
0
0
0
0
0
Trans2
-----0
0
0
0
0
0
0
0
e.g:Switch>ena
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int
Switch(config)#int
Switch(config)#interface ra
Switch(config)#interface range fa0/1 -fa0/3
Switch(config-if-range)#swi
Switch(config-if-range)#switchport mod
Switch(config-if-range)#switchport mode acc
Switch(vlan)#vlan
Switch(vlan)#vlan
VLAN 3 modified:
Name: LAN_B
Switch(vlan)#vla
Switch(vlan)#vlan
Switch(vlan)#vlan
Switch(vlan)#vlan
Switch(vlan)#vlan
VLAN 4 modified:
Name: LAN_C
Switch(vlan)#exit
APPLY completed.
Exiting....
Switch#sho vla
Switch#sho vlan
3 na
3 name LAN_B
na
nam
4 na
4 name LAN_C
VLAN Name
Status
Ports
---- -------------------------------- --------- ------------------------------1
default
active
Fa0/10, Fa0/11, Fa0/12, Fa0/13
Fa0/14, Fa0/15, Fa0/16, Fa0/17
Fa0/18, Fa0/19, Fa0/20, Fa0/21
Fa0/22, Fa0/23, Fa0/24, Gig1/1
Gig1/2
2
LAN_A
active
Fa0/1, Fa0/2, Fa0/3
3
LAN_B
active
Fa0/4, Fa0/5, Fa0/6
4
LAN_C
active
Fa0/7, Fa0/8, Fa0/9
1002 fddi-default
act/unsup
1003 token-ring-default
act/unsup
1004 fddinet-default
act/unsup
1005 trnet-default
act/unsup
VLAN
---1
2
3
4
1002
1003
1004
1005
Type
----enet
enet
enet
enet
fddi
tr
fdnet
trnet
SAID
---------100001
100002
100003
100004
101002
101003
101004
101005
MTU
----1500
1500
1500
1500
1500
1500
1500
1500
Parent
------
RingNo
------
BridgeNo
--------
Stp
---ieee
ibm
BrdgMode
--------
Trans1
-----0
0
0
0
0
0
0
0
Trans2
-----0
0
0
0
0
0
0
0
Switch(config)#interface ran
Switch(config)#interface range fa0/2 - fa0/3
Switch(config-if-range)#swi
Switch(config-if-range)#switchport mod
Switch(config-if-range)#switchport mode acc
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#swi
Switch(config-if-range)#switchport acc
Switch(config-if-range)#switchport access vla
Switch(config-if-range)#switchport access vlan 2
% Access VLAN does not exist. Creating vlan 2
Switch(config-if-range)#
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#sho vla
Switch#sho vlan
VLAN Name
Status
Ports
---- -------------------------------- --------- ------------------------------1
default
active
Fa0/4, Fa0/5, Fa0/6, Fa0/7
Fa0/8, Fa0/9, Fa0/10, Fa0/11
Fa0/12, Fa0/13, Fa0/14, Fa0/15
Fa0/16, Fa0/17, Fa0/18, Fa0/19
Fa0/20, Fa0/21, Fa0/22, Fa0/23
Fa0/24, Gig1/1, Gig1/2
2
VLAN0002
active
Fa0/2, Fa0/3
1002 fddi-default
act/unsup
1003 token-ring-default
act/unsup
1004 fddinet-default
act/unsup
1005 trnet-default
act/unsup
VLAN
---1
2
1002
1003
1004
1005
Type
----enet
enet
fddi
tr
fdnet
trnet
SAID
---------100001
100002
101002
101003
101004
101005
MTU
----1500
1500
1500
1500
1500
1500
Parent
------
RingNo
------
BridgeNo
--------
Stp
---ieee
ibm
BrdgMode
--------
Trans1
-----0
0
0
0
0
0
Trans2
-----0
0
0
0
0
0
------------------------------------------------------------------------------------------------------------------Trunk
Switch#ena
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int
Switch(config)#interface fa0/10
Switch(config-if)#swi
Switch(config-if)#switchport mode
Switch(config-if)#switchport mode tr
Switch(config-if)#switchport mode trunk
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/10, changed state
to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/10, changed state
to up
Switch(config-if)#exit
Switch(config)#
Switch#sho
Switch#sho
Port
Fa0/10
int tru
int trunk
Mode
on
Encapsulation Status
802.1q
trunking
Native vlan
1
Port
Fa0/10
Port
Fa0/10
Port
Fa0/10
Switch#sho
Switch#sho
Switch#sho
Port
Fa0/10
Port
Fa0/10
Port
Fa0/10
Port
Fa0/10
Switch#
----------------------------------------------------------------------------------------------Switch#
Switch#
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int ran
Switch(config)#int range fa0/4 - fa0/5
Switch(config-if-range)#swi
Switch(config-if-range)#switchport mod
Switch(config-if-range)#switchport mode tru
Switch(config-if-range)#switchport mode trunk
%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
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/5, changed state t
o down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/5, changed state t
o up
Switch(config-if-range)#exit
Switch(config)#
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#
Switch#sho
Switch#sho
Switch#sho
Port
Fa0/1
Fa0/4
Fa0/5
tru
int tru
int trunk
Mode
auto
on
on
Encapsulation
n-802.1q
802.1q
802.1q
Status
trunking
trunking
trunking
Native vlan
1
1
1
Port
Fa0/1
Fa0/4
Fa0/5
Port
Fa0/1
Fa0/4
Fa0/5
Port
Fa0/1
Fa0/4
Fa0/5
Switch#
Switch(config)#int
Switch(config)#interface vla
Switch(config)#interface vlan
%LINK-5-CHANGED: Interface FastEthernet0/4, changed state to down
2
3
4
1002
1003
1004
1005
VLAN0002
VLAN0003
VLAN0004
fddi-default
token-ring-default
fddinet-default
trnet-default
VLAN
---1
2
3
4
1002
1003
1004
1005
Type
----enet
enet
enet
enet
fddi
tr
fdnet
trnet
SAID
---------100001
100002
100003
100004
101002
101003
101004
101005
MTU
----1500
1500
1500
1500
1500
1500
1500
1500
active
active
active
act/unsup
act/unsup
act/unsup
act/unsup
Parent
------
RingNo
------
BridgeNo
--------
Stp
---ieee
ibm
BrdgMode
--------
Trans1
-----0
0
0
0
0
0
0
0
Trans2
-----0
0
0
0
0
0
0
0