Configuring a Multihomed DHCP Server
299
scripts
directory. In this directory, each device should have a configuration file named
ifcfg-
eth0
, where
eth0
is the network device name.
The
/etc/sysconfig/network
file should contain the following line:
NETWORKING=yes
The
NETWORKING
variable must be set to
yes
if you want networking to start at boot time.
The
/etc/sysconfig/network-scripts/ifcfg-eth0
file should contain the following lines:
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
A configuration file is needed for each device to be configured to use DHCP.
Other options for the network script includes:
•
DHCP_HOSTNAME
— Only use this option if the DHCP server requires the client to specify a
hostname before receiving an IP address. (The DHCP server daemon in Red Hat Enterprise Linux
does not support this feature.)
•
PEERDNS=
<answer>
, where
<answer>
is one of the following:
•
yes
— Modify
/etc/resolv.conf
with information from the server. If using DHCP, then
yes
is
the default.
•
no
— Do not modify
/etc/resolv.conf
.
•
SRCADDR=
<address>
, where
<address>
is the specified source IP address for outgoing packets.
•
USERCTL=
<answer>
, where
<answer>
is one of the following:
•
yes
— Non-root users are allowed to control this device.
•
no
— Non-root users are not allowed to control this device.
If you prefer using a graphical interface, refer to
Chapter 15, Network Configuration
for instructions on
using the
Network Administration Tool
to configure a network interface to use DHCP.
Tip
For advanced configurations of client DHCP options such as protocol timing, lease
requirements and requests, dynamic DNS support, aliases, as well as a wide variety
of values to override, prepend, or append to client-side configurations, refer to the
dhclient
and
dhclient.conf
man pages.
21.4. Configuring a Multihomed DHCP Server
A multihomed DHCP server serves multiple networks, that is, multiple subnets. The examples in these
sections detail how to configure a DHCP server to serve multiple networks, select which network
interfaces to listen on, and how to define network settings for systems that move networks.
Содержание 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 ...