routing weirdness
Josef El-Rayes
josef at FreeBSD.org
Thu Apr 8 04:21:31 PDT 2004
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: josef at daemon.li \\\'',)
Web: http://daemon.li/ \/ \ ^
FreeBSD: josef at FreeBSD.org .\._/_)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 479 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040408/f4c2d3cb/attachment.bin
More information about the freebsd-questions
mailing list