RedHat supports the configuration of alias interfaces via network scripts of the for “
ifcfg-eth0:0
” as described in the documentation here:
http://www.redhat.com/docs/manuals/enterprise/RHEL-3-Manual/ref-guide/s1-networkscripts-interfaces.html
Additionally there is undocumented support for alias ranges. Using a single network script of the form “
ifcfg-eth0-range0
” a set of alias interfaces can be defined. This if very handly when setting up several aliases on a web server.
Here’s a sample config file named “ifcfg-eth0-range0″:
DEVICE=eth0 BOOTPROTO=static HWADDR=00:0C:F1:D7:BB:6F ONBOOT=yes TYPE=Ethernet IPADDR_START=70.84.242.240 IPADDR_END=70.84.242.247 CLONENUM_START=240 NETMASK=255.255.255.255 NO_ALIASROUTING=yes
Alias interfaces can be manually activated/deactivated with “
ifup eth0-range0
” or “
ifdown eth0-range0
“.