We've moved from Blogger to WordPress!

You should be automatically redirected in 5 seconds. If not, visit
http://blog.michaelfmcnamara.com
and update your bookmarks.

Saturday, January 26, 2008

ISC DHCP Server (Nortel VoIP)

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!

4 comments:

Anonymous said...

Thanks! I'm having to setup ISC dhcp for a nortel deployment. Is there a way to pass voice or data vlan id numbers to the phone via dhcp?

Thanks

Michael McNamara said...

You can definitely pass the voice VLAN ID over DHCP. I covered the necessary DHCP option and how it works in a previous post;

DHCP Options (VoIP) Part 2

Prior to Nortel supporting ADAC/LLDP (802.1ab) I used DHCP option 191 and while it worked I would strongly advise folks to use ADAC/LLDP (802.1ab) if at all possible.

I do NOT have a dhcpd.conf file for that scenario but I don't imagine it would be that complicated. If I find the time over the next week I'll try to draw one up.

Cheers!

Anonymous said...

This is great info. Thanks so much for taking the time to put it out there. I'd love to see some more info on ISC DHCP with LLDP-MED.

Michael McNamara said...

Hi,

Hopefully you won't be surprised to know that you should already have everything you need. There is no direct tie in between ADAC/LLDP and DHCP. If I wasn't using ADAC/LLDP I would still use the same DHCP configuration. I would just need to manually configure the Voice VLAN on the phones and manually configure the VLAN and QoS settings on the network switches.

The phone will always use a DHCP vendor class of "Nortel-i2004-A" so you can setup specific DHCP scopes/ranges within your IP address pools regardless if you are using ADAC/LLDP or not.

If you are trying to use DHCP option 191 to assign the Voice VLAN then you'll need some additional DHCP configuration beyond what we've already discussed.

Cheers!

Please let me know if I'm not being clear.

Cheers!