Task 1:
For reference information on configuring hostnames, please refer to:
Lab 1 Configuration and Verification Task 1
Lab 3 Configuration and Verification Task 1
Task 2:
For reference information on configuring verifying VLANs, please refer to:
Lab 1 Configuration and Verification Task 3
Lab 2 Configuration and Verification Task 3
For reference information on configuring a VTP password, please refer to:
Lab 5 Configuration and Verification
Task 3:
Sw1#config t
Enter configuration commands, one per line. End with CNTL/Z.
Sw1(config)#interface fastethernet0/1
Sw1(config-if)#switchport mode trunk
Sw1(config-if)#exit
Sw1(config)#vlan 10
Sw1(config-vlan)#name SALES
Sw1(config-vlan)#exit
Sw1(config)#vlan 20
Sw1(config-vlan)#name TECH
Sw1(config-vlan)#exit
Sw1(config)#vlan 30
Sw1(config-vlan)#name ADMIN
Sw1(config-vlan)#exit
Sw1(config)#vlan 40
Sw1(config-vlan)#name TEST
Sw1(config-vlan)#exit
Sw1(config)#interface fastethernet0/2
Sw1(config-if)#switchport mode trunk
Sw1(config-if)#switchport trunk native vlan 20
Sw1(config-if)#exit
Sw1(config)#interface fastethernet0/3
Sw1(config-if)#switchport mode access
Sw1(config-if)#switchport access vlan 20
Sw1(config-if)#end
Sw1#
Sw1#show interfaces trunk
Port Mode Encapsulation Status Native vlan
Fa0/1 on 802.1q trunking 1
Fa0/2 on 802.1q trunking 20
Port Vlans allowed on trunk
Fa0/1 1-4094
Fa0/2 1-4094
Port Vlans allowed and active in management domain
Fa0/1 1,10,20,30,40
Fa0/2 1,10,20,30,40
Port Vlans in spanning tree forwarding state and not pruned
Fa0/1 1,20,30,40
Fa0/2 1,20,30,40
Sw2#config t
Enter configuration commands, one per line. End with CNTL/Z.
Sw2(config)#interface fastethernet0/1
Sw2(config-if)#switchport mode trunk
Sw2(config-if)#exit
Sw2(config)#vlan 10
Sw2(config-vlan)#name SALES
Sw2(config-vlan)#exit
Sw2(config)#vlan 20
Sw2(config-vlan)#name TECH
Sw2(config-vlan)#exit
Sw2(config)#vlan 30
Sw2(config-vlan)#name ADMIN
Sw2(config-vlan)#exit
Sw2(config)#vlan 40
Sw2(config-vlan)#name TEST
Sw2(config-vlan)#exit
Sw2(config)#interface fastethernet0/2
Sw2(config-if)#switchport mode access
Sw2(config-if)#switchport access vlan 30
Sw2(config-if)#exit
Sw2(config)#interface fastethernet0/3
Sw2(config-if)#switchport mode access
Sw2(config-if)#switchport access vlan 40
Sw2(config-if)#^Z
Sw2#
Sw2#show interfaces trunk
Port Mode Encapsulation Status Native vlan
Fa0/1 on 802.1q trunking 1
Port Vlans allowed on trunk
Fa0/1 1-4094
Port Vlans allowed and active in management domain
Fa0/1 1,10,20,30,40
Port Vlans in spanning tree forwarding state and not pruned
Fa0/1 1,20,30,40
Task 4:
For reference information on configuring IP interfaces, please refer to:
Lab 3 Configuration and Verification Task 5
Task 5:
R1#config t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#interface fastethernet 0/0
R1(config-if)#description “Connected To Switch Trunk Fa0/2”
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface fastethernet 0/0.10
R1(config-subif)#description Subinterface For VLAN 10
R1(config-subif)#encapsulation dot1Q 10
R1(config-subif)#ip address 10.0.10.1 255.255.255.240
R1(config-subif)#exit
R1(config)#interface fastethernet 0/0.20
R1(config-subif)#description Subinterface For VLAN 20
R1(config-subif)#encapsulation dot1Q 20 native
R1(config-subif)#ip address 10.0.20.1 255.255.255.128
R1(config-subif)#exit
R1(config)#interface fastethernet 0/0.30
R1(config-subif)#description Subinterface For VLAN 30
R1(config-subif)#ip address 10.0.30.1 255.255.255.248
R1(config-subif)#exit
R1(config)#interface fastethernet 0/0.40
R1(config-subif)#description Subinterface For VLAN 40
R1(config-subif)#encapsulation dot1Q 40
R1(config-subif)#ip address 10.0.40.1 255.255.255.224
R1(config-subif)#end
R1#
R1#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES manual up up
FastEthernet0/0.10 10.0.10.1 YES manual up up
FastEthernet0/0.20 10.0.20.1 YES manual up up
FastEthernet0/0.30 10.0.30.1 YES manual up up
FastEthernet0/0.40 10.0.40.1 YES manual up up
Sw2(config)#interface vlan1
Sw2(config-if)#shutdown
Sw2(config)#interface vlan10
Sw2(config-if)#ip address 10.0.10.2 255.255.255.240
Sw2(config-if)#no shutdown
Sw2(config)#^Z
Sw2#
Sw2#show ip interface brief
Interface IP-Address OK? Method Status Protocol
Vlan1 unassigned YES NVRAM administratively down down
Vlan10 10.0.10.2 YES manual up up
Sw2#
Task 6:
R1#ping 10.0.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.10.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 1/3/4 ms
R1#ping 10.0.20.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.20.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 1/3/4 ms
R1#ping 10.0.30.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.30.3, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 1/3/4 ms
R1#ping 10.0.40.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.40.4, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 1/3/4 ms
| NOTE: The first PING packet times out due to ARP resolution. Subsequent packets will be successful.
|