
Switch1(vlan)# vlan 10 name DATA state active
Switch1(vlan)# vlan 15 name VOICE state active
Switch1(vlan)# exit
i.Configure the switch ports where the IP Phones will be connected. Despite the fact that the IP Phones do work with access mode ports, Cisco recommends that you configure the switch ports, connected to the IP Phones, as trunk ports. This way, it is possible to connect a PC on the IP Phone’s PC Port (this port is present in most of the Cisco IP Phones). In order to accomplish this task, it is necessary to tell the Switch which of the created VLANs is the Voice Vlan (switchport voice vlan command) and to specify the native VLAN on the link between the Switch and the IP Phone. Usually the Native VLAN on this link will be the DATA VLAN (switchport native vlan command). The idea is tag the traffic to the IP Phone (IP Phones do support 802.1q) and the traffic headed to the PC will be be untagged (PC’s do not support tagged packets). Finally, configure the port connected to the Router as a trunk port.
Switch1(config)# interface range fast0/5 – 10
Switch1(config)# interface fast0/1
j. Configure the switch2 (connected to R2) in a similar way.
Switch2# delete flash:vlan.dat
Switch2# erase
Switch2# reload
Switch2# vlan database
Switch2(vlan)# vlan 20 name DATA state active
Switch2(vlan)# vlan 25 name VOICE state active
Switch2(vlan)# exit
Switch2(config)# interface range fast0/5 – 10
Switch2(config)# interface fast0/1
140 - 165 IP Telephony v1.0 SBA Version 1: | Copyright ♥ 2005, Cisco Systems, Inc. |