05-11-2019 05:54 AM - edited 05-11-2019 04:23 PM
Hi guys,
Apologies first as I am using a not using Cisco Call Manager or Cisco DHCP server.
I have got a Cisco 7970 phone I am trying to setup on Asterisk freepbx. Currently got Opnsense DHCP server connected to a Cisco 3750 switch and the 7970 phone connected to same switch.
Just to complicate things a bit, both my Opnsense server and Asterisk servers are virtual sitting on same physical box. Opnsense is also used as my NAT firewall to connect to the internet. Asterisk server connects to Opnsense which is its Default GW (and is Default GW for entire network).
Asterisk Server IP is 10.0.50.10. My TFTP server is install on this same box /tftpboot folder with SEP and firmware files inside.
Opnsense DHCP server is connected to port FastEthernet1/0/1
Data scope: 10.0.10.0/24 - VLAN 10
Voice scope: 10.0.50.0/24 - VLAN 50
Connect phone to port interface FastEthernet1/0/2
For some weird reason, the phone just sits at upgrading...for ever and does nothing. I checked DHCP logs, and the phone sends DHCPDiscover and DHCP server sends DHCPoffer from correct IP scope 10.0.50.0 but it stops there and continuously loops from Discover to Offer.
Here is parts of my config:
interface Vlan10
ip address 10.0.10.2 255.255.255.0
!
interface Vlan50
description Voice
ip address 10.0.50.2 255.255.255.0
interface FastEthernet1/0/1
switchport access vlan 10
switchport mode access
switchport voice vlan 50
!
interface FastEthernet1/0/2
switchport access vlan 10
switchport mode access
switchport voice vlan 50
spanning-tree portfast
I thought it was a routing issue causing the DORA loop, but I tried connecting a laptop to the same port was able to get DHCP range 10.0.50.0 address by changing config to below:
interface FastEthernet1/0/2
switchport access vlan 50
switchport mode access
spanning-tree portfast
So what do you think the issue is and do you have any suggestions?
Solved! Go to Solution.
05-12-2019 06:16 AM - edited 05-16-2019 05:09 AM
Thanks for all the help so far guys, I am starting to make some progress and feeling really happy about it so far.
So now I managed to get DHCP working properly from Opnsense box, option 150 was incorrect which caused the DHCPoffer loop I had earlier.
In case someone comes across this problem, before I used the "Additional options" section which does not work:
Option: 150 text 10.0.50.10
You actually simply need to use the provided "TFTP server" setting and just put your TFTP IP address i.e. 10.0.50.10.
Now the phone gets an IP address from correct VLAN and I can see it trying to download the "term75.default" file, unfortunately it seems to hang during the download at 0K and just restarts after a while then tries to download the same file again and restart loops again.
I tested to copy the same term75.default file from the Cisco switch to flash dir and it worked, so not sure why the phone cant download the same file.
05-12-2019 06:23 AM
@bruc3 wrote:
Now the phone gets an IP address from correct VLAN and I can see it trying to download the "term75.default" file, unfortunately it seems to hang during the download at 0kb and just restarts after a while then tries to download the same file again and restart loops again.
"term75.default" is a file meant for the 7975 phone.
"term70.default" is a file meant for the 7970 phone.
05-12-2019 06:29 AM - edited 05-12-2019 06:32 AM
@Leo Laohoo wrote:
@bruc3 wrote:Now the phone gets an IP address from correct VLAN and I can see it trying to download the "term75.default" file, unfortunately it seems to hang during the download at 0kb and just restarts after a while then tries to download the same file again and restart loops again.
"term75.default" is a file meant for the 7975 phone.
"term70.default" is a file meant for the 7970 phone.
Ahhh ok, thats pretty embarassing. Looks like all my firmware files are for the 7975 phone then. I will see if I can download the correct files and try again. Thanks for spotting that.
05-13-2019 12:41 AM
05-16-2019 06:08 AM
Good to know and glad finally it was working, You can mark as many as solution, so it will be useful for the community members to refer in the Future.
05-11-2019 06:50 AM
"phone just sits at upgrading" <-- in this stage do you see the Phone got DHCP IP address, yes then it try to provisioning,(i am guessting)
Since you tested the below config with PC, have you tested same with Phone ?
interface FastEthernet1/0/2
switchport access vlan 50
switchport mode access
spanning-tree portfast
Do you have any DHCP Options set in the DHCP for Voice VLAN
May be below guide help you to setup cisco phone with asterisk.
https://www.voicenet.eu/wp-content/uploads/2016/06/Asterisk-With-Cisco-IP-Phones.pdf
05-11-2019 04:09 PM - edited 05-11-2019 04:25 PM
Double post.
05-11-2019 04:14 PM
@balaji.bandi wrote:"phone just sits at upgrading" <-- in this stage do you see the Phone got DHCP IP address, yes then it try to provisioning,(i am guessting)
Since you tested the below config with PC, have you tested same with Phone ?
interface FastEthernet1/0/2
switchport access vlan 50
switchport mode access
spanning-tree portfast
Do you have any DHCP Options set in the DHCP for Voice VLAN
May be below guide help you to setup cisco phone with asterisk.
https://www.voicenet.eu/wp-content/uploads/2016/06/Asterisk-With-Cisco-IP-Phones.pdf
The phone does not get an IP as evident from DHCP server logs as it gets a DHCPOffer but it never sends back DHCPRequest so means it does not get an IP address.
Yes, I have tested the same "switchport access vlan 50" config on the phone and it still never gets an IP address and does the DHCPdiscover/offer loop again.
For the DHCP server, I have option 150 set to point to my Asterisk server, but guess it won't get to this stage since the phone is not even getting an IP addres from DHCP yet.
05-11-2019 08:51 AM
@bruc3 wrote:
Voice scope: 10.0.50.0/24 - VLAN 50
(I have a 7970 at home connected to my Asterisk server.)
Where is DHCP option 150 pointed to?
Where is your SEPmacaddress.cnf.xml file?
Where are the firmware files?
05-11-2019 04:18 PM - edited 05-11-2019 04:24 PM
@Leo Laohoo wrote:
@bruc3 wrote:Voice scope: 10.0.50.0/24 - VLAN 50
(I have a 7970 at home connected to my Asterisk server.)
Where is DHCP option 150 pointed to?
Where is your SEPmacaddress.cnf.xml file?
Where are the firmware files?
DHCP option 150 is set to point to my Asterisk server IP 10.0.50.10.
My SEP..xml and firmware files are both in the /tftpboot folder which is on the TFTP server installed on the Asterisk server also.
Just to complicate things a bit, both my Opnsense server and Asterisk servers are virtual. Opnsense is also used as my NAT firewall to connect to the internet. Asterisk server connects to Opnsense which is its Default GW (and is Default GW for entire network).
Sorry, I have updated these details to my OP now. Didn't want to include it before as didn't want post to get too long and complicated.
05-11-2019 05:21 PM
05-11-2019 05:27 PM
I have reset phone to factory defaults.
I have just tried disabling my Opnsense DHCP server and enabled DHCP on the Cisco switch instead. The phone is now getting DHCP as I can confirm it from "show ip dhcp binding", however the phone is rebooting loop now with "error" at upgrade screen.
So, issue with the phone working with Opnsense DHCP for some reason (maybe routing issue).
How will I confirm that the phone is connecting to TFTP server? I can ping the Cisco phone, but cannot access settings to see if its correctly pointed to TFTP server.
05-11-2019 10:24 PM
05-11-2019 10:39 PM
Below is my config for DHCP:
ip dhcp excluded-address 10.0.10.0 10.0.10.99
ip dhcp excluded-address 10.0.50.0 10.0.50.99
!
ip dhcp pool vlan
!
ip dhcp pool vlan10
network 10.0.10.0 255.255.255.0
default-router 10.0.10.1
dns-server 8.8.8.8
option 150 ip 10.0.50.10
!
ip dhcp pool vlan50
network 10.0.50.0 255.255.255.0
default-router 10.0.50.1
dns-server 8.8.8.8
option 150 ip 10.0.50.10
05-11-2019 10:45 PM
05-12-2019 05:10 AM
Thanks for this, I checked and TFTP server was running but found out my firewall was blocking access to it. I have just allowed firewall traffic to TFTP server.
05-16-2019 06:35 AM
05-11-2019 11:48 PM - edited 05-11-2019 11:49 PM
To Test TFTP working or not.
From your Switch :
copy running-config to tftp:// (see is that traferring.)
if above step working, :
Try copy xml file from tftp to cisco flash and later delete
copy tftp://ip/phone.xml flahsh:/ <--change the name and where you want to store. This confirms all working.
05-12-2019 05:05 AM - edited 05-12-2019 05:06 AM
I couldn't copy to the TFTP server (Permission denied), but was successfully able to get a file from TFTP server from the cisco switch. I think thats really all I need since the phone only needs to get files from TFTP. Thanks for this suggestion, it helped me determine TFTP is working.
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