Multiple IP-addresses on one interface

Ola Thoresen redhat at
Fri May 7 09:10:15 UTC 2004

What is the _right_ way to set multiple ip addresses on a single

I know I could either use ifcfg-eth0:0, ifcfg-eth0:1 and so on but I
would prefer not to have these "old" aliases.

The problem with adding the addresses in rc.local 
(IE /sbin/ip addr add xx.xx.xx.xx/xx dev eth0) is that if services are
configured to listen to different addresses they will not start, unless
I also add 'service xxxx start' to the bottom of rc.local.

This is not a huge problem, but there should be a better way than
repeating the whole init after the addresses are set in rc.local.


Ola Thoresen

More information about the fedora-list mailing list