RedHat supports the configuration of alias interfaces via network scripts of the for “
1 |
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 “
1 |
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”:
1 2 3 4 5 6 7 8 9 10 |
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 “
1 |
ifup eth0-range0 |
” or “
1 |
ifdown eth0-range0 |
”.