Defining Host Groups

If you need to specify explicit configurations for a group of machines, you can use a group definition. A group definition enables you to define a group of machines with a specific configuration that also inherits the global configuration. Consider Listing 20-1.

LISTING 20-1

Defining a Host Group group {

option subnet-mask 255.255.255.0;

option domain-name-server 192.168.1.254, 62.30.112.39; option domain-name "disruptive.org.uk";

host bible {

option host-name "bible.disruptive.org.uk"; hardware ethernet 00:03:FF:69:68:12;

fixed-address 192.168.1.8; }

host sospan {

option host-name "sospan.disruptive.org.uk"; hardware ethernet 00:03:FF:69:68:13;

fixed-address 192.168.1.9; }

We now have two machines, bible and sospan, defined as static hosts in dhcpd.conf. For those machines we have defined only their host name (host-name) and their IP address (fixed-address). As we have defined a group that encompasses the host definitions, these hosts also inherit the subnet mask, DNS servers, and domain name settings.

j f - - r Make sure you do not forget the opening and closing curly brackets when you define ~ ■ a group.

Was this article helpful?

0 0

Post a comment