22 Apr
2002
22 Apr
'02
13:36
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