However, it is also possible to edit the configuration files for a given network interface manually.
Below is a listing of the configurable parameters in an Ethernet interface configuration file:
•
BOOTPROTO=<protocol>
, where
<protocol>
is one of the following:
•
none
— No boot-time protocol should be used.
•
bootp
— The BOOTP protocol should be used.
•
dhcp
— The DHCP protocol should be used.
•
BROADCAST=<address>
, where
<address>
is the broadcast address. This directive is
deprecated, as the value is calculated automatically with
ifcalc
.
•
DEVICE=<name>
, where
<name>
is the name of the physical device (except for
dynamically-allocated PPP devices where it is the logical name).
•
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.)
•
DNS{1,2}=<address>
, where
<address>
is a name server address to be placed in
/etc/resolv.conf
if the
PEERDNS
directive is set to
yes
.
•
ETHTOOL_OPTS=<options>
, where
<options>
are any device-specific options supported by
ethtool
. For example, if you wanted to force 100Mb, full duplex:
ETHTOOL_OPTS="autoneg off speed 100 duplex full"
Note that changing speed or duplex settings almost always requires disabling autonegotiation
with the
autoneg off
option. This needs to be stated first, as the option entries are order
dependent.
•
GATEWAY=<address>
, where
<address>
is the IP address of the network router or gateway
device (if any).
•
HWADDR=<MAC-address>
, where
<MAC-address>
is the hardware address of the Ethernet
device in the form
AA:BB:CC:DD:EE:FF
. This directive is useful for machines with multiple
NICs to ensure that the interfaces are assigned the correct device names regardless of the
configured load order for each NIC's module. This directive should not be used in conjunction
with
MACADDR
.
•
IPADDR=<address>
, where
<address>
is the IP address.
•
MACADDR=<MAC-address>
, where
<MAC-address>
is the hardware address of the Ethernet
device in the form
AA:BB:CC:DD:EE:FF
. This directive is used to assign a MAC address to an
interface, overriding the one assigned to the physical NIC. This directive should not be used
Ethernet Interfaces
121
Summary of Contents for ENTERPRISE LINUX 4.5.0 -
Page 1: ...Red Hat Enterprise Linux 4 5 0 4 5 0 Reference Guide ISBN N A Publication date ...
Page 2: ...Red Hat Enterprise Linux 4 5 0 ...
Page 4: ...Red Hat Enterprise Linux 4 5 0 ...
Page 24: ...xxiv ...
Page 26: ......
Page 36: ...12 ...
Page 72: ...48 ...
Page 112: ...88 ...
Page 122: ...98 ...
Page 140: ...116 ...
Page 142: ......
Page 300: ...276 ...
Page 318: ...294 ...
Page 320: ......
Page 332: ...308 ...
Page 350: ...326 ...
Page 378: ...354 ...
Page 388: ...364 ...
Page 394: ...370 ...
Page 395: ...Part IV Appendixes ...
Page 396: ......