Posts Tagged DHCP
DHCP Parse Error
Posted by Michael McNamara in VoiceOverIP on June 15, 2008
It would seem a great many people are running into this error so I thought I would post a quick article that would help all those looking for a solution to their problem. The Nortel i2002/i2004 (any Nortel IP phone) will return the error “DHCP parse error” if the DHCP server returns DHCP option 128 with an invalid format.
In one of my first blog posts entitled “DHCP Options (VoIP)” I outlined the DHCP options and the format that the phone expected. Kenneth quickly pointed out that I had fat-fingered the example DHCP string omitting the semicolon between the values for the primary Call Server (S1) and the secondary Call Server (S2). (I’ve since fixed the original post)
Here’s the format the DHCP option code 128 which the IP phones expects to be returned from the DHCP server when the IP phone is configured for “Full DHCP”;
Nortel-i2004-A,iii.iii.iii.iii:ppppp,aaa,rrr;iii.iii.iii.iii:ppppp,aaa,rrr.
Where the following values are;
- “Nortel-i2004-A” = Option #128 begins with this string for all Nortel IP phones
- “iii.iii.iii.iii” = the IP Address of the Call Server (S1 or S2)
- “ppppp” = port number for the Call Server
- “aaa” = the Action for the Server
- “rrr” = the Retry Count for the Server
The IP Address must be separated from the port number by a colon (:). The parameters for the Primary (S1) and the Secondary (S2) Call Servers are separated by a semicolon (;). The string must end a period (.).
If you are using an ISC DHCP server (this is generally included with any of the Linux distributions) you can refer to my article entitled “ISC DHCP Server (Nortel VoIP)” for information on how to setup and configure the ISC DHCP server to work with Nortel IP Telephony.
Cheers!
Update: Wednesday January 28, 2009
I just came across a “DHCP Parse Error” that actually had nothing to-do with the DHCP string. We had a phone that was using the same DHCP template as 9 other i2002 phones but it was displaying “DHCP Parse Error” when it booted up (this only surfaced after we upgraded to 0604DCG). The phone was actually configured incorrectly. It was suppose to be configured for a Voice VLAN and configured to get the Voice VLAN via LLDP-MED. The LLDP-MED option had been left set at “0″ (disabled) so the phone was trying to make a DHCP request looking for Option 191 while the DHCP server was only configured to return Option 128 as detailed above. It only took a few minutes to fix but I can see how someone could spend hours stuck on this.
Cheers!
ISC DHCP Server (Nortel VoIP)
Posted by Michael McNamara in VoiceOverIP on January 26, 2008
I’ve received quite few messages from folks trying to setup and configure the ISC DHCP server that often comes bundled with all the major Linux distributions for Nortel Internet Telephony. Nortel has several “Technical Configuration Guides” that outline how to configure Microsoft’s DHCP Server but I don’t believe they ever discuss the ISC DHCP server.
I will admit that I really don’t use the ISC DHCP server these days. We’ve been using Lucent’s VitalQIP IP Management software to manage our internal BOOTP/DHCP/DNS/DDNS needs for the past 10 years.
However, since there was so much interest I decided to setup a lab (at home) with a i2002 phone and a server running CentOS v5.0. I installed dhcp-3.0.5-7.el5 via YUM and came up with a sample dhcpd.conf file that anyone should be able to modify to meet their specific needs.
#
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
#
# Sample dhcpd.conf file for Nortel Internet Telephony
#
# Notes: example dhcpd.conf file to illustrate how to configure Nortel
# Internet Telephone specific DHCP options for i2002/i2004 Internet
# Telephones and 2210/2211 Wireless Phones.
#
# *** WARNING *** WARNING *** WARNING *** WARNING ** WARNING ***
#
# This is just an sample file with specific IP information. You'll
# need to customize this file to your specific IP address scheme
# before you can use it in your environment.
#
# *** WARNING *** WARNING *** WARNING *** WARNING ** WARNING ***
#
ddns-update-style none;
not authoritative;
option nortel-callserver code 128 = string;
option nortel-2245 code 151 = ip-address;
# Vendor Class for i2002/i2004/1120e/1140e/1150e Internet Telephones
class "Nortel-i2004-A" {
match if substring (option vendor-class-identifier, 0, 14) = "Nortel-i2004-A";
option nortel-callserver "Nortel-i2004-A,192.168.200.2:4100,1,5;192.168.200.2:4100,1,5.";
option vendor-class-identifier "Nortel-i2004-A";
next-server 192.168.0.10;
}
# Vendor Class for 2210/2211 Wireless Phones
class "Nortel-221x-A" {
match if substring(option vendor-class-identifier, 0, 13) = "Nortel-221x-A";
option nortel-callserver "Nortel-i2004-A,192.168.200.2:4100,1,5:192.168.200.2:4100,1,5.";
option nortel-2245 192.168.200.25;
option vendor-class-identifier "Nortel-221x-A";
next-server 192.168.0.10;
}
# Network Definition
shared-network "mynetwork" {
subnet 192.168.0.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option routers 192.168.0.1;
option domain-name "acme.org";
option domain-name-servers 192.168.0.1;
default-lease-time 28800;
max-lease-time 86400;
# IP Address Pool for generic devices
pool {
range 192.168.0.50 192.168.0.100;
deny members of "Nortel-i2004-A";
deny members of "Nortel-221x-A";
}
# IP Address Pool for i2002/i2004/1120e/1140e/1150e
pool {
range 192.168.0.150 192.168.0.175;
allow members of "Nortel-i2004-A";
deny members of "Nortel-221x-A";
}
# IP Address Pool for 2210/2211
pool {
range 192.168.0.176 192.168.0.199;
deny members of "Nortel-i2004-A";
allow members of "Nortel-221x-A";
}
}
}
In the example above I setup two DHCP scopes; one for the standard hardwired Nortel Internet Telephones (Nortel-i2004-A) and another for the Nortel Wireless Phones (Nortel-221x-A). Hopefully this example should be fairly easy to follow just remember to edit all the site specific IP information.
Cheers!
Layer 3 Access Port Adoption
Posted by Michael McNamara in WirelessLANSwitch on November 23, 2007
The release of v3.x software for the Motorola WS5100 and v1.x software for the Motorola RFS7000 finally supports the deployment of Layer 3 Access Ports (APs that could be deployed across a Layer 3 network as opposed to those that can only be deployed across a Layer 2 network).
The latest release of firmware for the AP300 will first attempt to locate a wireless switch for adoption via a Layer 2 broadcast request. If it’s unable to locate a wireless switch it will make a DHCP request for an IP address. If the DHCP response does not include option 189 (string) it will make a DNS request to try and locate the wireless switch.
There are two ways the Access Port can locate the Wireless LAN Switch (WS5100/RFS7000) in Layer 3 mode;
- DHCP Option
- DNS Query
You can use DHCP and configure option 189 (string) with the IP address of the Motorola Wireless LAN Switch. You should note that you may need to enclose the string in quotation marks depending on your DHCP server software.
You can also create a DNS alias which the AP can use to locate the switch through a DNS query. The default DNS name requested by an AP300 is “Symbol-CAPWAP-Address”.
You might also notice that the AP300 will also support LLDP (802.1ab) if your Ethernet switch supports it.
Cheers!
Update: August 27, 2008
I should point out that you may need to “prime” the AP300 with the latest firmware by connecting it to a WS5100/RFS7000 over a Layer 2 network. If the AP300 has an older firmware it won’t be able to connect up over a Layer 3 network so you may need to connect it over a Layer 2 network first to allow the AP300 to upgrade after which you’ll be able to connect it over a Layer 2/3 network. The AP300 will automatically upgrade once it connects to the WS5100/RFS7000, there’s nothing that needs to be done by the user or administrator. The WS5100/RFS7000 will need to be running v3.x or v1.x respectively.
Cheers!
DHCP Options (VoIP) Part 2
Posted by Michael McNamara in VoiceOverIP on October 25, 2007
In a previous article we reviewed how to configure a Nortel Ethernet Routing Switch 5520 using ADAC/LLDP (802.1ab) so a Nortel Internet Telephone could discover the voice VLAN ID automatically without manually configuration of the phone.
If you don’t have a switch that supports ADAC/LLDP you can still utilize automatic VLAN assignment using DHCP. I’ve actually used this method (before Nortel supported LLDP) and it works well but can sometimes be difficult to troubleshoot.
You’ll need to configure DHCP option 191 (string) with the following syntax;
VLAN-A:vvvv.
Where: “VLAN-A” Option 191 begins with this string for all Nortel IP phones.
“vvvv” The VLAN ID for the voice VLAN in decimal
Here’s an example if I were trying to assign the phones with a voice VLAN of 31;
VLAN-A:31.
There must be a colon (:) seperating the VLAN-A from the VLAN ID. The string must also end in a period. It may be necessary, depending on your DHCP server, to enclose the enter string in quotation marks.
How does it actually work?
With the phone and DHCP server configured properly here’s how it will work.
- The phone will boot up and make a DHCP request for option 191 in the Default VLAN of the port connecting the phone.
- If the phone receives a response to it’s request it will issue a DHCP Release of the address it received in Step 1.
- The phone will make a second DHCP request in the VLAN that was returned in option 191. The phone will be requesting DHCP option 128 from the DHCP server, this will include the Call Server information. (Note: if you use a sniffer you will see that the DHCP packets will have an 802.1q header with the appropriate VLAN ID)
- The phone will connect to the Call Server specified in DHCP option 128 and will prompt the user for the Node ID and TN information.
With all that said we did leave out one very important piece of the pie… the network switch configuration. You’ll need to configure the VLAN and QoS settings manually depending on the switch vendor.
Cheers!






RECENT COMMENTS