On Monday 01 September 2003 5:00 pm, Kastus wrote:
On Mon, Sep 01, 2003 at 03:23:49PM +0100, James Ogley wrote:
I am 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 make your addition permanent, edit /etc/sysconfig/network/ifcfg-eth0 and add the following line:
IPADDR1='10.0.0.1' NETMASK1='255.255.0.0'
If you need more aliases, use numbers IPADDR2, etc
Regards, -Kastus
Last night I configured my new ADSL router - which only has an ethernet interface, with a default address which does not map to my network [no serial interface like my ISDN router]. So I reconfigured a machine with YAST2 to share a subnet. I was so keen to get my router going that I did not download my mail and see this thread _before_ I started on the router. Now I have seen this and tried it - it works a treat for a 1 off config task - and of course I can keep the extra entries in -/ifcfg-eth0 and comment them out with '#'. Entering 'rcnetwork restart' gets the new interface going after editing the '#'s in or out without so much as a reboot and I only have to plug the router into the same network hub to reconfigure. regards Vince Littler