02-12-2008 09:08 AM - edited 03-05-2019 09:06 PM
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 ?
02-12-2008 10:00 AM
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?
02-12-2008 10:19 AM
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.
Look at section 2-9. It'll tell you how the phones start up.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide