ip alias after reboot

Mike Burger mburger at bubbanfriends.org
Fri Oct 1 22:55:24 UTC 2004


On Fri, 1 Oct 2004, marvin wrote:

> 
> Hello.
> 
> RedHat 3.0AS
> 
> I have added an alias to lo :-
> 
> ifconfig lo:0 127.53.01 netmask 255.255.255.0
> 
> It works fine, but how do I make sure it is still there and 'up' after a
> reboot ?

You have a couple of options.

The easiest, actually, so that you don't have to set subinterfaces, is to 
use the ip addr command:

ip addr add 172.53.0.1 dev eth0

Just put it into your /etc/rc.local file.

The other option is to go to /etc/sysconfig/network-scripts and create a 
file called ifcfg-lo:0, with the appropriate options.

I'd go with the first option, myself.

-- 
Mike Burger
http://www.bubbanfriends.org

Visit the Dog Pound II BBS
telnet://dogpound2.citadel.org or http://dogpound2.citadel.org

To be notified of updates to the web site, visit 
http://www.bubbanfriends.org/mailman/listinfo/site-update, or send a 
message to:

site-update-request at bubbanfriends.org

with a message of: 

subscribe




More information about the redhat-list mailing list