0% found this document useful (0 votes)
12 views

STP Lab 4

Uploaded by

hitham
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

STP Lab 4

Uploaded by

hitham
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 17

sw0............

...............
Switch(config)#vlan 10
Switch(config-vlan)#name HR

Switch(config)#ex

Switch(config-if)#int range fa0/2 - 3


Switch(config-if-range)#switchport access vlan 10
Switch(config-if-range)#switchport mode access

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#sh vlan

VLAN Name Status Ports


---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, 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, Gig0/1, Gig0/2
10 HR active Fa0/2, Fa0/3
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active

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
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------

Remote SPAN VLANs


------------------------------------------------------------------------------

Primary Secondary Type Ports


------- --------- ----------------- ------------------------------------------
Switch#
Switch#
Switch#
Switch#
Switch#
Switch#
Switch#sh int trunk
Port Mode Encapsulation Status Native vlan
Fa0/4 on 802.1q trunking 1

Port Vlans allowed on trunk


Fa0/4 1-1005

Port Vlans allowed and active in management domain


Fa0/4 1,10

Port Vlans in spanning tree forwarding state and not pruned


Fa0/4 10

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(config-if-range)#switchport mode access


Switch(config-if-range)#int fa0/1
Switch(config-if)#switchport mode trunk
......
sw4
Switch(config)#vlan 20
Switch(config-vlan)#name Sales
Switch(config-vlan)#e
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)#ex
Switch(config)#int fa0/1
Switch(config-if)#switchport mode trunk
.............
sw5
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)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console

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 Name Status Ports


---- -------------------------------- --------- -------------------------------
1 default active Gig1/0/4, Gig1/0/5, Gig1/0/6,
Gig1/0/7
Gig1/0/8, Gig1/0/9, Gig1/0/10,
Gig1/0/11
Gig1/0/12, Gig1/0/13, Gig1/0/14,
Gig1/0/15
Gig1/0/16, Gig1/0/17, Gig1/0/18,
Gig1/0/19
Gig1/0/20, Gig1/0/21, Gig1/0/22,
Gig1/0/23
Gig1/0/24, Gig1/1/1, Gig1/1/2,
Gig1/1/3
Gig1/1/4
10 HR active
20 Sales active
30 Acc active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active

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


------------------------------------------------------------------------------

Primary Secondary Type Ports


------- --------- ----------------- ------------------------------------------
Switch#
Switch#
Switch#
Switch#
Switch#
Switch#
Switch#
Switch#
Switch#
Switch#
Switch#
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#ip routing
Switch(config)#int vlan 10
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan10, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up

Switch(config-if)#ip addrss 192.168.10.254 255.255.255.0


^
% Invalid input detected at '^' marker.

Switch(config-if)#ip address 192.168.10.254 255.255.255.0


Switch(config-if)#int vlan 20
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan20, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to up

Switch(config-if)#ip address 192.168.20.254 255.255.255.0


Switch(config-if)#int vlan 30
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan30, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan30, changed state to up

Switch(config-if)#ip address 192.168.30.254 255.255.255.0


Switch(config-if)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
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.254 YES manual up up
Vlan20 192.168.20.254 YES manual up up
Vlan30 192.168.30.254 YES manual up up
Switch#
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int range g1/0/4 - 5
Switch(config-if-range)#channel-group 1 mode ?
active Enable LACP unconditionally
auto Enable PAgP only if a PAgP device is detected
desirable Enable PAgP unconditionally
on Enable Etherchannel only
passive Enable LACP only if a LACP device is detected
Switch(config-if-range)#channel-group 1 mode desirable
Switch(config-if-range)#
Creating a port-channel interface Port-channel 1

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/4, changed state


to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/4, changed state


to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/5, changed state


to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/5, changed state


to up

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

Number of channel-groups in use: 1


Number of aggregators: 1

Group Port-channel Protocol Ports


------+-------------+-----------+----------------------------------------------

1 Po1(SD) PAgP Gig1/0/4(I) Gig1/0/5(I)


Switch#
Switch(config)#int po1
Switch(config-if)#switchport mode trunk

Switch(config-if)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Switch#sh int trunk


Port Mode Encapsulation Status Native vlan
Po1 on 802.1q trunking 1
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(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

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/24, changed


state to up

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

Gateway of last resort is not set

172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks


D 172.16.0.0/16 is a summary, 03:04:38, Null0
C 172.16.10.0/30 is directly connected, GigabitEthernet1/0/24
D 172.16.20.0/30 [90/3072] via 172.16.40.2, 00:12:38, GigabitEthernet1/0/6
C 172.16.40.0/30 is directly connected, GigabitEthernet1/0/6
C 192.168.10.0/24 is directly connected, Vlan10
C 192.168.20.0/24 is directly connected, Vlan20
C 192.168.30.0/24 is directly connected, Vlan30
Switch(config-router)#no auto-summary
Switch(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 1: Neighbor 172.16.40.2 (GigabitEthernet1/0/6) resync:
summary configured

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

Gateway of last resort is not set

172.16.0.0/30 is subnetted, 3 subnets


C 172.16.10.0 is directly connected, GigabitEthernet1/0/24
D 172.16.20.0 [90/3072] via 172.16.40.2, 00:00:09, GigabitEthernet1/0/6
C 172.16.40.0 is directly connected, GigabitEthernet1/0/6
C 192.168.10.0/24 is directly connected, Vlan10
C 192.168.20.0/24 is directly connected, Vlan20
C 192.168.30.0/24 is directly connected, Vlan30

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

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/6, changed state


to up

Switch(config-if)#ip address 172.16.40.1 255.255.255.252


Switch(config-if)#no shutdown
note : when config any switchport and assign ip should put above command....
...................

MLSW3
Switch#sh vlan

VLAN Name Status Ports


---- -------------------------------- --------- -------------------------------
1 default active Gig1/0/4, Gig1/0/5, Gig1/0/6,
Gig1/0/7
Gig1/0/8, Gig1/0/9, Gig1/0/10,
Gig1/0/11
Gig1/0/12, Gig1/0/13, Gig1/0/14,
Gig1/0/15
Gig1/0/16, Gig1/0/17, Gig1/0/18,
Gig1/0/19
Gig1/0/20, Gig1/0/21, Gig1/0/22,
Gig1/0/23
Gig1/0/24, Gig1/1/1, Gig1/1/2,
Gig1/1/3
Gig1/1/4
10 HR active
20 Sales active
30 Acc active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active

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
------------------------------------------------------------------------------

Primary Secondary Type Ports


------- --------- ----------------- ------------------------------------------
Switch#
Switch#
Switch#
Switch#
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#ip routing
Switch(config)#int vlan 10
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan10, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up

Switch(config-if)#ip address 192.168.10.253 255.255.255.0


Switch(config-if)#int vlan 20
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan20, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to up

Switch(config-if)#ip address 192.168.20.253 255.255.255.0


Switch(config-if)#
Switch(config-if)#int vlan 30
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan30, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan30, changed state to up

Switch(config-if)#ip address 192.168.30.253 255.255.255.0


Switch(config-if)#
Switch(config-if)#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 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)#int range g1/0/4 - 5


Switch(config-if-range)#channel-group 1 mode desirable
Switch(config-if-range)#
Creating a port-channel interface Port-channel 1

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/4, changed state


to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/4, changed state


to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/5, changed state


to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/5, changed state


to up

%LINK-5-CHANGED: Interface Port-channel1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed state to up

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

Number of channel-groups in use: 1


Number of aggregators: 1

Group Port-channel Protocol Ports


------+-------------+-----------+----------------------------------------------

1 Po1(SU) PAgP Gig1/0/4(P) Gig1/0/5(P)


Switch#

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#sh int trunk


Port Mode Encapsulation Status Native vlan
Po1 on 802.1q trunking 1
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(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

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/6, changed state


to up

Switch(config-if)#ip address 172.16.30.2 255.255.255.252


Switch(config-router)#no auto-summary
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

Gateway of last resort is not set

172.16.0.0/30 is subnetted, 2 subnets


C 172.16.20.0 is directly connected, GigabitEthernet1/0/24
C 172.16.30.0 is directly connected, GigabitEthernet1/0/6
C 192.168.10.0/24 is directly connected, Vlan10
C 192.168.20.0/24 is directly connected, Vlan20
C 192.168.30.0/24 is directly connected, Vlan30

Switch#

..................
MLSW0

Switch(config)#int range fa0/1 - 2


Switch(config-if-range)#channel-group 1 mode desirable
Switch(config-if-range)#
Creating a port-channel interface Port-channel 1

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


down

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


up

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


down

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


up

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

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/24, changed


state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/24, changed


state to up

Switch(config-if)#ip address 172.16.20.1 255.255.255.252

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

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state


to up
Switch(config-if)#ip address 172.16.10.0 255.255.255.252
Bad mask /30 for address 172.16.10.0
Switch(config-if)#int fa0/6
Switch(config-if)#no shutdown
Switch(config-if)#no switchport
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/6, changed state to
down

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


up
no switchport
Switch(config-if)#
Switch(config-if)#ip address 172.16.30.1 255.255.255.252
Switch(config-if)#int g0/1
Switch(config-if)#ip address 172.16.10.2 255.255.255.252
Switch(config-if)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console

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)#int range fa0/1 - 2


Switch(config-if-range)#channel-group 1 mode desirable
Switch(config-if-range)#
Creating a port-channel interface Port-channel 1

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


down

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


up

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


down

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


up

%LINK-5-CHANGED: Interface Port-channel1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed state to up

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

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state


to up

Switch(config-if)#ip address 172.16.10.0 255.255.255.252


Bad mask /30 for address 172.16.10.0
Switch(config-if)#int fa0/6
Switch(config-if)#no shutdown
Switch(config-if)#no switchport
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/6, changed state to
down

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


up
no switchport
Switch(config-if)#
Switch(config-if)#ip address 172.16.30.1 255.255.255.252
Switch(config-if)#int g0/1
Switch(config-if)#ip address 172.16.10.2 255.255.255.252
Switch(config-if)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console

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

Gateway of last resort is not set

172.16.0.0/30 is subnetted, 2 subnets


C 172.16.10.0 is directly connected, GigabitEthernet0/1
C 172.16.30.0 is directly connected, FastEthernet0/6

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-router)#net 172.16.30.0 0.0.0.3


Switch(config-router)#net 192.168.100.0 0.0.0.255
Switch(config-router)#ex
Switch(config)#int po1
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)#
Switch(config-if)#ex
Switch(config)#

Switch(config)#int po1
Switch(config-if)#switchport trunk encapsulation dot1q
Switch(config-if)#switchport mode trunk

Switch(config)#sh int trunk


^
% Invalid input detected at '^' marker.

Switch(config)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Switch#sh int trunk

Switch#sh int trunk

Switch#show int trunk

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

Number of channel-groups in use: 1


Number of aggregators: 1

Group Port-channel Protocol Ports


------+-------------+-----------+----------------------------------------------

1 Po1(SU) PAgP Fa0/1(P) Fa0/2(P)


Switch#
Switch(config)#int g0/1
Switch(config-if)#no shutdown
Switch(config-if)#no switchport
Switch(config-if)#ip address 172.16.20.2 255.255.255.252
Switch(config-if)#int fa0/6
Switch(config-if)#no shutdown
Switch(config-if)#no switchport
Switch(config-if)#ip address 172.16.40.2 255.255.255.252
Switch(config-if)#ex
Switch(config)#vlan 2
Switch(config-vlan)#name Servers
Switch(config-vlan)#ip address 192.168.100.253 255.255.255.0
^
% Invalid input detected at '^' marker.

Switch(config-vlan)#int vlan 2
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan2, changed state to up

Switch(config-if)#ip address 192.168.100.253 255.255.255.0


Switch(config-if)#no shutdown
Switch(config-if)#
Switch(config)#router eigrp 1
Switch(config-router)#net 172.16.20.0 0.0.0.3
Switch(config-router)#net 172.16.40.0 0.0.0.3
Switch(config-router)#net 192.168.100.0 0.0.0.255
Switch(config-router)#
Switch(config-router)#ex
Switch(config)#ex

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

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


up

Switch(config-if)#
....................

You might also like