Host Configuration
301
dhcpd: Not configured to listen on any interfaces!
option subnet-mask
255.255.255.0
;
The
option subnet-mask
option defines a subnet mask, and overrides the
netmask
value in
the
subnet
declaration. In simple cases, the subnet and netmask values are the same.
option routers
10.0.0.1
;
The
option routers
option defines the default gateway for the subnet. This is required for
systems to reach internal networks on a different subnet, as well as external networks.
range
10.0.0.5 10.0.0.15
;
The
range
option specifies the pool of available IP addresses. Systems are assigned an address
from the range of specified IP addresses.
For further information, refer to the
dhcpd.conf(5)
man page.
Alias Interfaces
Alias interfaces are not supported by DHCP. If an alias interface is the only interface, in
the only subnet specified in
/etc/dhcpd.conf
, the DHCP daemon fails to start.
21.4.1. Host Configuration
Before making any changes, back up the existing
/etc/sysconfig/dhcpd
and
/etc/dhcpd.conf
files.
Configuring a single system for multiple networks
The following
/etc/dhcpd.conf
example creates two subnets, and configures an IP address for the
same system, depending on which network it connects to:
ddns-update-style
interim
;
default-lease-time
600
;
max-lease-time
7200
;
subnet 10.0.0.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option routers 10.0.0.1;
range 10.0.0.5 10.0.0.15;
}
subnet 172.16.0.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option routers 172.16.0.1;
range 172.16.0.5 172.16.0.15;
}
host example0 {
hardware ethernet 00:1A:6B:6A:2E:0B;
fixed-address 10.0.0.20;
}
host example1 {
hardware ethernet 00:1A:6B:6A:2E:0B;
Содержание ENTERPRISE LINUX 5 - VIRTUAL SERVER ADMINISTRATION
Страница 22: ...xxii ...
Страница 28: ......
Страница 36: ...10 ...
Страница 40: ...14 ...
Страница 96: ...70 ...
Страница 116: ...90 ...
Страница 144: ...118 ...
Страница 146: ......
Страница 158: ...132 ...
Страница 165: ...Installing and Removing Packages 139 Figure 11 7 Installing and removing packages simultaneously ...
Страница 166: ...140 ...
Страница 172: ...146 ...
Страница 178: ......
Страница 228: ...202 ...
Страница 264: ...238 ...
Страница 318: ...292 ...
Страница 330: ...304 ...
Страница 388: ...362 ...
Страница 428: ...402 ...
Страница 452: ......
Страница 458: ...432 ...
Страница 476: ...450 ...
Страница 478: ...452 ...
Страница 494: ...468 ...
Страница 498: ...472 ...
Страница 530: ...504 ...
Страница 536: ...510 ...
Страница 544: ...Chapter 36 Log Files 518 Figure 36 7 Log file contents after five seconds ...
Страница 546: ......
Страница 550: ...524 ...
Страница 576: ......
Страница 584: ...558 ...
Страница 608: ......
Страница 776: ...750 ...
Страница 796: ...770 ...
Страница 800: ...774 ...
Страница 804: ......
Страница 806: ...780 ...
Страница 808: ...782 ...
Страница 816: ...790 ...
Страница 820: ...794 ...
Страница 822: ...796 ...
Страница 830: ...804 ...
Страница 836: ...810 ...
Страница 844: ...818 ...
Страница 848: ...822 ...