12.07.2015 Views

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

322CHAPTER 14Granting Network Connectivity with DHCPLISTING 14.1Continuedoption domain-name“example.com”;option domain-name-servers 192.168.1.1;range dynamic-bootp 192.168.0.128 192.168.0.254;default-lease-time 21600;max-lease-time 43200;# fixed address examplehost jadefox {next-server ns.example.com;hardware ethernet 12:34:56:78:AB:CD;fixed-address 192.168.0.4;}}shared-network third-floor {#global parameters for the shared networkoption routers 192.168.0.1;option subnet-mask 255.255.255.0;option nis-domain“example.com”;option domain-name“example.com”;option domain-name-servers 192.168.1.1;default-lease-time 21600;max-lease-time 43200;subnet 192.168.10.0 netmask 255.255.255.0 {range dynamic-bootp 192.168.10.1 192.168.10.254;}}subnet 192.168.20.0 netmask 255.255.255.0 {range dynamic-bootp 192.168.20.1 192.168.20.254;}In Listing 14.1, the two subnets in the shared-network grouping are on the same physicalnetwork and share all the parameters defined before the first subnet declaration withinthe shared-network declaration. Each subnet then has an IP address range defined for itsclients.To configure global settings for multiple declaration groups, use the group statement asshown in Listing 14.2. In this example, all the options outside the two host declarationsapply to both host declarations. The group statement is not limited to host statements. Itcan be used to declare the same options for multiple subnets, for example.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!