From owner-freebsd-questions Fri Jun 7 15:23:37 2002 Delivered-To: freebsd-questions@freebsd.org Received: from sage-one.net (adsl-65-71-135-137.dsl.crchtx.swbell.net [65.71.135.137]) by hub.freebsd.org (Postfix) with ESMTP id 3079B37B404 for ; Fri, 7 Jun 2002 15:23:14 -0700 (PDT) Received: from sagea (sagea [192.168.0.3]) by sage-one.net (8.11.6/8.11.6) with SMTP id g57MN3852848; Fri, 7 Jun 2002 17:23:04 -0500 (CDT) (envelope-from jackstone@sage-one.net) Message-Id: <3.0.5.32.20020607172302.00fc2288@mail.sage-one.net> X-Sender: jackstone@mail.sage-one.net X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Fri, 07 Jun 2002 17:23:02 -0500 To: Fernando Gleiser From: "Jack L. Stone" Subject: Re: Adding Interface alias on the fly Cc: In-Reply-To: <20020607185901.O82269-100000@localhost> References: <3.0.5.32.20020607161614.00fc2288@mail.sage-one.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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