Mailinglist Archive: opensuse (3378 mails)

< Previous Next >
FW: [SLE] Two IP-addresses, one NIC
There is actually an easier way to do this.

SuSE doesn't include /etc/rc.d/rc.local but it
does include /etc/rc.d/boot.local which performs
the same function. Any commands put into boot.local
will execute when the system boots.

============================================
Drew J. Como Phone: 631-434-6600
Systems Administrator Fax: 631-434-7800
dcomo@xxxxxxxxxx Web: www.bascom.com
Bascom Global Internet Services, Inc.
--------------------------------------------
"When quality is the goal,
winning is guaranteed."


-----Original Message-----
From: Chad Whitten [mailto:dog@xxxxxxxxx]
Sent: Monday, April 22, 2002 9:21 AM
To: david@xxxxxxxxxxxx; suse-linux-e@xxxxxxxx
Subject: Re: [SLE] Two IP-addresses, one NIC


ifconfig eth0:0 192.168.1.2 broadcast 192.168.1.255 netmask 255.255.255.0 up
will always work, on any linux box
to get this on boot, put it in /etc/init.d/rc.local (if there is no
rc.local,
create one) and then do
chmod 700 /etc/init.d/rc.local
ln -s /etc/init.d/rc.local /etc/init.d/rc3.d/S99local

change 192.168.1.2 to whatever ip you want


On Sunday 21 April 2002 03:01 pm, David List wrote:
> Is it possible to set up a NIC so that it answers to two different
> IP-addresses? I have tried to do this through YaST on a SuSE 7.3 system,
> but when I try adding another line, the device shifts to eth1 by default,
> instead of letting me choose eth0, which is necessary to get two
> IP-addresses assigned to the same NIC.
>
> Can it be done?
>
> Best regards,
> David List

--
Chad Whitten
Network/Systems Administrator
neXband Communications
cwhitten@xxxxxxxxxxx

--
To unsubscribe send e-mail to suse-linux-e-unsubscribe@xxxxxxxx
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the archives at http://lists.suse.com


< Previous Next >
Follow Ups