I'm trying to add multiple ip addresses to arch linux server.
Since I have only one network card with interface eth0 I think I need to add virtual interfaces like eth0:1 etc..
I have tried using this following syntax in /etc/rc.conf, but it seems to trow a bunch of errors:
(note for this example I have omitted the ips for security)
eth0="eth0 x.x.x.x netmask x.x.x.x broadcast x.x.x.x"
eth0_0="eth0:0 x.x.x.x netmask x.x.x.x broadcast x.x.x.x"
INTERFACES=(lo eth0 eth0_0)
gateway="default gw x.x.x.x"
ROUTES=(gateway)
Any help would be appreciated. Thank you.
Best Answer
Can you not use the ip command e.g.
or whatever you need in a suitable init script ?