Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

voip phones getting ip address

Hi all, can anyone tell me how my voip phones get addresses from my dhcp server, the pc plugs into the phone using untagged vlan, and the phone plugs into the switch, i have helper addresses setup on my switches for both vlans, my question is, how does the switch know which vlan the phone is in initally, do we need to set the vlan in the phone first ?

2 REPLIES
New Member

Re: voip phones getting ip address

It's good that you had the ip helper address setup in your switches already.

The switch knows which vlan the phone is in by this command "switchport voice vlan xxx".

Is your phone ip address in the same subnet as the pc?

Bronze

Re: voip phones getting ip address

The phones send out a CDP to the switch it's connected to, requesting what VLAN it is supposed to be in (which is why on Cisco switches you have the "switchport voice vlan" command).

The switch responds, letting the phone know what vlan it is supposed to be in, then the phone receives DHCP addresses based on that.

If your phones are connected to a Cisco switch, the PC's traffic is tagged with the vlan that you specify with the "switchport access vlan" command; the vlan info is stripped or added when it gets to the phone.

http://www.cisco.com/en/US/docs/voice_ip_comm/cuipph/7961g_7961g-ge_7941g_7941g-ge/4_1_3/english/administration/guide/61admin.pdf

Look at section 2-9. It'll tell you how the phones start up.

117
Views
0
Helpful
2
Replies