Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Helper address with secondary IP address.

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
Hall of Fame Super Silver

Re: Helper address with secondary IP address.

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

Re: Helper address with secondary IP address.

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.

New Member

Re: Helper address with secondary IP address.

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;

}

Re: Helper address with secondary IP address.

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

New Member

Re: Helper address with secondary IP address.

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.

1472
Views
0
Helpful
5
Replies