Hello everyone, inĀ previous tutorial i have discuss about configuration voip on cisco packet tracer. and in this tutorial I would like to discuss about configuration vlan voice and vlan data. Vlan voice are used for voip traffic while vlan data are used for general traffic.
This is the topology are used :
For voip configuration, you can see at the Basic Configuration VoIP on Cisco Packet Tracer article.
Configure 2 sub interface on router for vlan voice and data :
Router(config)#int fa0/0.10 Router(config-subif)#encapsulation dot1Q 10 Router(config-subif)#ip add 10.10.10.1 255.255.255.0 Router(config-subif)#exit Router(config)#int fa0/0.100 Router(config-subif)#encapsulation dot1Q 100 Router(config-subif)#ip add 192.168.100.1 255.255.255.0 Router(config-subif)#exit Router(config)#
Configure DHCP Server for vlan voice and vlan data
Router(config)#ip dhcp excluded-address 192.168.100.1 Router(config)#ip dhcp excluded-address 10.10.10.1 Router(config)#ip dhcp pool DHCP_VOICE Router(dhcp-config)#network 10.10.10.0 255.255.255.0 Router(dhcp-config)#default-router 10.10.10.1 Router(dhcp-config)#option 150 ip 10.10.10.1 Router(dhcp-config)#exit Router(config)#ip dhcp pool DHCP_DATA Router(dhcp-config)#network 192.168.100.0 255.255.255.0 Router(dhcp-config)#default-router 192.168.100.1 Router(dhcp-config)#exit Router(config)#
Configuration vlan on Switch device :
Switch(config)#int fa0/1 Switch(config-if)#switchport mode trunk Switch(config-if)#exit Switch(config)#vlan 100 Switch(config-vlan)#name VLAN-DATA Switch(config-vlan)#exit Switch(config)#vlan 10 Switch(config-vlan)#name VLAN-VOICE Switch(config-vlan)#exit Switch(config)#int range fa0/2-3 Switch(config-if-range)#switchport mode access Switch(config-if-range)#switchport access vlan 100 Switch(config-if-range)#switchport voice vlan 10 Switch(config-if-range)#exit Switch(config)#
After that Configure IP Phone and PC. then make testing to make sure that connection is successfull for ip phones and PCs.
Testing on IP Phone is successfull
Testing on PCs are also successfull
Confirm DHCP binding on the router.