Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Jun 2002 17:23:02 -0500
From:      "Jack L. Stone" <jackstone@sage-one.net>
To:        Fernando Gleiser <fgleiser@cactus.fi.uba.ar>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Adding Interface alias on the fly
Message-ID:  <3.0.5.32.20020607172302.00fc2288@mail.sage-one.net>
In-Reply-To: <20020607185901.O82269-100000@localhost>
References:  <3.0.5.32.20020607161614.00fc2288@mail.sage-one.net>

next in thread | previous in thread | raw e-mail | index | archive | help
At 07:00 PM 6.7.2002 -0300, Fernando Gleiser wrote:
>On Fri, 7 Jun 2002, Jack L. Stone wrote:
>
>> I need to add an alias to the public interface "on the fly". This is what
>> the entry would look like in the rc.conf:
>> ifconfig_rl1_alias1="inet 65.71.135.139 netmask 255.255.255.255"
>>
>> ...and, this is what # ifconfig rl1 would then show when above line is
loaded:
>> inet 65.71.135.138 netmask 0xffffffff broadcast 65.71.135.139
>>
>> What is the correct command syntax to add the above alias on the fly...??
>
>man ifconfig
>
>and look at the 'alias' flag.

>			Fer

Fer: Thanks, but I have read the ifconfig man pages and am familiar with
*some* of its uses for adding/removing addresses, but, it is rather crytic
to me and I am unsure about add another alias without it removing or
replacing another alias (alias0 for instance) I want left in.

Arie's answer just a fe minutes ago sounds like a good approach... do you
agree with this which seems more exact for the configuration that would be
loaded on a reboot - without rebooting of course which is the objective
here... plus, not messing up:

"....After adding the configuration on /etc/rc.conf, you can simply execute
/etc/netstart and that will reload your network configuration..."

Thanks, to Arie too....

Best regards,
Jack L. Stone,
Administrator

SageOne Net
http://www.sage-one.net
jackstone@sage-one.net

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.20020607172302.00fc2288>