8.2.4. Alias and Clone Files
ifcfg-eth0:0file could be configured to specify
DEVICE=eth0:0and 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. Under this configuration,
eth0is bound to a dynamic IP address, but the same physical network card can receive request via the fixed, 10.0.0.2 IP address.
ifcfg-<if-name>-<clone-name>. While an alias file allows multiple addresses for an existing interface, a clone file is used to specify additional options for an interface. For example, a standard DHCP Ethernet interface called
eth0, may look similar to this:
DEVICE=eth0 ONBOOT=yes BOOTPROTO=dhcp
noif it is not specified, users cannot bring this interface up and down. To give users the ability to control the interface, create a clone by copying
ifcfg-eth0-userand add the following line to
eth0interface using the
/sbin/ifup eth0-usercommand because the configuration options from
ifcfg-eth0-userare combined. While this is a very basic example, this method can be used with a variety of options and interfaces.