Date: Fri, 7 Jun 2002 20:06:06 -0300 (ART) From: Fernando Gleiser <fgleiser@cactus.fi.uba.ar> To: "Jack L. Stone" <jackstone@sage-one.net> Cc: <freebsd-questions@FreeBSD.ORG> Subject: Re: Adding Interface alias on the fly Message-ID: <20020607200028.T82269-100000@localhost> In-Reply-To: <3.0.5.32.20020607172302.00fc2288@mail.sage-one.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 7 Jun 2002, Jack L. Stone wrote: > > > >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. > OK. that's what you need to do: ifconfig <ifname> alias <addr> netmask <mask> and that's it. in your case, if you want to add that alias (the alias0 from rc.conf) you just say: ifconfig rl1 alias 65.71.135.139 netmask 255.255.255.255 If you want to delete an alias you say ifconfig <ifname> delete <addr> Hope this helps. You don't need to run netstart again. Fer > 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?20020607200028.T82269-100000>