[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Multiple IP-addresses on one interface



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

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.


Rgds.

Ola Thoresen



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]