DHCP server (version 4) with an alias IP address
Steven Shiau
steven at nchc.org.tw
Fri Oct 1 06:55:54 UTC 2010
On 2010年09月30日 15:02, Simon Hobson wrote:
> Steven Shiau wrote:
>
>> Is that possible to use an alias IP address to run the DHCP service 4?
>
> Yes.
>
>> We have been used dhcp3 service with this method for a long time,
>> however, recently we switched to 4.1 or 4.2, and we hit an issue that
>> the dhcpd always complains "No subnet declaration for eth0 (...)"
>
> Which is correct - you are missing a declaration for it. You need a
> shared network declaration, and a declaration for the other subnet :
>
> shared-subnet "some-identifier" {
> subnet 192.168.100.0 netmask 255.255.255.0 {
> option subnet-mask 255.255.255.0;
> option routers 192.168.100.254;
> next-server 192.168.100.254;
>
> pool {
> range 192.168.100.1 192.168.100.3;
> }
> }
> subnet 192.168.120.0 netmask 255.255.255.0 {
> }
> }
>
> Note. In this case shared-network is correct because 192.168.100.0/24
> and 192.168.120.0/24 are both on the same broadcast domain. Not to be
> confused with VLANs etc.
>
Cool! Thanks!
Steven.
--
Steven Shiau<steven _at_ nchc org tw> <steven _at_ stevenshiau org>
National Center for High-performance Computing, Taiwan. http://www.nchc.org.tw
Public Key Server PGP Key ID: 1024D/9762755A
Fingerprint: A2A1 08B7 C22C 3D06 34DB F4BC 08B3 E3D7 9762 755A
More information about the dhcp-users
mailing list