Lab 6
Lab 6
Lab 6
CLI:
Switch>enable
Switch #configure terminal
Switch (config)#vlan 30
Switch(config-vlan)#name lab-1
Switch(config-vlan)#exit
Switch(config)#vlan 40
Switch(config-vlan)#name lab-2
Switch(config-vlan)#exit
Switch(config)#vlan 50
Switch(config-vlan)#name lab-3
Switch(config-vlan)#exit
Switch(config)#int F0/2
Switch (config-if)#switchport mode access
Switch (config-if)#switchport access vlan 30
Switch (config-if)#exit
Switch(config)#int F0/3
Switch (config-if)#switchport mode access
Switch (config-if)#switchport access vlan 30
Switch (config-if)#exit
Switch(config)#int F0/4
Switch (config-if)#switchport mode access
Switch (config-if)#switchport access vlan 40
Switch (config-if)#exit
Switch(config)#int F0/5
Switch (config-if)#switchport mode access
Switch (config-if)#switchport access vlan 40
Switch (config-if)#exit
Switch(config)#int F0/6
Switch (config-if)#switchport mode access
Switch (config-if)#switchport access vlan 50
Switch (config-if)#exit
Switch(config)#int F0/7
Switch (config-if)#switchport mode access
Switch (config-if)#switchport access vlan 50
Switch (config-if)#exit
Switch(config)#int F0/1
Switch (config-if)#switchport mode trunk
Switch (config-if)#spanning-tree portfast trunk
Switch (config-if)#exit
On Router:
CLI:
Router>enable
Router#configure terminal
Router(config)#int F0/0
Router(config-if)#no ip address
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#int F0/0.30
Router(config-if)#encapsulation dot1Q 30
Router(config-if)#ip address 192.168.0.1 255.255.255.0
Router(config)#exit
Router(config)#int F0/0.40
Router(config-if)#encapsulation dot1Q 40
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config)#exit
Router(config)#int F0/0.50
Router(config-if)#encapsulation dot1Q 50
Router(config-if)#ip address 192.168.2.1 255.255.255.0
Router(config)#exit