Voice VLAN is a feature available on cisco switches which is useful feature for Voice and DATA traffic. Voice VLAN cares about the traffic over the data and voice so the communication over the IP network does not deteriorate while voice or data transmission.
Network Diagram for demonstrate Voice VLAN
Turn on the Cisco IP phones, click on the phone and connect the power adapter.
Switch>enable
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#name voice
Switch(config-vlan)#exit
Switch(config)#vlan 20
Switch(config-vlan)#name data
Switch(config-vlan)#exit
Switch(config)#interface range fastEthernet 0/2-5
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport voice vlan 10
Switch(config)#interface range fastEthernet 0/2-5
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 20
Switch(config-if-range)#exit
Router>enable
Router#configure terminal
Router(config)#ip dhcp pool voice
Router(dhcp-config)#network 192.168.100.0 255.255.255.240
Router(dhcp-config)#default-router 192.168.100.1
Router(dhcp-config)#option 150 ip 192.168.100.1
Router(config)#ip dhcp pool data
Router(dhcp-config)#network 192.168.100.16 255.255.255.240
Router(dhcp-config)#default-router 192.168.100.17
Router(dhcp-config)#option 150 ip 192.168.100.17
Router(config)#interface fastEthernet 0/0.1
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.1, changed state to up
Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#ip address 192.168.100.1 255.255.255.240
Router(config-subif)#no shutdown
Router(config)#interface fastEthernet 0/0.2
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.2, changed state to up
Router(config-subif)#encapsulation dot1Q 20
Router(config-subif)#ip address 192.168.100.17 255.255.255.240
Router(config-subif)#no shutdown
Switch(config)#interface fastEthernet 0/1
Switch(config-if)#no shutdown
Switch(config-if)#switchport mode trunk
Router(config)#interface fastEthernet 0/0
Router(config-if)#no shutdown
Router(config)#telephony-service
Router(config-telephony)#max-ephones 5
Router(config-telephony)#max-dn 5
Router(config-telephony)#ip source-address 192.168.100.1 port 2000
Router(config)#ephone 1
Router(config-ephone)#button 1:1
Router(config)#ephone 2
Router(config-ephone)#button 1:2
Router(config)#ephone 3
Router(config-ephone)#button 1:3
Router(config)#ephone 4
Router(config-ephone)#button 1:4
No comments:
Post a Comment