No subject
bogus at does.not.exist.com
bogus at does.not.exist.com
Sun Jun 2 21:10:54 PDT 2013
network={
ssid="Freebox-Atelier"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
id_str="atelier"
}
# ifup wlan0
#
??? Where did the 'up' echoes go ???
# ip addr show wlan0
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen
1000
link/ether e8:4e:06:0f:49:36 brd ff:ff:ff:ff:ff:ff
inet 192.168.3.128/24 brd 192.168.3.255 scope global wlan0
valid_lft forever preferred_lft forever
inet6 fe80::ea4e:6ff:fe0f:4936/64 scope link
valid_lft forever preferred_lft forever
# ifdown wlan0
atelier pre-down
atelier going down
RTNETLINK answers: No such process
atelier post-down
===================================================
So, am I doing something obviously wrong?
Why do the 'up' echoes not show up?
What's the story about the RTNETLINK error?
Any more information I can supply?
Any pointers would be much appreciated.
Gus
--089e011608ae675e0804f183dbe7
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div><div><div><div><div><div><div><div><div><div><div>Hi,=
Guys.<br><br></div>I'm new to this list, as well as to wpa_supplicant.=
Please, bear with me.<br><br><br></div>My environment:<br></div>Raspbian o=
n a Raspberry Pi.<br>
</div># cat /etc/debian_version <br>7.2<br># wpa_supplicant -v<br>wpa_suppl=
icant v1.0<br><br><br></div>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>My problem:<br><br></div>Using wpa_sup=
plicant I can't get the 'pre-up', 'up' and 'post-up=
' routines to execute.<br>
<br>The 'pre-down', 'down' and 'post-down' routines=
do get executed.<br>Only the 'up' routines fail to execute.<br><br=
><br></div>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D<br>Some examples:<br>
<br></div>This *will work*, so that both the 'up' and the 'down=
' routines will be executed. It will of course *fail* to correctly conf=
igure the interface, since wpa_supplicant isn't there to provide any cr=
edentials.<br>
<br></div>From /etc/network/interfaces :<br>iface wlan0 inet manual<br>=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 address=C2=A0=C2=A0 192.168.3.128<br>=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0 netmask=C2=A0=C2=A0 255.255.255.0<br>=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0 gateway=C2=A0=C2=A0 192.168.3.254<br>=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0 broadcast 192.168.3.255<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pre-up=
=C2=A0=C2=A0=C2=A0 echo "atelier pre-up" || true<br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 up=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
echo "atelier up" || true<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 post=
-up=C2=A0=C2=A0 echo "atelier post-up" || true<br>=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0 pre-down=C2=A0 echo "atelier pre-down" || true<br=
>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 down=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 echo &qu=
ot;atelier going down" || true<br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 post-down echo "atelier post-down"=
|| true<br><br># ifup wlan0<br>atelier pre-up<br>atelier up<br>atelier pos=
t-up<br><br># ip addr show wlan0<br>3: wlan0: <NO-CARRIER,BROADCAST,MULT=
ICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000<br>
=C2=A0=C2=A0=C2=A0 link/ether e8:4e:06:0f:49:36 brd ff:ff:ff:ff:ff:ff<br><b=
r># ifdown wlan0<br>atelier pre-down<br>atelier going down<br>RTNETLINK ans=
wers: No such process<br>atelier post-down<br><br></div><div>??? I wonder a=
bout the RTNETLINK stuff, but at least it *works*. ???<br>
</div><div><br>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D<br></div>Now, let's change so that wpa_supplicant is=
involved:<br><br>This *will* correctly configure the interface, since wpa_=
supplicant can provide the credentials.<br>
</div><div>But it will *not* execute the 'up' routines.<br></div><d=
iv><br><br>From /etc/network/interfaces :<br>iface wlan0 inet manual<br>=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 wpa-roam /etc/wpa_supplicant/wpa-roam.conf<br><=
br>iface atelier inet static<br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 address=C2=A0=C2=A0 192.168.3.128<br>=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0 netmask=C2=A0=C2=A0 255.255.255.0<br>=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0 gateway=C2=A0=C2=A0 192.168.3.254<br>=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0 broadcast 192.168.3.255<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pre-=
up=C2=A0=C2=A0=C2=A0 echo "atelier pre-up" || true<br>=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0 up=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 echo &qu=
ot;atelier up" || true<br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 post-up=C2=A0=C2=A0 echo "atelier post-=
up" || true<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pre-down=C2=A0 echo &quo=
t;atelier pre-down" || true<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 down=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 echo "atelier going down" || true<br>=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 post-down echo "atelier post-down"=
|| true<br>
<br></div>From /etc/wpa_supplicant/wpa-roam.conf=C2=A0 (psk edited) :<br>ne=
twork=3D{<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ssid=3D"Freebo=
x-Atelier"<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 proto=3DRSN<b=
r>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 key_mgmt=3DWPA-PSK<br>=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pairwise=3DCCMP TKIP<br>=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 group=3DCCMP TKIP<br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 psk=3D"xxxxxxxxxxxxxxxxxxxx=
xxxxxxxxxxxxx"<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 id_str=3D=
"atelier"<br>}<br><br># ifup wlan0<br>#<br><div><br></div><div>??=
? Where did the 'up' echoes go ???<br><br># ip addr show wlan0<br>
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state U=
P qlen 1000<br>=C2=A0=C2=A0=C2=A0 link/ether e8:4e:06:0f:49:36 brd ff:ff:ff=
:ff:ff:ff<br>=C2=A0=C2=A0=C2=A0 inet <a href=3D"http://192.168.3.128/24">19=
2.168.3.128/24</a> brd 192.168.3.255 scope global wlan0<br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 valid_lft forever preferred_lft foreve=
r<br>=C2=A0=C2=A0=C2=A0 inet6 fe80::ea4e:6ff:fe0f:4936/64 scope link <br>=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 valid_lft forever preferred_lft foreve=
r<br><br># ifdown wlan0<br>atelier pre-down<br>atelier going down<br>RTNETL=
INK answers: No such process<br>
atelier post-down<br><br><br>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br></div><div>So, am I doing something ob=
viously wrong?<br><br></div><div>Why do the 'up' echoes not show up=
?<br><br></div><div>What's the story about the RTNETLINK error?<br>
<br></div><div>Any more information I can supply?<br></div><div><br><br></d=
iv><div>Any pointers would be much appreciated.<br></div><div>Gus<br></div>=
<div><br><br></div></div>
--089e011608ae675e0804f183dbe7--
More information about the Hostap
mailing list