Red Hat LINUX 7.2 - OFFICIAL LINUX CUSTOMIZATION GUIDE Installationsanleitung Seite 164

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 282
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 163
164 Chapter 13. Network Scripts
no — The /etc/resolv.conf file will not be changed.
PERSIST= answer , where answer is one of the following:
yes This interface should be kept active at all times, even if deactivated after a modem hang
up.
no — This interface should not be kept active at all times.
REMIP=
address , where address is the remote system’s IP address. This is usually left
unspecified.
WVDIALSECT=
name , where name associates this interface with a dialer configuration in
/etc/wvdial.conf, which contains the phone number to be dialed and other important informa-
tion for the interface.
13.1.3. Alias and Clone Files
Two lesser used types of interface configuration files found in /etc/sysconfig/network-
scripts are alias and clone files, which include an additional component in the name of the file
beyond the interface name.
Alias interface configuration files take names in the format of ifcfg-
if-name : alias-
value
, and they allow an alias to point to an interface. For example, a ifcfg-eth0:0 file could
be configured to specify DEVICE=eth0:0 and a static IP address of 10.0.0.2, serving as an alias of
an Ethernet interface already configured to receive its IP information via DHCP in ifcfg-eth0. At
that point, the eth0 device is bound to a dynamic IP address, but it can always be referred to on that
system via the fixed 10.0.0.2 IP address.
A clone interface configuration file has a name similar to ifcfg- if-name - clone-name .
While an alias file is another way to refer to an existing interface configuration file, a clone file is used
to specify additional options when specifying an interface. For example, if you have a standard DHCP
Ethernet interface called eth0, it may look similar to this:
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
Since USERCTL is not set to yes, users cannot bring this interface up and down. To give users this
ability, create a clone called user from ifcfg-eth0 which allows a user to bring up and down the
eth0 interface. The resulting name of the clone would be ifcfg-eth0-user and would only need
one line:
USERCTL=yes
When a user moves to bring up the eth0 interface with the ifup eth0-user command, the con-
figuration options from ifcfg-eth0 and ifcfg-eth0-user are used together. While this is a very
basic example, this method can be used with a variety of options and interfaces.
The easiest way to create alias and clone interface configuration files is to use the GUI-based Network
Configurator (redhat-config-network) tool.
Seitenansicht 163
1 2 ... 159 160 161 162 163 164 165 166 167 168 169 ... 281 282

Kommentare zu diesen Handbüchern

Keine Kommentare