Multiple subnets with multiple static IPs

Siobhan Keehan siobhan.keehan at ericsson.com
Thu Oct 20 09:14:13 UTC 2011


Hi,

I am trying to automate the addition of hosts and subnets into dhcpd, is it possible to do something like

# cat /usr/local/etc/dhcpd.conf
authoritative;

# Subnet Declaration
include "/usr/local/etc/dhcpd.conf_subnet";

# Client Declaration
include "/usr/local/etc/dhcpd.conf_static";

dhcpd.conf_subnet
allow unknown-clients;

subnet 10.45.192.0 netmask x.x.x.x{
option broadcast-address x.x.x.x;
option domain-name-servers x.x.x.x;
option domain-name "atx711vm2.ericsson.com.";
option ntp-servers x.x.x.x;
option routers x.x.x.x;
}

subnet 10.42.33.0 netmask x.x.x.x{
option routers x.x.x.x;
option broadcast-address x.x.x.x;
option domain-name-servers x.x.x.x;
option domain-name "sken.com";
}

dhcpd.conf_static

host RBS4 {
option dhcp-client-identifier "RBS4";
 fixed-address 10.45.192.4;
 option tftp-server-name "x.x.x.x";
 option bootfile-name "/WRAN/test.xml";
 }

host RBS4TEST {
option dhcp-client-identifier "RBS4TEST";
 fixed-address 10.42.33.76;
 option tftp-server-name "x.x.x.x";
 option bootfile-name "/WRAN/test.xml";
 option ntp-servers x.x.x.x;
 option time-offset  2555034;
  }

Or do each static address need to be declared within the subnet declaration





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20111020/aa876c7e/attachment.html>


More information about the dhcp-users mailing list