Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to configure DHCP for IP phones

Status
Not open for further replies.

teletomi

Vendor
Aug 31, 2013
276
0
0
PH
Hi all.. Just want to ask if how do you do DHCP when deploying IP phones. I'll be having a deployment of 100 IP phone to a customer and it's very hassle to set all phones statically...
 

Configure Windows DHCP for Avaya IP telephones
HOWTO: Configure Windows DHCP for Avaya IP telephones

In this example we will configure Windows DHCP for Avaya IP telephones. In addition to your standard Option 003 Router you will also need a custom scope option in order for an Avaya IP phone to boot properly using DHCP. While I do reference the IP Office in this document the content is not specific to the IP Office. Options 176 and 242 are common to all Avaya IP telephones and this method would work equally well for phones connected back the an Avaya Communication Manager (aka ACM or CM)

1. Open the DHCP MMC under Control Panel>Administrative Tools>DHCP
2. Right click on the DHCP server name at the top of the tree on the left side of the screen immediately under “DHCP” and select “Set Predefined Options”.
3. Click on the [Add] button.
4. (Avaya 4600 & 5600 series IP phones) Under Name enter “Avaya Option 176″ and select a Data type of “String” and a Code of “176″ then click [OK].
5. (Avaya 1600 series IP phones) Repeat step 4 above to add option 242. Under Name enter “Avaya Option 242″ and select a Data Type of “String” and a Code of “242″ then click [OK].

From this point on things will change if you are using a single VLAN for both Voice and Data or two separate VLANs. I will cover both.
We will assume your IP Office is using the default IP address of 192.168.42.1 (modify to match your IP Office’s actual IP address).


--------------------------------------------------------------------------------

********** If using only a single VLAN for both Voice and Data ********** 1. Expand our your DHCP scope and right click “Scope Options” and select “Configure Options”
2. Scroll down and locate option(s) 176 and/or 242. Under “String value” enter the following:

Option 176 MCIPADD=192.168.42.1,MCPORT=1719,TFTPSRVR=192.168.42.1
Option 242 MCIPADD=192.168.42.1,MCPORT=1719,HTTPSRVR=192.168.42.1




--------------------------------------------------------------------------------


>>>>>>>>>>>>>>>>>>>> OR <<<<<<<<<<<<<<<<<<<<


--------------------------------------------------------------------------------

********** If using a separate VLAN for Voice and Data (we will use “11″ for the Voice VLAN tag in this example) ********** 1. Expand out your DATA DHCP Scope and right click on “Scope Options” and select “Configure Options”
2. Scroll down and locate option(s) 176 and/or 242. Under “String value” enter the following:

Both Option 176 & 242 L2Q=1,L2QVLAN=11,VLANTEST=0

3. Expand out your VOICE DHCP Scope and right click on “Scope Options” select “Configure Options”
2. Scroll down and locate option(s) 176 and/or 242. Under “String value” enter the following:

Option 176 MCIPADD=192.168.42.1,MCPORT=1719,TFTPSRVR=192.168.42.1,VLANTEST=0
Option 242 MCIPADD=192.168.42.1,MCPORT=1719,HTTPSRVR=192.168.42.1,VLANTEST=0

(NOTE: There are many other values that can be entered under your option 176 and option 242 such as L2QAUD and L2QSIG but those can just as easily be set in your 46xxsettings.txt file)


--------------------------------------------------------------------------------

The final step is to configure the IP Office to handle the TFTP/HTTP requests. Your best option is to use a standard Compact Flash card inserted into the Embedded Voicemail slot or the Embedded Voicemail Card itself to hold your .bin, .txt and .scr files. The alternative is to use Manager or some other TFTP/HTTP server running on a PC to serve up the needed files. Here are examples of both

When using a Compact Flash card or Embedded Voicemail card to hold the files internal to the IP Office Set the “TFTP Server IP Address” and the “HTTP Server IP Address” to the IP Office’s own IP address. This will tell the unit to look to itself to handle all file requests.

When using an external TFTP server such as IP Office Manager Set the “TFTP Server IP Address” to the IP Address of the PC running Manager but leave the HTTP address blank. The IP Office will relay all incoming TFTP requests and proxy all incoming HTTP requests as TFTP. This eliminates the need to setup both a TFTP and HTTP server on the target PC.



if it ain't broke don't fix it!
 
Thanks DigitalG... Hope this will work for my IPO... =)
 
or you could turn DHCP on your IPO [2thumbsup]
but the customer should VLAN out the voice network regardless and prioritize .

It's only dialtone!!!
 
Hi vztech... How you configure that.. If I use the IPO, how would I set the voice vlan in the IP phone, the tftp server and others..???
 

Example; VLAN 11 is the voice network and the IPO is 10.16.11.22

When setting up DHCP scope options for VoIP phones, the most confusing piece is that the DATA VLAN and the VOICE VLAN both need the same OPTION #, but with different pieces of information.

This is to accommodate the dual nature of the port configuration.

A port should have BOTH VLANs on it, but default to the DATA VLAN.
Laptops/PC’s don’t do VLAN tagging So the DATA VLAN is UNTAGGED
VoIP Phones will tag, but only if you tell them to So the VOICE VLAN is TAGGED

Therefore, a port is…
… configured with DATA VLAN untagged and a PVID of the DATA VLAN,
… configured with the VOICE VLAN Tagged, VLAN 11
Example is port 1/1 is configured
Vlan member add 1 1/1
Vlan member add 11 1/1
Vlan port 1/1 pvid 1
Vlan port 1/1 tagging UntagPVIDOnly


This takes us to the important part for DHCP to work:
When a device, any device (pc or phone) connects, it sends out a DHCP broadcast UNTAGGED. This puts it on the default VLAN.

The DATA DHCP scope needs to have only QoS info, and a VLAN ID defined under the option, 242 in this case:
Option 242 string
"L2Q=5,L2QVLAN=11" 11= VLAN Voice number in this example[/b]

When a PC sees this option, it doesn’t know what to do with it, so it ignores it and uses the address given to it on the first request.
When a VoIP phone that uses option 242 receives this response, it knows to re-request an address, but this time will TAG it on VLAN 11, and not use the first DATA IP Address it was given.

The VOICE VLAN Scope must be defined with option 242, but with more specific information related to things to phone needs to register, like the MCServer IP address. The IPO system is handling DHCP addresses in the VOICE VLAN, and provides the necessary information.
Option 242 string
"MCIPADD=10.16.11.22,L2Q=6,MCPORT=1719,L2QVLAN=11"
***IF an http server definition is required, ADD HTTPSRVR=10.16.11.22, AFTER the MCPORT field like this:
"MCIPADD=10.16.11.22,L2Q=6,MCPORT=1719, HTTPSRVR=10.16.11.22,L2QVLAN=11"


It's only dialtone!!!
 
Hi Vztech.. What we are discussing here is the IPO and configuration of the switch right..? Like I will configure these following on the switch rigth..??

L2Q=5,L2QVLAN=11
MCIPADD=10.16.11.22,L2Q=6,MCPORT=1719,L2QVLAN=11
MCIPADD=10.16.11.22,L2Q=6,MCPORT=1719, HTTPSRVR=10.16.11.22,L2QVLAN=11

And one thing, can I add this command on the switch:

MCIPADD=10.16.11.22,L2Q=6,MCPORT=1719, TFTPSRVR=10.16.11.22,L2QVLAN=11
 
sorry I have to weigh in here
teletomi, you need to have some serious thoughts about getting training, best to work with an experienced installer so you get the hands on knowledge and can ask questions on what is not making sense to you.
This asking here on TT and having no clue what is up or down will just make your live and your customers live a pure hell.

Don't get me wrong we all started at one point but you first asked on how to do DHCP which is the easiest thing to do if you take the install manual and do a search for DHCP and then want to follow the good advice to create VLAN's but have no idea how to do it and THAT is the kicker as that can break your entire network and can render your IPO and phones useless.
VLAN's are probably one of the most involved thing you can do as the network switches need to be programmed correctly (each brand has its own special little tricks) and any routing (if you use the layer 3 switch it needs to do the routing too) needs to be setup correctly.

start out with the basics and work your way up, start to walk before you run is my advice for you.

Joe W.

TeleTechs.ca
FHandw, ACSS (SME), ACIS (SME)


“This is the end of the world, make sure to buy your T-shirt before it is too late"
Original expression of my daughter
 
L2Q=5,L2QVLAN=11
MCIPADD=10.16.11.22,L2Q=6,MCPORT=1719,L2QVLAN=11
MCIPADD=10.16.11.22,L2Q=6,MCPORT=1719, HTTPSRVR=10.16.11.22,L2QVLAN=11

There is no need for L2QVLAN= stuf in the voice scope as the phone is already in the voice vlan and it will remember it.
If it does not remember it then it will go back to the data vlan and then gets the vlan again.
Also where does the L2Q=5 and L2Q=6 come from?
You have 0, 1 or 2.
There are no more settings:


################## 802.1P/Q SETTINGS ###################
##
## Telephone Frame Tagging
## Controls whether layer 2 frames generated by the
## telephone have IEEE 802.1Q tags.
## 0 for Auto, 1 for On, and 2 for Off
## This parameter may also be changed via LLDP.
## SET L2Q 0


BAZINGA!

I'm not insane, my mother had me tested!

 
Hi westi..Thanks for the advice. Will take this as positive criticism. But as of now I have pending trainings but don't when will it happen. So not to waste time, I do research myself ask to you experts what to do and what's not. I have to be resourcesful with all of means. So hopefully I have your kind patience.

Tlpeter will try to configure that if it works. Thanks alot guys.
 
teletomi, don't get your hopes to high up with the training :) but it will get you into the right direction.

I have to say I don't know if the training has gotten any better since I did mine in 2003 when the instructor said that it was his first course and my colleague knew more than he did and had to help him a few times to find problems.
It depends I guess a lot where you do your courses and who teaches them.

I have learned over the years that it is important to keep your notes, even if they become outdated, as Avaya has the tendency to go back to old workings sometimes and then they are very helpful.

Thanks for not taking it to hard what I said and if you have the chance to join someone on an install it will do wonders.

Cheers


Joe W.

TeleTechs.ca
FHandw, ACSS (SME), ACIS (SME)


“This is the end of the world, make sure to buy your T-shirt before it is too late"
Original expression of my daughter
 
Hi..I used my IPO to be the DHCP server for avaya ip phone.. I set also voice vlan 116 on switch..My question is,how can you set the the voice vlan on IPO to give it on IP phones..?? I checked the phones' VLAN ID and all of them is still set to "0"..
 
The IP phones should be tagged in the voice vlan and the data lan on untagged on the port but the IPO must be on an untagged port.
You need to tell the phone to go to the voice vlan.
You can do this with LLDP or with the customers DHCP server.


BAZINGA!

I'm not insane, my mother had me tested!

 
The customer has no DHCP server that's why I used the IPO to be the DHCP server.. Is there any way else..??
 
If they have a file server you could use the 46xxsettings.txt to put it in the correct vlan.
Or when you do not connect any pc's on the phones then put the ports in an untagged voice vlan.


BAZINGA!

I'm not insane, my mother had me tested!

 
Where can you find this 46xxsettings.txt..???I don't see iy on sd card..
 
I saw it on ip office folder on program files..So under the dhcp setting,I will write set vlan id 116..Am I right..??Then unplug and plug the ip phone given voice vlan on switch has been configured..??Really sorry to bother you guys..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top