From owner-freebsd-stable@FreeBSD.ORG Tue Jun 13 15:45:27 2006 Return-Path: X-Original-To: freebsd-stable@FreeBSD.ORG Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3883A16A418 for ; Tue, 13 Jun 2006 15:45:27 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 832ED43D49 for ; Tue, 13 Jun 2006 15:45:26 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (jsbapq@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k5DFjJFW043056 for ; Tue, 13 Jun 2006 17:45:24 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k5DFjIGT043055; Tue, 13 Jun 2006 17:45:18 +0200 (CEST) (envelope-from olli) Date: Tue, 13 Jun 2006 17:45:18 +0200 (CEST) Message-Id: <200606131545.k5DFjIGT043055@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG In-Reply-To: <20060613144750.GA834@faust.net> X-Newsgroups: list.freebsd-stable User-Agent: tin/1.8.0-20051224 ("Ronay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Tue, 13 Jun 2006 17:45:24 +0200 (CEST) Cc: Subject: Re: two interfaces X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-stable@FreeBSD.ORG List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 15:45:27 -0000 Zoran Kolic 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