On Wed, 26 Jan 2000, Chad W. Skinner wrote:

> I have created a script to add 2 ips to interface eth0. This script simply
> contains the commands
> 
> ifconfig eth0:0 192.168.0.2 netmask 255.255.255.0
> ifconfig eth0:0 192.168.0.3 netmask 255.255.255.0
> 
> When I reboot my machine i simply run this script to add the interfaces, but
> would like the server to add them automatically. I believe I need to add
> these to rc.local, but is there a standard way of doing this so it works
> properly or reports errors. For example, what if something goes wrong and
> eth0 is not up when the above commands are issued?

The quicker way to solve your alias startup problem:

- go to /etc/sysconfig/network-scripts
- copy ifcfg-eth0 as ifcfg-eth0:0
- edit ifcfg-eth0:0 and remember to change DEVICE=eth0 to DEVICE=eth0:0,
and the IP address and netmask (if a broadcast entry is present, of course
update it too)

For linuxconf users, linuxconf does the same thing, but sometimes mess the
things up (it did it once on a system with about 30 aliases, and it was a
pain to fix them back...)

HTH,
Misa


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to