Hello, 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 have such a setup for the current NT box and eve tried this config with Mandrake but thi sdoes not seem to be possible with YAST2. Any idea anybody? Thanks Josef Prusa
Hi, ifconfig eth0:1 IP netmask NETMASK where IP is the second IP and NETMASK is the netmask. Regards, Alin. joe_pr@myrealbox.com wrote:
Hello,
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 have such a setup for the current NT box and eve tried this config with Mandrake but thi sdoes not seem to be possible with YAST2. Any idea anybody?
Thanks
Josef Prusa
-- Alin DOBRE Technical Support Engineer - RAV Division mailto:alin.dobre@ravantivirus.com http://www.ravantivirus.com --------------------------- This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake please let us know by reply and then delete it from your system; you should not copy the message or disclose its contents to anyone.
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 All you need to do is stick that in an init.d script to start after network and you're sorted. (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 way) :) -- James Ogley, Webmaster, Rubber Turnip james@rubberturnip.org.uk http://www.rubberturnip.org.uk Jabber: riggwelter@myjabber.net Using Free Software since 1994, running GNU/Linux (SuSE 8.2) GNOME updates for SuSE: http://www.usr-local-bin.org
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 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 way) :)
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
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
Follow up on a *really* old thread... [...snip...]
Is there any way to add a secondary IP to the network card? I used to
[...snip...]
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
My question: Is it possible for one address to be static and the other to bet set through DHCP? Thank you for your time, -Stathis
participants (6)
-
Alin Dobre
-
James Ogley
-
joe_pr@myrealbox.com
-
Kastus
-
rouvas
-
Vince Littler