From owner-freebsd-stable@FreeBSD.ORG Mon Sep 4 09:42:41 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 8686416A500 for ; Mon, 4 Sep 2006 09:42:41 +0000 (UTC) (envelope-from lihong.chen@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1AAD943D5A for ; Mon, 4 Sep 2006 09:42:41 +0000 (GMT) (envelope-from lihong.chen@gmail.com) Received: by py-out-1112.google.com with SMTP id o67so2830511pye for ; Mon, 04 Sep 2006 02:42:40 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding:sender; b=DUS/pnMrTC2ZlmGHHB1ZyJUemuLseuCToF1LbKsc+UFjyvK9h4n6gKWj+mFlLcYL0Cm7K7yDZ8G403z3uCSR3v8PRiqRNMoO0mdDL2sHEp8yIvlyFMgMJpL8C45WA14hZDu/ZUh6dB/lKuVuuVstIAjOoAeD3VkVVvxnRa8wY1s= Received: by 10.65.114.11 with SMTP id r11mr5189504qbm; Mon, 04 Sep 2006 02:42:40 -0700 (PDT) Received: from ?10.8.0.205? ( [61.221.58.28]) by mx.gmail.com with ESMTP id 14sm2412406nzp.2006.09.04.02.42.38; Mon, 04 Sep 2006 02:42:40 -0700 (PDT) From: "Eric L. Chen" To: freebsd-stable@freebsd.org Content-Type: text/plain Date: Mon, 04 Sep 2006 17:42:34 +0800 Message-Id: <1157362954.1449.16.camel@lihong-nb.local> Mime-Version: 1.0 X-Mailer: Evolution 2.7.92 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Sender: "Eric L. Chen" Subject: Routing metric in DHCP. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Sep 2006 09:42:41 -0000 Hi Does any one knows how to set routing metric in DHCP interface? My laptop has one ethernet and one wireless. Both of them are not always connected. In office, ethernet and wireless both connected. Or only wireless connected if I moved to meeting room. In home, only wireless is connected. When both ethernet and wireless are connected, the default gateway changes its Netif frequently. Both ath0 and bfe0 run DHCP client. Can I add routing metric in DHCP interface? My Settings: ~> cat /etc/rc.conf ifconfig_bfe0="DHCP" ifconfig_ath0="wme burst WPA DHCP" ... ~> netstat -rn -f inet Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 10.8.0.254 UGS 0 95112 ath0 ... ===== Later ===== ~> netstat -rn -f inet Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 10.8.0.254 UGS 0 95112 bfe0 ... /Eric