07-12-2007 09:00 AM - edited 03-14-2019 10:31 PM
Im having an issue getting dhcp to work with my ip phones. can someone help and see what I did wrong? Thanks.
ip dhcp excluded-address 10.25.102.1 10.25.102.10
!
ip dhcp pool VOICE
network 10.25.102.0 255.255.255.0
dns-server 10.25.6.10
default-router 10.25.102.1
option 150 ip 10.25.100.10
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
!
interface FastEthernet0/1/0
switchport voice vlan 102
spanning-tree portfast
!
interface FastEthernet0/1/1
switchport voice vlan 102
spanning-tree portfast
!
interface FastEthernet0/1/2
switchport voice vlan 102
spanning-tree portfast
!
interface FastEthernet0/1/3
switchport voice vlan 102
spanning-tree portfast
!
interface FastEthernet0/1/4
switchport voice vlan 102
spanning-tree portfast
!
interface FastEthernet0/1/5
switchport voice vlan 102
spanning-tree portfast
!
interface FastEthernet0/1/6
switchport voice vlan 102
spanning-tree portfast
!
interface FastEthernet0/1/7
switchport voice vlan 102
spanning-tree portfast
!
interface FastEthernet0/1/8
switchport voice vlan 102
spanning-tree portfast
!
interface Vlan1
ip address 10.25.7.1 255.255.255.0
!
interface Vlan2
no ip address
shutdown
!
interface Vlan102
ip address 10.25.102.1 255.255.255.0
07-12-2007 08:03 PM
wow, still no progress on this. Here is what I have found: From the router that is handing out dhcp, I can not ping anything on the phone vlan, including my laptop which I put a static ip address (in the voice vlan). If I look in the arp table, it will show the mac address of the static ip addressed assigned device, but can not ping it. If I do a tracert from the callmanager server, same thing, I get a response from the router, but not the last ip I should get (the device). Funny thing though, on the phone, it will show the voice vlan ID, but nothing else (unless I put a static ip on it). I have tried two different phone models, upgrade of IOS, putting voice vlan in the vlan database, setting ports to trunks, back to access ports, all advice above, etc. No clue at this point.
07-12-2007 08:27 PM
Try this:
1. show ip dhcp binding
2. clear ip dhcp binding
3. show ip dhcp conflict
4. clear ip dhcp conflict
5. term mon
6. debug ip dhcp server packet
7. debug ip dhcp server events
Regards,
John
07-13-2007 12:33 AM
From the config you have pasted it always looked like the DHCP Server and the phones are on hte same device, as in the switch is being used for DHCP. If the Router which handles DHCP does not host the phones, can you paste the config from the router for the port which is used to connect to the switch along with the config of the port on the switch. Looks like we have some issue with connectivity here as when you assign it an Static IP as well, nothing works.
07-13-2007 12:56 AM
Have you created the vlan 102 at a layer 2 level?
07-13-2007 04:24 AM
Yeah, have created the vlan 102. As far as the switch goes, it is part of the router. It is a hwicd-9esw module that fits in the 2811.
07-13-2007 04:56 AM
ahve you created the vlan 102 in the vlan databese of the router?
Router1#vlan database
Router1(vlan)#vlan 102
more info :
07-13-2007 04:56 AM
Yeah, have created vlan in vlan database.
07-13-2007 05:05 AM
if you have an HWIC, I dont think VLAN interface would work. An HWIC only works as an Layer 2 Device, therefore the VLAN interface would not really work. Can you check the output of the following 2 commands:
1. show ip interface brief. Does this command show vlan 102 with the Status of UP/UP ??
2. show ip route on the router. It should show an route to this IP Subnet as directly connected.
If the above 2 do not work, then I guess you will have to assign the IP Address to a Physical Interface and then try.
07-13-2007 06:11 AM
tried both. up and up for vlan and routes show directly connected for that ip scheme. Cisco has forwarded me to 4 different departments at this point. This must really be a complex issue. I appreciate everyones persistance in helping and ideas. Keep em coming.
07-13-2007 06:21 AM
can you paste the output of "show ip route" and show vlan brief from the router
07-13-2007 06:23 AM
All, I did this: I made a dhcp scope for the data vlan (vlan1), and it picks up an ip from that vlan and the phone actually works fine. But, its not on the right vlan at this point and I cant get it to get dhcp from the voice vlan. Any ideas?
07-13-2007 06:54 AM
All, problem is solved. Here is what I had to do to get the phone to get an ip from the voice vlan pool:
interface FastEthernet0/1/3
switchport mode trunk
switchport voice vlan 102
spanning-tree portfast
Thanks to everyone for the ideas and persistence. I really appreciate the help on this.
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