08-24-2006 11:19 AM - edited 03-03-2019 04:41 AM
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
08-24-2006 11:26 AM
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
08-24-2006 12:02 PM
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:
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.
08-24-2006 12:15 PM
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;
}
08-24-2006 12:58 PM
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.
Hope that helps!
Regards,
Sundar
11-10-2006 07:42 AM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide