Date: Thu, 8 Apr 2004 13:21:44 +0200 From: Josef El-Rayes <josef@FreeBSD.org> To: freebsd-questions@freebsd.org Subject: routing weirdness Message-ID: <20040408112144.GA323@jenny.daemon.li>
index | next in thread | raw e-mail
[-- Attachment #1 --] 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@daemon.li \\\'',) Web: http://daemon.li/ \/ \ ^ FreeBSD: josef@FreeBSD.org .\._/_) [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iQEVAwUBQHU1yFnFItmnnbU8AQKXBAgAgVFPQpJ9sWeB7PH/8sTVjPEjid+e24yu o34xs+Yy7YY6+S0zOBKdWhgsnfthxldsBrJx5p5EEbBrdZ1HLTBCPclnnfjfO5fm QxzZCMMuSarM/Rj0+SJrAmDedPkGKZjm/fMsgu9bRGhJK3Bdt0PbGlD1mtx+uYxD EATVK0L0L/EQskAtrQBoKpGLebYyptd2R9F3+cXebofh5E/cwPl0U7c6wDQ3DzC/ UoAP7552D4VdWoCzKNQcBem3Os9DFb73TqeZ9W5wa1w/RRn0UvAwPlC6t1L3rv1V uRcAJO1/I7dxkpBzw/ADDx1Zp0U8G60RsNXoaw31LYj4C0RDTIRnjA== =1iom -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040408112144.GA323>
