Date: Fri, 24 Mar 2006 12:25:32 -0800 From: "Derrick Ryalls" <ryallsd@gmail.com> To: freebsd-mobile@freebsd.org Subject: Wireless/Wired LAN autoswitch Message-ID: <d5eb95fc0603241225j3d95fb36ra59a182341ba7206@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Greetings mobile subscribers, I have been playing around with trying to get wireless/wired switching working on my 6.1 PRERELEASE laptop, but haven't had much luck. I can control the wired connection via ifconfig and the wireless via wpa_supplicant, but I am having a difficult time getting the routing adjusted when I plug/unlpug the network cable. I am new to wireless in FreeBSD and don't have a lot of experience with using ifconfig/route in general, so maybe I am doing something brain dead. I tried the following workflow: killall dhcp route flush (exec start wpa_supplicant script) route add 192.168.2.1 (for wireless) But that doesn't seem to work. I have had the best luck when I do ifconfig bfe0 down to force not using the wired connection. I have also tried putting the script in /etc/devd.conf but I it didn't work as I expected, so I doubt I had that configured correctly. I guess my question comes in 2 parts. a) Besides using cron and scraping ifconfig, how do I detect the plug/unplug events and b) how do I reliable change the routing table to point to the correct gateway? Thanks for any pointers.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d5eb95fc0603241225j3d95fb36ra59a182341ba7206>