Re: How to remove multiple IP's off NIC

[ Available lists | Index of freebsd-questions | Month of Jun 2002 | Week of 18 Jun 2002 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Fernando Gleiser <fgleiser@cactus.fi.uba.ar>
Date
18 Jun 2002 08:48:19
Subject
Re: How to remove multiple IP's off NIC
Message-ID
20020618123827.O66694-100000@localhost

In reply to
Replies

[ Hide this part ]
On Tue, 18 Jun 2002 lists@brenius.com wrote:

> How would this compare to editing the rc.conf file? I just got a suggestion to do
> this, but I am not sure of the differences.

In fact, you need to do both. If you edit rc.conf, you need to reboot to
activate the changes. with my method, you don't need to reboot but you
need to edit rc.conf anyway so the aliases aren't loaded the next time
you boot the machine.

I always try to avoid rebooting. This isn't windows =0)
And I try to teach others ways to admin a host without rebooting for
every change they make.

Fer

>
> Thanks.
>
> ----- Original Message -----
> From: "Fernando Gleiser" <fgleiser@cactus.fi.uba.ar>
> To: <lists@brenius.com>
> Cc: <questions@FreeBSD.ORG>
> Sent: Tuesday, June 18, 2002 11:09 AM
> Subject: Re: How to remove multiple IP's off NIC
>
>
> > On Tue, 18 Jun 2002 lists@brenius.com wrote:
> >
> > > FreeBSD 4.3R, w/ dozens of IP's that need to be removed from the NIC.
> > >
> > > Easiest way to go about doing this?
> >
> > make a list with the addresses which you need to remove and save it to a
> > file. Then say the magic words:
> >
> > for addr in `cat file`; do ifconfig xl0 delete $addr ; done
> >
> > change xl0 to the name of your interface.
> >
> >
> > Fer
> >
> > >
> > > Thank you
>
>


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



Elapsed time: 1.421 seconds