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.

Configuring the Server 323LISTING 14.2Example group Declarationgroup {#common parameters for both host declarationsoption routers 192.168.10.254;option subnet-mask 255.255.255.0;option domain-name“example.com”;option domain-name-servers 192.168.10.24;default-lease-time 21600;max-lease-time 43200;host printer {option host-name “printer.example.com”;hardware ethernet 01:BE:BB:5E:1A:CC;fixed-address 192.168.10.7;}14}host payroll {option host-name “payroll.example.com”;hardware ethernet 02:B4:7C:43:DD:FF;fixed-address 192.168.10.10;}Common DHCP parameters are described in Table 14.1. For a complete list, refer to thedhcpd.conf man page with the command man dhcpd.conf.TABLE 14.1 Common DHCP ParametersCommandDescriptionroutersRouter or gateway for the client’s network configuration.domain-nameDomain name for the client’s network configuration.domain-name-servers DNS servers for the client’s network configuration.default-lease-time Length of client lease, in seconds, if client does notrequest a different lease length.max-lease-time Maximum amount of time, in seconds, the server will leasean IP address.min-lease-time Minimum amount of time, in seconds, the server will leasean IP address.local-portBy default, DHCP listens for request on UDP port 67. Usethis option to listen on a different UDP port.range Range of IP addresses to lease to clients.log-facility Instead of logging to /var/log/messages, log to the specifiedfacility. Refer to the “Logging Connections” section ofthis chapter for details.host-nameSpecify a hostname for the client within a host declaration.

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

Saved successfully!

Ooh no, something went wrong!