We are set up with a two-branch MPLS with a DCHP Helper on the Remote subnet. The DHCP service is running on a CentOS box.
So I have two subnets:
- HostRange: 192.168.0.1 - 192.168.1.254
- RemoteRange: 192.168.2.1 - 192.168.3.254
There are two problems:
- When I tested this configuration at the host location, the computer I tested with pulled from a guest pool instead of receiving its assigned ip address.
- The DHCP server doesn't like to see the same device in both subnets and throws an error saying it is listed twice.
Now, how do I specify the two networks in my config file? This is what I have come up with, which doesn't work:
shared-network CompleteNetwork {
subnet 192.168.2.0 netmask 255.255.254.0 {
option subnet-mask 255.255.254.0;
option broadcast-address 192.168.3.255;
option routers 192.168.2.1;
#reserved pool for Guests (freely distributed)
pool {
range 192.168.3.101 192.168.3.150;
}
# ----A Laptop Computer for testing sake
host TestSubject {
hardware ethernet AA:BB:00:11:22:33;
fixed-address 192.168.2.205;
}
#...
}
subnet 192.168.0.0 netmask 255.255.254.0 {
option subnet-mask 255.255.254.0;
option broadcast-address 192.168.3.255;
option routers 192.168.1.1;
#reserved pool for Guests <------ ONLY RANGE DISTRIBUTED FREELY
pool {
range 192.168.0.101 192.168.0.150;
}
# ----A Laptop Computer for testing sake
host TestSubject {
hardware ethernet AA:BB:00:11:22:33;
fixed-address 192.168.1.205;
}
#...
}
}
[edit]
So I understand now that to have the same device on both networks I must specify a different host name. I also understand now that I don't need the shared-network
part.
Also, Am I right to use that network broadcast over both subnets like that?