Gentoo Archives: gentoo-user

From: Mark Knecht <markknecht@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] WPA2 connection configuration?
Date: Sun, 25 Sep 2011 23:34:25
Message-Id: CAK2H+edL8jWh1Vo4hYRB0nPcGAB9FVr+ZVAkHDDGUHCqEJ-WBg@mail.gmail.com
In Reply to: Re: [gentoo-user] WPA2 connection configuration? by Florian Philipp
1 On Sun, Sep 25, 2011 at 1:59 PM, Florian Philipp <lists@×××××××××××.net> wrote:
2 > Am 25.09.2011 22:38, schrieb Mark Knecht:
3 >> Hi,
4 >>    Can anyone supply an example of correctly setting up wpa_supplicant
5 >> to connect to a WEP2 home network?
6 >>
7 >>    If got the modules installed and the hardware telling me it sees
8 >> all sorts of ESSIDs but so far I cannot figure out how to give it the
9 >> password correctly. I've been trying to follow this page but it
10 >> completely eludes me.
11 >>
12 >> http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=4
13 >>
14 >> Thanks in advance,
15 >> Mark
16 >>
17 >
18 > This should be sufficient:
19 > network={
20 >        ssid="network_ssid"
21 >        key_mgmt=WPA-PSK
22 >        psk="password"
23 > }
24 >
25 > Hope this helps,
26 > Florian Philipp
27
28 Thanks Florian. I really appreciate the help. It was enough to get
29 things working after I realized I have a mind block about routes. This
30 email is coming to you over wireless so things are alright now, but I
31 have some confusion about switching between networks:
32
33 Looking here:
34
35 slinky ~ # cat /etc/conf.d/net
36 config_eth0="192.168.1.55 netmask 255.255.255.0"
37 routes_eth0="default via 192.168.1.1"
38
39 modules="wpa_supplicant"
40
41 config_wlan0="192.168.1.100 netmask 255.255.255.0"
42 routes_wlan0="default via 192.168.1.1"
43
44 slinky ~ #
45
46 I specified routes for both eth0 and wlan0 thinking Gentoo would use
47 the one thats up, but it doesn't. It seems that even when I shut off
48 eth0 it still tries to use the eth0 route. To get his working I had to
49 comment out the eth0 route completely.
50
51 So, is there a way to point the default to 192.168.1.1 and have the
52 network use the one interface that's up?
53
54 Also, is there a way to have the system use wireless anytime he wired
55 connector isn't hooked up, of do I manually have to switch to root and
56 then do
57
58 /etc/init.d/net.eth0 stop
59 /etc/init.d/net.wlan start
60
61 to switch over?
62
63 Anyway, it's working so that's a big step forward.
64
65 THANKS!!!
66
67 Cheers,
68 Mark