Date: Fri, 07 Dec 2001 23:43:43 From: "Thor Legvold" <tlegvold@hotmail.com> To: lars@odin-corporation.com Cc: net@freebsd.org Subject: Re: specifying interface to route command broken?? Message-ID: <F319yDzpDERHZWYbyu7000051be@hotmail.com>
next in thread | raw e-mail | index | archive | help
Lars wrote: > > > > Hi, > > > > I am probably screwing something up :-) > > > > netstat -rn shows: > > > > Internet: > > Destination Gateway Flags Refs Use Netif > > Expire > > 127.0.0.1 127.0.0.1 UH 4 31 lo0 > > aaa.bbb.ccc.16/28 link#5 UC 1 0 wi0 => > > > > aaa.bbb.ccc.17 aaa.bbb.ccc.27 UHS 1 0 wi0 You have no default route at startup? > > ifconfig -a shows: > > > > fxp0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 > > inet aaa.bbb.ccc.26 netmask 0xfffffff0 broadcast 216.233.173.31 > > ether 08:00:46:05:95:32 > > media: autoselect (10baseT/UTP) status: active > > supported media: autoselect 100baseTX <full-duplex> 100baseTX > > 10baseT/UTP <full-duplex> 10baseT/UTP 100baseTX <hw-loopback> > > lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500 > > lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 > > inet 127.0.0.1 netmask 0xff000000 > > ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500 > > wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 > > inet aaa.bbb.ccc.27 netmask 0xfffffff0 broadcast 216.233.173.31 > > ether 00:02:2d:3a:4c:fd > > > > I am trying to add a default route to go to aaa.bbb.ccc.17 via the wi0 > > interface, but it appears that since the fxp0 interface was configured My experience is that if you want to add a new/different default route, you need to delete the existing one first. > > first (even though it is down at the moment) that the route always ends > > up going through it! Why not specify the interface on the route command line, then? > > I tried: > > > > route add -ifa aaa.bbb.ccc.27 default aaa.bbb.ccc.17 > > > > but the default route still showed up as going through the fxp0 > > interface. Anyone see what I might be doing wrong with the route command > > here, or is it broken? This is on current as of 05/01/01.... I'm running 4.4-Stable, and as I recall (I'm on another host at the moment) the route command accepts an option to specify the interface (wi0 in your case). Have you tried "# man route"...? > > Lars Regards, Thor -- who also has a default route via a wi0 iface... :-) _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F319yDzpDERHZWYbyu7000051be>