From owner-freebsd-current@FreeBSD.ORG Thu Sep 11 13:19:50 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6281816A4BF for ; Thu, 11 Sep 2003 13:19:50 -0700 (PDT) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2815443FE1 for ; Thu, 11 Sep 2003 13:19:48 -0700 (PDT) (envelope-from freebsd-current@m.gmane.org) Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19xXun-0003Co-00 for ; Thu, 11 Sep 2003 22:19:41 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-current@freebsd.org Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19xXum-0003Cg-00 for ; Thu, 11 Sep 2003 22:19:40 +0200 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 19xXur-0002Bi-00 for ; Thu, 11 Sep 2003 22:19:45 +0200 From: Jesse Guardiani Date: Thu, 11 Sep 2003 16:19:42 -0400 Organization: WingNET Lines: 99 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@sea.gmane.org User-Agent: KNode/0.7.2 X-Mail-Copies-To: never Sender: news Subject: route problems in 5.1-RELEASE X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: jesse@wingnet.net List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Sep 2003 20:19:50 -0000 Howdy list, I'm having major problems with the route command today. My machine is an IBM Thinkpad A30p laptop, running FreeBSD 5.1-RELEASE. I have two interfaces. wi0 and fxp0 Normally, if I want to swap from wi0 to fxp0, all I have to do is: killall dhclient ifconfig wi0 down ifconfig fxp0 up dhclient fxp0 And I'm done. However, ocassionally this backfires, like it did today: My fxp0 interface is up: fxp0: flags=8843 mtu 1500 inet6 fe80::2d0:59ff:feaa:70ec%fxp0 prefixlen 64 scopeid 0x3 inet 192.168.1.101 netmask 0xffffff00 broadcast 192.168.1.255 ether 00:d0:59:aa:70:ec media: Ethernet autoselect (100baseTX ) status: active And my wi0 interface is down: wi0: flags=8802 mtu 1500 inet6 fe80::220:e0ff:fe8a:9061%wi0 prefixlen 64 scopeid 0x2 inet 192.168.1.47 netmask 0xffffff00 broadcast 192.168.1.255 ether 00:20:e0:8a:90:61 media: IEEE 802.11 Wireless Ethernet autoselect (none) ssid WingNET 1:WingNET stationname "FreeBSD WaveLAN/IEEE node" channel -1 authmode OPEN powersavemode OFF powersavesleep 100 wepmode MIXED weptxkey 1 wepkey 1:128-bit But routes to the internet are still wanting to use the wi0 interface for some reason: [16:06]jesse@trevarthan:[~]# route get 206.30.215.2 route to: 206.30.215.2 destination: 206.30.215.2 gateway: 192.168.1.1 interface: wi0 flags: recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 0 0 0 0 0 0 1500 3584 [16:07]jesse@trevarthan:[~]# I can change the interface on a per-route basis, but not globally: [16:10]jesse@trevarthan:[~]# route change 206.30.215.2 -iface fxp0 change host 206.30.215.2: gateway fxp0 [16:11]jesse@trevarthan:[~]# route get 206.30.215.2 route to: 206.30.215.2 destination: 206.30.215.2 gateway: fxp0:0.d0.59.aa.70.ec interface: fxp0 flags: recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 0 0 0 0 0 0 1500 3582 [16:11]jesse@trevarthan:[~]# route get 206.30.215.4 route to: 206.30.215.4 destination: default mask: default gateway: 192.168.1.1 interface: wi0 flags: recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 0 0 0 0 0 0 1500 0 [16:11]jesse@trevarthan:[~]# Some funky combination of: ifconfig wi0 -alias And restarting dhclient fixed the problem, but it took forever. 1.) Is this a bug? 2.) If so, has it already been fixed in -CURRENT? Thanks! -- Jesse Guardiani, Systems Administrator WingNET Internet Services, P.O. Box 2605 // Cleveland, TN 37320-2605 423-559-LINK (v) 423-559-5145 (f) http://www.wingnet.net