cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2614
Views
0
Helpful
5
Replies

Helper address with secondary IP address.

deeshar
Level 1
Level 1

Hello,

We have an DHCP server in subnet of 10.10.156.0/24 which have a ranges configured for 10.0.0.0/8. One of the router (10.10.157.10/23) is configured as relay agent to convert DHCP discover broadcast to unicast. Clients can easily obtain the IP address from 10.10.157.0/23 network configured at DHCP server (using ip helper-address < DHCPServer IP address> ). Recently we have configured a secondary IP adress 10.10.200.10/24 on the interface with primary address as 10.10.157.10/23. We wish that certain client should get the IP address from the DHCP server but from the 10.10.200.0/24 range. We have tried to configure two helper address for that still all the clients are getting IP address from primary subnet.

Please suggest.

Thanks,

Deepak Sharma

5 Replies 5

Richard Burts
Hall of Fame
Hall of Fame

Deepak

If it is certain PCs that you want to have addresses in the second scope you may be able to configure reservations so that they always get a certain address out of the second scope. Otherwise I am not sure that you can do what you describe. The normal operation of DHCP server is that it will assign addresses from the primary scope until its addresses are exhausted before it will assign addresses from the second scope.

HTH

Rick

HTH

Rick

ilya.varlashkin
Level 3
Level 3

The reason your clients still get IP from primary subnet is that original request is sent within the same broadcast domain (LAN segment, VLAN) as primary subnet. DHCP request in a nutshel looks like "Hi everyone (IP: 255.255.255.255, MAC: FFFF.FFFF.FFFF) out there. I am new here (IP: 0.0.0.0, MAC: ). Someone cares to tell me which IP should I use?" So there is no way for router to know that one of such requests is for one subnet and another one for another. Router simply listens for broadcasts on bootps port and forwards them.

Imaging that your DHCP server would actually be directly on the same subnet as clients. How would it distinguish between different subnets? If you can determine criteria for this, then the same answer applies to DHCP server being on another subnet.

judson.bishop
Level 1
Level 1

You need to make dhcp scopes for both your /23 and /24 networks rather than the entire /8. In ISC the new scope would look similar to:

subnet 10.10.200.0 netmask 255.255.255.0 {

range 10.10.200.11 10.10.200.254;

default-lease-time 604800;

max-lease-time 2419200;

option subnet-mask 255.255.255.0;

option broadcast-address 10.10.200.255;

option routers 10.10.200.1;

}

Hi,

Cisco supports a feature called 'dhcp smart relay' feature that would enable users acquire IP from a secondary address (subnet)configured on a router interface. However, this would work only if the DHCP server isn't configured with the primary IP address scope.

If you have another ethernet interface on the router you could configure the two interfaces to forward dhcp requests to two different servers and smart relay function should help. Check out the following link for more info on this feature.

http://www.cisco.com/en/US/products/ps6350/products_configuration_guide_chapter09186a00804412bf.html#wp1089419

Hope that helps!

Regards,

Sundar

kirkster
Level 3
Level 3

Why don't you use dot1q vlan subinterfaces rather than secondaries? If you did that the giaddr in the discover message would contain your 10.200 address and it would work fine.