Mailinglist Archive: opensuse (3378 mails)

< Previous Next >
Re: [SLE] Two IP-addresses, one NIC
  • From: Anders Johansson <andjoh@xxxxxxxxxxxxxxxxxxxxx>
  • Date: Mon, 22 Apr 2002 15:36:45 +0200
  • Message-id: <200204221536.45491.andjoh@xxxxxxxxxxxxxxxxxxxxx>
On Monday 22 April 2002 15:20, Chad Whitten wrote:
> 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

Nope it won't. On SuSE 8.0 for instance I think it will result in a message to
the effect that ifconfig isn't used anymore. Look at iproute2. It's the new
standard.

This is just as an aside, though. It should work on 7.3.

> 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

That's one way to do it. Marginally simpler would be to edit /etc/rc.config
and change NETDEV_1 to eth0:0 and IFCONFIG_1 to the proper parameters.

Anders

< Previous Next >
Follow Ups