STP Lab 4
STP Lab 4
...............
Switch(config)#vlan 10
Switch(config-vlan)#name HR
Switch(config)#ex
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to
down
Switch(config-if)#
Switch#sh vlan
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
10 enet 100010 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
Switch#
Switch(config)#int fa0/4
Switch(config-if)#switchport mode trunk
Switch(config-if)#
Switch(config-if)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#wr
Building configuration...
...............
sw1
Switch(config)#vlan 20
Switch(config-vlan)#name Sales
Switch(config-vlan)#ex
Switch(config)#
Switch(config)#int range fa0/2 - 3
Switch(config-if-range)#switchport access vlan 20
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#int fa0/1
Switch(config-if)#switchport mode trunk
Switch(config-if)#
.............
sw2
Switch(config)#vlan 30
Switch(config-vlan)#name Acc
Switch(config-vlan)#ex
Switch(config)#int range fa0/2 - 3
Switch(config-if-range)#switchport access vlan 30
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#int fa0/1
Switch(config-if)#switchport mode trunk
...........................
Switch(config)#vlan 10
Switch(config-vlan)#name HR
Switch(config-vlan)#ex
Switch(config)#int range fa0/2 - 3
Switch(config-if-range)#switchport access vlan 10
Switch(config-if-range)#switchport access mode
^
% Invalid input detected at '^' marker.
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa0/1
Switch(config-if)#switchport mode trunk
...........
MLSW2
Switch#sh int trunk
Port Mode Encapsulation Status Native vlan
Gig1/0/1 auto n-802.1q trunking 1
Gig1/0/2 auto n-802.1q trunking 1
Gig1/0/3 auto n-802.1q trunking 1
Switch#sh vlan
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
10 enet 100010 1500 - - - - - 0 0
20 enet 100020 1500 - - - - - 0 0
30 enet 100030 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
Switch(config-if-range)#channel-protocol pagp
Switch(config-if-range)#ex
Switch(config)#
Switch(config)#ex
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#wr
Building configuration...
Compressed configuration from 7383 bytes to 3601 bytes[OK]
[OK]
Switch#sh etherchannel
Channel-group listing:
----------------------
Group: 1
----------
Group state = L2
Ports: 2 Maxports = 8
Port-channels: 1 Max Portchannels = 1
Protocol: PAGP
Switch#
Switch#sh etherchannel summary
Flags: D - down P - in port-channel
I - stand-alone s - suspended
H - Hot-standby (LACP only)
R - Layer3 S - Layer2
U - in use f - failed to allocate aggregator
u - unsuitable for bundling
w - waiting to be aggregated
d - default port
Switch(config-if)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch(config)#int g1/0/24
Switch(config-if)#no switchport
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/24, changed
state to down
Switch(config-if)#no shutdown
Switch(config-if)#ip address 172.16.10.1 255.255.255.252
Switch(config-if)#end
Switch#
Switch(config)#router eigrp 1
Switch(config-router)#net 172.16.10.0 0.0.0.3
Switch(config-router)#net 172.16.40.0 0.0.0.3
Switch(config-router)#net 192.168.10.0 0.0.0.255
Switch(config-router)#net 192.168.20.0 0.0.0.255
Switch(config-router)#net 192.168.40.0 0.0.0.255
Switch(config-router)#end
Switch#SH 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, E - EGP
i - IS-IS, 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
Switch(config-router)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#SH 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, E - EGP
i - IS-IS, 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
Switch(config)#int g1/0/6
Switch(config-if)#no switchport
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/6, changed state
to down
MLSW3
Switch#sh vlan
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
10 enet 100010 1500 - - - - - 0 0
20 enet 100020 1500 - - - - - 0 0
30 enet 100030 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
Remote SPAN VLANs
------------------------------------------------------------------------------
Switch#wr
Building configuration...
Compressed configuration from 7383 bytes to 3601 bytes[OK]
[OK]
Switch#
Switch#sh ip int br
Interface IP-Address OK? Method Status Protocol
GigabitEthernet1/0/1 unassigned YES NVRAM up up
GigabitEthernet1/0/2 unassigned YES NVRAM up up
GigabitEthernet1/0/3 unassigned YES NVRAM up up
GigabitEthernet1/0/4 unassigned YES NVRAM up up
GigabitEthernet1/0/5 unassigned YES NVRAM up up
GigabitEthernet1/0/6 unassigned YES NVRAM up up
GigabitEthernet1/0/7 unassigned YES NVRAM up up
GigabitEthernet1/0/8 unassigned YES NVRAM up up
GigabitEthernet1/0/9 unassigned YES NVRAM up up
GigabitEthernet1/0/10 unassigned YES NVRAM down down
GigabitEthernet1/0/11 unassigned YES NVRAM down down
GigabitEthernet1/0/12 unassigned YES NVRAM down down
GigabitEthernet1/0/13 unassigned YES NVRAM down down
GigabitEthernet1/0/14 unassigned YES NVRAM down down
GigabitEthernet1/0/15 unassigned YES NVRAM down down
GigabitEthernet1/0/16 unassigned YES NVRAM down down
GigabitEthernet1/0/17 unassigned YES NVRAM down down
GigabitEthernet1/0/18 unassigned YES NVRAM down down
GigabitEthernet1/0/19 unassigned YES NVRAM down down
GigabitEthernet1/0/20 unassigned YES NVRAM down down
GigabitEthernet1/0/21 unassigned YES NVRAM down down
GigabitEthernet1/0/22 unassigned YES NVRAM down down
GigabitEthernet1/0/23 unassigned YES NVRAM down down
GigabitEthernet1/0/24 unassigned YES NVRAM up up
GigabitEthernet1/1/1 unassigned YES NVRAM down down
GigabitEthernet1/1/2 unassigned YES NVRAM down down
GigabitEthernet1/1/3 unassigned YES NVRAM down down
GigabitEthernet1/1/4 unassigned YES NVRAM down down
Vlan1 unassigned YES NVRAM administratively down down
Vlan10 192.168.10.253 YES manual up up
Vlan20 192.168.20.253 YES manual up up
Vlan30 192.168.30.253 YES manual up up
Switch(config)#int range g1/0/4 - 1/0/5
^
% Invalid input detected at '^' marker.
Switch(config-if-range)#channel-protocol pagp
Switch(config-if-range)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#wr
Building configuration...
Compressed configuration from 7383 bytes to 3601 bytes[OK]
[OK]
Switch#
Switch#sh etherch summary
Flags: D - down P - in port-channel
I - stand-alone s - suspended
H - Hot-standby (LACP only)
R - Layer3 S - Layer2
U - in use f - failed to allocate aggregator
u - unsuitable for bundling
w - waiting to be aggregated
d - default port
Switch(config)#int po1
Switch(config-if)#switchport mode trunk
Switch(config-if)#
Switch(config-if)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch(config)#int g1/0/6
Switch(config-if)#no switchpor
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/6, changed state
to down
Switch#SH 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, E - EGP
i - IS-IS, 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
Switch#
..................
MLSW0
Switch(config-if-range)#channel-protocol pagp
Switch(config-if-range)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#wr
Building configuration...
[OK]
Switch#wr
Building configuration...
[OK]
Switch#
Switch(config-if)#int g1/0/24
Switch(config-if)#no switchport
Switch(config)#int g0/1
Switch(config-if)#no shutdown
Switch(config-if)#no switchport
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state
to down
Switch#wr
Building configuration...
[OK]
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#interface vlan 2
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan2, changed state to up
Switch(config-if)#name
^
% Invalid input detected at '^' marker.
Switch(config-if)#vlan 2
Switch(config-vlan)#name Servers
Switch(config-vlan)#interface vlan 2
Switch(config-if)#ip address 192.168.100.254 255.255.255.0
Switch(config-if)#no shutdown
Switch(config-if)#
Switch(config-if)#ex
Switch(config)#wr
^
% Invalid input detected at '^' marker.
Switch(config)#ex
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch(config)#int fa0/4
Switch(config-if)#switchport mode trunk
Command rejected: An interface whose trunk encapsulation is "Auto" can not be
configured to "trunk" mode.
Switch(config-if)#switchport trunk encapsulation dot1q
Switch(config-if)#switchport mode trunk
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to
down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to
up
Switch(config-if)#
Switch(config-if)#
....
MLSW1
Switch(config-if-range)#channel-protocol pagp
Switch(config-if-range)#
Switch(config-if-range)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#wr
Switch(config)#int g0/1
Switch(config-if)#no shutdown
Switch(config-if)#no switchport
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state
to down
Switch#wr
Building configuration...
[OK]
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#interface vlan 2
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan2, changed state to up
Switch(config-if)#name
^
% Invalid input detected at '^' marker.
Switch(config-if)#vlan 2
Switch(config-vlan)#name Servers
Switch(config-vlan)#interface vlan 2
Switch(config-if)#ip address 192.168.100.254 255.255.255.0
Switch(config-if)#no shutdown
Switch(config-if)#
Switch(config-if)#ex
Switch(config)#wr
^
% Invalid input detected at '^' marker.
Switch(config)#ex
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#wr
Building configuration...
[OK]
Switch#sh eigrp
^
% Invalid input detected at '^' marker.
Switch#sh 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, E - EGP
i - IS-IS, 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
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
Switch(config)#router eigrp 1
Switch(config-router)#net 172.16.10.0 0.0.0.3
Switch(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 1: Neighbor 172.16.10.1 (GigabitEthernet0/1) is up: new
adjacency
Switch(config)#int po1
Switch(config-if)#switchport trunk encapsulation dot1q
Switch(config-if)#switchport mode trunk
Switch(config)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch(config-vlan)#int vlan 2
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan2, changed state to up
Switch(config)#int fa0/3
Switch(config-if)#switchport trunk encapsulation dot1q
Switch(config-if)#switchport mode trunk
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to
down
Switch(config-if)#
....................