Step 14 Create VLANs on the switch

a.Manually create the data and voice VLANs in the VLAN database. The X in the VLAN number is the pod number.

CMESwitchX# vlan database

CMESwitchX(vlan)# vlan X0

CMESwitchX(vlan)# vlan X5

CMESwitchX(vlan)# exit

Step 15 Configure switch ports for IP phones

a.Cable the two IP phones to switch ports 4 and 6 using straight-through cables.

b.Configure the two IP phone ports to use the IEEE 802.1Q trunking protocol using the switchport trunk encapsulation dot1q command. This command is executed from interface configuration mode.

Note that the next step may have to be completed before this step if an older switch is being used.

Configure each switch port for the trunking encapsulation mode.

CMESwitchX(config)# interface fastethernet 0/4 (and 6)

CMESwitchX(config-if)#switchport trunk encapsulation dot1q

c.Configure the two IP phone ports to be trunk ports with the switchport mode trunk command. This command is executed from interface configuration mode.

CMESwitchX(config)# interface fastethernet 0/4 (and 6)

CMESwitchX(config-if)# switchport mode trunk

d.For the ports that connect to the IP phones, the switch must be configured so that 802.1Q knows which VLAN contains voice traffic. This is done with the switchport voice vlan command. The voice VLAN is X5, where X is the pod number. Refer to IP Telephony Table 1 for the IP addressing scheme.

CMESwitchX(config)# interface fastethernet 0/4 (and 6)

CMESwitchX(config-if)#switchport voice vlan X5

e.The IP phone has a port used to connect a PC. The PC can (and should) be on a separate VLAN from the IP phone. The IP phone connects to the switch via a trunk port. A trunk port can carry multiple VLAN information. In order for the phone to operate on a different VLAN from the phone, the switchport trunk native vlan X0 (where X is the pod number) command must be used. The native VLAN is the VLAN that does not get tagged with VLAN information as frames from this VLAN traverse the trunk. The native VLAN must be the same as the data VLAN for this to work.

This command is done in interface configuration mode. The interface to use is the switch interface to which one of the IP phones connects (the one that has a PC connected to the PC port on the back of the IP phone). The X in the switchport command refers to the pod number.

CMESwitchX(config)# interface fastethernet 0/4 (and 6)

CMESwitchX(config-if)#switchport trunk native vlan X0

The IP phones will not register at this point because Call Manager Express has not been configured on the router yet.

16 - 165 IP Telephony v1.0 Lab 2.1.1b

Copyright 2005, Cisco Systems, Inc.

Page 16
Image 16
Cisco Systems v1.0 manual CMESwitchX# vlan database, CMESwitchXvlan# vlan CMESwitchXvlan# exit