Ethernet Switching
Ethernet Switching

DHCP adress on one port only?!

02.06.12   |  
‎02-06-2012 02:19 AM

Hello

 

Wondering if anyone can help me, if at all possible?!

 

Wondering if it is possible to have a DHCP server hand out only one ip adress to a spesific port on an EX switch?

 

I want eg. port 48 to give out the adress 192.168.1.90 no matter which machine/equipment is connected to it.

All other ports will give out in the range 192.168.1.1-192.168.1.254 as normal.

 

To make this even more complicated I want to run the DHCP server on one of my Microsoft servers.

 

So in essence, lock one port to give out one spesific adress thru DHCP.

 

Regards

Tommy

 

JNCIS-FWV
JNCIA-Junos
3 REPLIES
Ethernet Switching

Re: DHCP adress on one port only?!

02.06.12   |  
‎02-06-2012 01:12 PM

The DHCP server on the Microsoft box would not be an issue, but I do not know of any way to break up a DHCP scope by the port the traffic was received on.

 

Ron

JNCIE-SEC #127
JNCIE-ENT #489
Ethernet Switching

Re: DHCP adress on one port only?!

02.08.12   |  
‎02-08-2012 06:31 AM

Hi Tommy,

 

You may be able to do this - make sure the RVI for that VLAN is on the same switch and the DHCP server is in a different subnet.  Then look into forwarding-options helpers bootp dhcp-option82.  This appends the incoming interface to a DHCP request, so the server can identify port.  It's been a while since I've used MS DHCP, but you may be able to allocate an address based on the contents of the Option 82 field.

 

Hope this helps - post back here if you get it working

Ben Dale
JNCIP-ENT, JNCIP-SP, JNCIP-DC, JNCIE-SEC #63
Juniper Ambassador
Follow me @labelswitcher
Highlighted
Ethernet Switching

Re: DHCP adress on one port only?!

05.31.12   |  
‎05-31-2012 01:14 PM

That seems like a really convoluted way of creating a guest / maint port....

 

I like the idea of a diff vlan myself