You are on page 1of 5

Lab B.

Solve:
Lab B.1: Creating VLANs
1. #config t
(config)#hostname 1900A
1900A#
2. 1900A#config t
Enter configuration commands,one per line.End
with CNTL/Z
1900A(config)#vlan 2 name Sales
1900A(config)#vlan 3 name Management
1900A(config)#vlan 4 name Engineering
1900A(config)#vlan 5 name Marketing
1900A(config)#exit
Verify your VLANs with the show vlan command.
1900A#sh vlan
VLAN Name Status Ports
-------------------------------------1 default Enabled 1-12,AUI,A,B
2 Sales Enabled
3 Management Enabled
4 Engineering Enabled
5 Marketing Enabled
1002 fddi-default Suspended
1003 token-ring-defau Suspended
1004 fddinet-default Suspended
1005 trnet-default Suspended
-------------------------------------#[output cut ]

Lab B.2: Assigning VLANs to Switch Ports


1. 1900A#config t
Enter configuration commands, one per line. End
with CNTL/Z
1900A(config)#int e0/1
1900A(config-if)#vlan-membership static 2
1900A(config-if)#int e0/2
1900A(config-if)#vlan-membership static 2
2.
a. 1900A(config-if)#int e0/3
1900A(config-if)#vlan-membership static 3

1900A(config-if)#int e0/4
1900A(config-if)#vlan-membership static 3
b. 1900A(config-if)#int e0/5
1900A(config-if)#vlan-membership static 4
1900A(config-if)#int e0/6
1900A(config-if)#vlan-membership static 4
c. 1900A(config-if)#int e0/7
1900A(config-if)#vlan-membership static 5
1900A(config-if)#int e0/8
1900A(config-if)#vlan-membership static 5
1900A(config-if)#exit
1900A(config)#exit
3.
1900A#sh vlan
VLAN Name Status Ports
-------------------------------------1 default Enabled 8-12,AUI,A,B
2 Sales Enabled 1-2
3 Management Enabled 3-4
4 Engineering Enabled 5-6
5 Marketing Enabled 7-8
1002 fddi-default Suspended
1003 token-ring-defau Suspended
1004 fddinet-default Suspended
1005 trnet-default Suspended
4.
1900A#sh vlan-membership
Port VLAN Membership
----------------------1 2 Static
2 2 Static
3 3 Static
4 3 Static
5 4 Static
6 4 Static
7 5 Static
8 5 Static
9 1 Static
10 1 Static
11 1 Static
12 1 Static

AUI 1 Static
A 1 Static
B 1 Static
1900A#

Lab B.3: Configuring Trunking


1.
1900A#config t
Enter configuration commands,one per line.End
with CNTL/Z
1900A(config)#int f0/26
1900A(config-if)#trunk ?
auto Set DISL state to AUTO
desirable Set DISL state to DESIRABLE
nonegotiate Set DISL state to NONEGOTIATE
off Set DISL state to OFF
on Set DISL state to ON
1900EN(config-if)#trunk auto
2.
#config t
Enter configuration commands,one per line.End
with CNTL/Z
(config)#hostname 1900B
1900B(config)#int f0/26
1900B(config-if)#trunk ?
auto Set DISL state to AUTO
desirable Set DISL state to DESIRABLE
nonegotiate Set DISL state to NONEGOTIATE
off Set DISL state to OFF
on Set DISL state to ON
1900B(config-if)#trunk on

Lab B.4: Configuring VTP


1.
1900A#config t
1900A(config)#vtp server
2.
1900A#config t

1900A(config)#vtp domain Classroom1


3.
1900A#show vtp
4.
1900B#config t
1900B(config)#vtp domain Classroom1
1900B(config)#vtp client
6.
1900B#sh vlan
VLAN Name Status Ports
-------------------------------------1 default Enabled 1-12,AUI,A,B
2 Sales Enabled
3 Management Enabled
4 Engineering Enabled
5 Marketing Enabled
1002 fddi-default Suspended
1003 token-ring-defau Suspended
1004 fddinet-default Suspended
1005 trnet-default Suspended
-------------------------------------Notice that it found all the VLANs, but that all of 1900Bs switch ports
are in VLAN 1. Unless you tell it differently, all ports are always in VLANs.
You have to set the ports at each switch. (VTP sends VLAN information, not
port information.)

Lab B.5: Configuring Inter-VLAN Routing with ISL


1.
2.
1900A#config t
1900A(config)int f0/027
1900A(config-if)#trunk on
3.
2621#config t
2621(config)int f0/0.1
2621(config-if)no shutdown
2621(config-subif)#encapsulation isl 1
2621(config-subif)#ip address 172.16.10.1
255.255.255.0

2621(config-subif)#int f0/0.2
2621(config-subif)#encapsulation isl 2
2621(config-subif)#ip address 172.16.20.1
255.255.255.0
2621(config-subif)#int f0/0.3
2621(config-subif)#encapsulation isl 3
2621(config-subif)#ip address 172.16.30.1
255.255.255.0
2621(config-subif)#int f0/0.4
2621(config-subif)#encapsulation isl 4
2621(config-subif)#ip address 172.16.40.1
255.255.255.0
2621(config-subif)#encapsulation isl 5
2621(config-subif)#ip address 172.16.50.1
255.255.255.0
2621(config-subif)#exit
2621(config)#int f0/0
Remember that each host in their configured VLAN should have the same
subnet information.

You might also like