Router on a Stick
Networkeducative-Switch(config)# vlan2
Networkeducative-Switch(config-vlan)# name voice
Networkeducative-Switch(config-vlan)# exit
Networkeducative-Switch(config)# interface vlan1
Networkeducative-Switch(config-if)# description Data Vlan
Networkeducative-Switch(config-if)# ip address 192.168.0.2 255.255.255.0
Networkeducative-Switch(config-if)# exit
Networkeducative-Switch(config)# interface vlan2
Networkeducative-Switch(config-if)# description Voice Vlan
Networkeducative-Switch(config-if)# ip address 192.168.2.2 255.255.255.0
Networkeducative-Switch(config-if)# exit
Networkeducative-Switch# configure terminal
Networkeducative-Switch(config)# interface gigabitethernet 0/1
Networkeducative-Switch(config-if)# description Trunk-to-Router
Networkeducative-Switch(config-if)# switchport trunk encapsulation dot1q
Networkeducative-Switch(config-if)# switchport mode trunk
Networkeducative-Switch(config-if)# spanning-tree portfast trunk
Networkeducative-Router# configure terminal
Networkeducative-Router(config)# interface gigabitethernet0/1
Networkeducative-Router(config-if)# no ip address
Networkeducative-Router(config-if)# duplex auto
Networkeducative-Router(config-if)# speed auto
Networkeducative-Router(config-if)# interface gigabitethernet0/1.1
Networkeducative-Router(config-subif)# description Data VLAN
Networkeducative-Router(config-subif)# encapsulation dot1q 1 native
Networkeducative-Router(config-subif)# ip address 192.168.0.1 255.255.255.0
Networkeducative-Router(config-subif)# ip nat inside
Networkeducative-Router(config-subif)# ip virtual-reassembly
Networkeducative-Router(config-subif)# interface gigabitethernet0/1.2
Networkeducative-Router(config-subif)# description Voice VLAN
Networkeducative-Router(config-subif)# encapsulation dot1q 2
Networkeducative-Router(config-subif)# ip address 192.168.2.1 255.255.255.0
Networkeducative-Router(config-subif)# ip nat inside
Networkeducative-Router(config-subif)# ip virtual-reassembly
0 Comments