Thanks to Brian, Raf, Camaleón, and J Bakshi for helping me out.
I have gotten wpa_supplicant and ifplugd mostly working, with wpa_cli and
wpa-roam.conf. My configuration seems to work in connecting me wirelessly
to several routers in different locations that I use and to free wifi
hotspots (I think).
However, I still haven't figured out how to get ifplugd to work in every
instance. Here's the problem:
If I boot the laptop with the Ethernet cable plugged in (eth0), that
connection works fine. If I then unplug the Ethernet cable I can not
connect to the outside world via the wireless (eth1). Yet I can ping
machines inside my own LAN:
root@eve:~# wpa_cli status
Selected interface 'eth1'
bssid=00:22:3f:7a:06:b6
ssid=gojo1985
id=1
id_str=sos_shop
mode=station
pairwise_cipher=CCMP
group_cipher=CCMP
key_mgmt=WPA2-PSK
wpa_state=COMPLETED
ip_address=192.168.1.6
root@eve:~# ping google.com -c1
connect: Network is unreachable
root@eve:~# ping 192.168.1.9 -c1 -I eth1 -r
PING 192.168.1.9 (192.168.1.9) from 192.168.1.6 eth1: 56(84) bytes of data.
64 bytes from 192.168.1.9: icmp_req=1 ttl=64 time=8.44 ms
However, if I then plug the Ethernet cable back in, wait a few moments,
then unplug it a second time, now the eth1 can ping outside my LAN.
After this, ifplugd works as intended- Ethernet plugged in eth0 works,
unplugged eth1 works. But it needs that second round of unplugging to get
eth1 to ping the outside world. Any ideas?
Here's my ifplugd:
INTERFACES=""
HOTPLUG_INTERFACES="eth0"
ARGS="-q -f -u0 -d10 -w -I"
SUSPEND_ACTION="stop"
Here's my wpa-roam.conf:
update_config=1
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
network={
ssid="dlink4152"
scan_ssid=1
psk=48735b7603579d3d1a895c87f11948087f044799b8b1700daf0316e850a72a19
priority=15
id_str="garyhome"
}
network={
ssid="gojo1985"
scan_ssid=1
psk=e0609ee9b0f20c1393f815c9c11759f41ca4b3f078146e842ad48ab692097f5d
priority=15
id_str="sos_shop"
}
network={
ssid=""
scan_ssid=1
key_mgmt=NONE
auth_alg=OPEN
priority=1
disabled=1 ## enable this if you want DON'T want automatically connected
to open networks
id_str="stalk"
}
I've attached a file with 350 lines of the syslog, with line numbers and
notes, if case that's useful.
Thanks,
KeithAttachment:
syslog_numbers
Description: Binary data