Vlan-10 name ict PC1 & PC4
Vlan-11 name staff PC2 & PC3
Static Vlan Configuration
ESW1#
ESW1#
ESW1#show vlan-switch brief
VLAN Name Status Ports
1 default active Fa1/0, Fa1/1, Fa1/2, Fa1/3
Fa1/4, Fa1/5, Fa1/6, Fa1/7
Fa1/8, Fa1/9, Fa1/10, Fa1/11
Fa1/12, Fa1/13, Fa1/14, Fa1/15
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
ESW1#vlan database
ESW1(vlan)#vlan 10 name ict
VLAN 10 added:
Name: ict
ESW1(vlan)#vlan 20 name
staff VLAN 20 added:
Name: staff
ESW1#show vlan-switch
VLAN Name Status Ports
1 default active Fa1/0, Fa1/1, Fa1/2, Fa1/3
Fa1/4, Fa1/5, Fa1/6, Fa1/7
Fa1/8, Fa1/9, Fa1/10, Fa1/11
Fa1/12, Fa1/13, Fa1/14, Fa1/15
10 ict active
20 staff active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
ESW1#configure t
Enter configuration commands, one per line. End with CNTL/Z.
ESW1(config)#interface f1/0
ESW1(config-if)#switchport mode access
ESW1(config-if)#switchport access vlan
10 ESW1(config-if)#exit
ESW1(config)#interface f1/1
ESW1(config-if)#switchport mode
access ESW1(config-if)#switchport
access vlan 20
ESW1#show vlan-switch
VLAN Name Status Ports
1 default active Fa1/2, Fa1/3, Fa1/4, Fa1/5
Fa1/6, Fa1/7, Fa1/8, Fa1/9
Fa1/10, Fa1/11, Fa1/12, Fa1/13
Fa1/14, Fa1/15
10 ict active Fa1/0
20 staff active Fa1/1
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
ESW1(config)#interface f1/15
ESW1(config-if)#switchport mode
trunk
ESW2#
ESW2#
ESW2#configure t
Enter configuration commands, one per line. End with CNTL/Z.
ESW2(config)#interface f1/15
ESW2(config-if)#switchport mode trunk
ESW2#vlan database
ESW2(vlan)#vlan 10 name ict
VLAN 10 added:
Name: ict
ESW2(vlan)#vlan 20 name staff
VLAN 20 added:
Name: staff
ESW2(vlan)#exit
APPLY completed.
ESW2#
ESW2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
ESW2(config)#interface f1/1
ESW2(config-if)#switchport mode access
ESW2(config-if)#switchport access vlan
10 ESW2(config-if)#exit
ESW2(config)#interface f1/0
ESW2(config-if)#switchport mode
access ESW2(config-if)#switchport
access vlan 20
ESW2(config-
if)#exit
ESW2(config)#exit
ESW2#show vlan-s
VLAN Name Status Ports
1 default active Fa1/2, Fa1/3, Fa1/4, Fa1/5
Fa1/6, Fa1/7, Fa1/8, Fa1/9
Fa1/10, Fa1/11, Fa1/12, Fa1/13
Fa1/14
10 ict active Fa1/1
20 staff active Fa1/0
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
PC1:
PC1> ip [Link] /8
Checking for duplicate
address... PC1 : [Link] [Link]
PC1> ping [Link]
84 bytes from [Link] icmp_seq=1 ttl=64 time=1.622 ms
84 bytes from [Link] icmp_seq=2 ttl=64 time=1.448
ms 84 bytes from [Link] icmp_seq=3 ttl=64
time=0.953 ms 84 bytes from [Link] icmp_seq=4
ttl=64 time=1.477 ms 84 bytes from [Link]
icmp_seq=5 ttl=64 time=1.654 ms
PC1> ping [Link]
84 bytes from [Link] icmp_seq=1 ttl=64 time=1.618
ms 84 bytes from [Link] icmp_seq=2 ttl=64
time=1.216 ms 84 bytes from [Link] icmp_seq=3
ttl=64 time=0.975 ms 84 bytes from [Link]
icmp_seq=4 ttl=64 time=1.161 ms 84 bytes from
[Link] icmp_seq=5 ttl=64 time=1.090 ms
PC1> ping [Link]
host ([Link]) not reachable
PC1> ping [Link]
host ([Link]) not reachable
PC2#
PC2> ip [Link] /8
Checking for duplicate
address... PC1 : [Link] [Link]
PC2> ping [Link]
host ([Link]) not reachable
PC2> ping [Link]
84 bytes from [Link] icmp_seq=1 ttl=64 time=1.625
ms 84 bytes from [Link] icmp_seq=2 ttl=64
time=1.540 ms 84 bytes from [Link] icmp_seq=3
ttl=64 time=1.089 ms 84 bytes from [Link]
icmp_seq=4 ttl=64 time=0.901 ms 84 bytes from
[Link] icmp_seq=5 ttl=64 time=1.054 ms
PC3#
PC3> ip [Link] /8
Checking for duplicate address...
PC1 : [Link] [Link]
PC4#
PC4> ip [Link] /8
Checking for duplicate address...
PC1 : [Link] [Link]
PC4>