ApacheApache

  Main Menu

Home: Linux: Apache: Ip_aliasing
PHP Apache Home:

I read up and found a lot of different ways to do this. And I tried setting it up with the Redhat network control panel. And LinuxConf. Linuxconf actually worked well under RH7.3, but the version I had for 8.0 did not do the deal, and did a lot of stuff that I didn't understand, so I ditched it and did it like this.

First off, to alias another ip address onto your ethernet card, it can be as simple as:
ifconfig eth0:0 192.168.1.x

But, that won't stay after a reboot, so if you have 10 aliases, that is a bit of typing.

Better to add this to your /etc/rc.d/rc.local
echo "Alisasing eth0..."
/sbin/ifconfig eth0:0 192.168.1.200
/sbin/ifconfig eth0:1 192.168.1.201


 

Thus spake the master programmer:

``Though a program be but three lines long, someday it will have to be maintained.''