Click to See Complete Forum and Search --> : DHCP on difference Subnets


Chris Li
06-16-2000, 03:29 AM
Dear Experts,

This is Chris Li from HONG KONG. Recently, I'm very frustrated with the problem on Linux's DHCP. Here comes the details:

I'm now using a single DHCP server to serving difference locations (through routers). Since on each physical segment, we have two subnets IP range. We want to use both ranges as DHCP. How can we do that?

Here comes the details:
One Physical segment-
Subnet One : 155.161.155.65 - 155.161.155.126
gateway : 155.161.155.65
scope of range : 155.161.155.70-100

Another Pyscial Segment -
Subnet One : 155.161.89.129 - 155.161.89.190
gateway : 155.161.89.129
scope of range : 155.161.89.130-180

I tried to use this config but failed:
shared-network subnet1_2 {
subnet 155.161.155.64 netmask 255.2555.255.192 {
option broadcast-address 155.161.155.127;
option routers 155.161.155.65;
range 155.161.155.70 155.161.155.100;}

subnet 155.161.89.128 netmask 255.2555.255.192 {
option broadcast-address 155.161.89.191;
option routers 155.161.89.129;
range 155.161.155.70 155.161.89.180;}
}

Pls advise.

Regards,
Chris Li