On Mon, Sep 01, 2003 at 03:23:49PM +0100, James Ogley wrote:
converting one of our Domino servers fro NT4 to SuSE 8.2.
Is there any way to add a secondary IP to the network card? I used to
Don't do it in YaST.
ifconfig eth0:1 10.0.0.1 netmask 255.255.0.0 up
Will bring up a virtual interface called eth0:1 with the IP 10.0.0.1 and
the mask 255.255.0.0
This still works in 8.2 but the correct way in 8.2 is using ip command:
ip addr add 10.0.0.1/16 dev eth0
To see what addresses you have just run
ip addr show dev eth0
All you need to do is stick that in an init.d script to start after
network and you're sorted.
This is bad practice and the easiest way to screw your system up
(It's a dirty way of doing it, and yes, you could create it using the
/etc/sysconfig/network directory tree, but it's probably the easiest
To make your addition permanent, edit /etc/sysconfig/network/ifcfg-eth0
and add the following line:
If you need more aliases, use numbers IPADDR2, etc