Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

routing weirdness

0 views
Skip to first unread message

Josef El-Rayes

unread,
Apr 8, 2004, 7:21:44 AM4/8/04
to freebsd-...@freebsd.org
hi!

i have a notebook connected to a wlan router, which is in turn connected
to my gateway to internet

notebook <-> wlan <-> gw <-> ... internet ...

when i (192.168.1.4) am connected via cable (dc0) to the wlan router(192.168.1.1)
everything works fine.

but then, when i want to switch to wlan (ath0), i shut down the dc0 interface
(ifconfig dc0 down), enable the wlan card, (ifconfig ath0 inet 192.168.1.3 ssid daemon &
ifconfig ath0 up).
then i flush my routing table (route flush) and add default gateway (route add default 192.168.1.1).

now i can ping my wlan router (192.168.1.1) but i do not get outside anymore (192.168.0.1)
for example, because, as route get 192.168.0.1 reveals, the system still uses
dc0 for getting outside.

how can i force the system to do not use the deactivated device anymore?

-josef

--
Josef El-Rayes (__)
Email: jo...@daemon.li \\\'',)
Web: http://daemon.li/ \/ \ ^
FreeBSD: jo...@FreeBSD.org .\._/_)

0 new messages