Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jun 2006 17:45:18 +0200 (CEST)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-stable@FreeBSD.ORG
Subject:   Re: two interfaces
Message-ID:  <200606131545.k5DFjIGT043055@lurza.secnetix.de>
In-Reply-To: <20060613144750.GA834@faust.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Zoran Kolic <zkolic@sbb.co.yu> wrote:
 > I use ethernet connection and don't want
 > to tear off the cable every time to make
 > dialup on serial modem (or reboot).
 > I made those steps:
 > # ifconfig nfe0 down
 > # route flush
 > $ pppd
 > Ppp0 goes up, default is made and nothing
 > else. The line is dead for traffic. There
 > is something I make wrong, but don't know
 > what. With fresh reboot, it works fine.
 > Should I add more to ifconfig command?
 > "Delete" or "destroy" go to mind.

That's correct.  A simle "down" will only disable the
interface, but it does not remove the IP address, the
routing entry for that address, any ARP entries
associated with it etc.  Otherwise it would not be
easily possible to reset an interface by a "down"-"up"
sequence.

To undo all effects of the interface configuration, you
have to "delete" all IP addresses from it.  In fact, I
think you don't have to set it "down" at all.  "delete"
is the important thing ("down" shouldn't hurt, though).

("destroy" is not necessary in this case.  It's useful
to remove dynamically created interfaces entirely, e.g.
when using vlan or tunnel interfaces.)

BTW, your question is off-topic here, it rather belongs
to the -questions list.

Best regards
   Oliver

-- 
Oliver Fromme,  secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

"Documentation is like sex; when it's good, it's very, very good,
and when it's bad, it's better than nothing."
        -- Dick Brandon



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