You are not logged in.

#1 2008-03-27 14:42:33

vennen
Member
From: Russian Federation
Registered: 2008-03-27
Posts: 72

wpa_supplicant in wired network [SOLVED AGAIN]

Hi to all!

Here is a problem with using wpa_supplicant in wired network. My internet provider uses IEEE8021X EAP MD5 for authentication. Recently I used wpa_supplicant with another Linux and it worked. Here is my wpa_supplicant.conf:

 
ap_scan=0
network={
              key_mgmt=IEEE8021X
              eap=MD5
              identity="login"
              password="password"
              }

I used wired driver and all was working. Now in Arch I cant get internet connection. What I have to do to fix it?

Here is the problem solvation in Ubuntu. But in Arch there is no such directory /etc/network/ and file 'interfaces' in it. And I suppose that in Arch it must be different. Who did face same problem?

Thanks.

PROBLEM IS SOLVED. Internet connection works. I cant show files now, when I setup something with browser I'll show how I solved this problem. Now I must use MS XP for posting here [

Last edited by vennen (2008-04-02 09:46:33)

Offline

#2 2008-03-29 08:59:24

vennen
Member
From: Russian Federation
Registered: 2008-03-27
Posts: 72

Re: wpa_supplicant in wired network [SOLVED AGAIN]

As I promised here is solvation.
First I changed my rc.conf:

lo="lo 127.0.0.1"
eth0="dhcp"
INTERFACES=(lo eth0)
NET_PROFILES=(default)

and added file 'default' in /etc/network-profiles with text:

INTERFACE=eth0
HOSTNAME=myhost
IFOPTS="dhcp"
USEWPA="yes"           # start wpa_supplicant with the profile
WPAOPTS="-D wired"             # use "" for normal operation or specify additional
                        # options (eg, "-D ipw")
                        # see /etc/wpa_supplicant.conf for configuration

wpa_supplicant.conf is shown hereabove.

Wired connection is started at the boot time.

Offline

#3 2008-03-29 10:47:02

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: wpa_supplicant in wired network [SOLVED AGAIN]

Glad you got it working. However, you have used the old network profiles configuration, indicating that your system is not up to date. When you update you will need to install the netcfg package and recreate your profile according to the examples in /etc/network.d/examples. The Network Profiles wiki page is also a useful resource, and there is a related thread here in the forum if you have any questions for the developer.

Offline

#4 2008-03-30 16:41:43

vennen
Member
From: Russian Federation
Registered: 2008-03-27
Posts: 72

Re: wpa_supplicant in wired network [SOLVED AGAIN]

tomk

Thank you!

I will check it out. As I see you are developer in Arch. I have many questions about, though, most problems I've resolved already by myself. I really impressed by Archlinux, before I was trying RH (5 years ago for several weeks - too complicated) and Ubuntu (september 2007 - now). I use XP also because specific programms for my work dont work in Linux even through wine.

Arch is more arduous than Ubuntu for non-experienced users but if you arent lazy it opens all the simlicity.
I really like it.

BTW, I downloaded Arch core installation CD 3 days ago. Is it out of date?

Last edited by vennen (2008-03-31 16:21:17)

Offline

#5 2008-04-01 14:43:05

vennen
Member
From: Russian Federation
Registered: 2008-03-27
Posts: 72

Re: wpa_supplicant in wired network [SOLVED AGAIN]

after pacman -Syu and installing netcfg as you said I cant get connection.

[root@myhost network.d]# netcfg2 myprofile 
:: myprofile up    [BUSY]  - DHCP IP lease attempt failed   [FAIL] 
err, eth0: timed out

here is my profile in /etc/network.d/

#
# Network Profile
#
CONNECTION="ethernet"
DESCRIPTION="MyProfile"

INTERFACE=eth0
HOSTNAME=myhost
TIMEOUT=
SECURITY="wpa-config" 
WPA_OPTS="-D wired" 
WPA_CONF="/etc/wpa_supplicant.conf"
IP="dhcp"

I had no idea about syntax in that 'profile' file. Examples doesnt fit for me. I have wired connection as listed in wpa_supplicant.conf in first post.

Can somebody explain me, which options I must put in.

Offline

#6 2008-04-01 19:41:37

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: wpa_supplicant in wired network [SOLVED AGAIN]

As I mentioned above, there's a thread about netcfg in the forum. Post your question there.

Offline

#7 2008-04-01 23:16:54

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: wpa_supplicant in wired network [SOLVED AGAIN]

Separate questions are fine, if not easier to keep track of.

WPA over ethernet will be supported in the next release, the code is in GIT now.

In the meantime....
1) Setup the profile as "wireless"
2) Run wpa_supplicant from the PRE_UP command

Offline

#8 2008-04-02 04:22:36

vennen
Member
From: Russian Federation
Registered: 2008-03-27
Posts: 72

Re: wpa_supplicant in wired network [SOLVED AGAIN]

when profile is 'wireless' netcfg says that eth0 isn't wireless interface.

wpa_supplicant from command line works pretty good but i would like to automatizate internet connection start :-/

iphitus you settle the hope in me/

WPA over ethernet will be supported in the next release, the code is in GIT now.

:-)

tomk

I read carefully thread about netcfg but looks like most problem is WPA over ethernet.

BTW guys, give me a hint about a script writing I will learn it and find out decision by myself (if my brains allow)

Last edited by vennen (2008-04-02 04:33:40)

Offline

#9 2008-04-02 09:06:13

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: wpa_supplicant in wired network [SOLVED AGAIN]

vennen wrote:

when profile is 'wireless' netcfg says that eth0 isn't wireless interface.

wpa_supplicant from command line works pretty good but i would like to automatizate internet connection start :-/

You can automate it by starting wpa_supplicant in the PRE_UP="" line of the profile.

Offline

#10 2008-04-02 09:46:00

vennen
Member
From: Russian Federation
Registered: 2008-03-27
Posts: 72

Re: wpa_supplicant in wired network [SOLVED AGAIN]

You can automate it by starting wpa_supplicant in the PRE_UP="" line of the profile.

iphitus

Thanks! Thanks! Thanks! Its workin'.

Offline

#11 2008-06-30 14:57:06

mykhal
Member
Registered: 2007-04-03
Posts: 35

Re: wpa_supplicant in wired network [SOLVED AGAIN]

Hi, I am now solving the similar problem, I ended up with the following network profile:

CONNECTION="ethernet"
DESCRIPTION="my 802.1x + DHCP connection"
INTERFACE=eth0
SCAN="No"
IP="dhcp"
TIMEOUT=10
WPA_CONF=/etc/my-wpa_supplicant.conf

PRE_UP="wpa_supplicant -Dwired -i$INTERFACE -c$WPA_CONF -B"
POST_DOWN="wpa_cli -i$INTERFACE logoff; wpa_cli terminate"

# so these will probably have no effect:
SECURITY=wpa-config
WPA_OPTS=

which is not an ideal solution. It would be nice if netcfg would has better support for wired 802.1x.

[Edit:]
I have added bug report / feature request #10787

Last edited by mykhal (2008-06-30 15:03:26)

Offline

#12 2009-02-11 19:30:57

mykhal
Member
Registered: 2007-04-03
Posts: 35

Re: wpa_supplicant in wired network [SOLVED AGAIN]

My previous configuration did not work well, often I had to run wpa_supplicant and dhcp client manually (maybe always - it's possible it never worked smile ). After slight inspection of netcfg2 code, it seems that wired 802.1x is not yet supported natively, and I also realized why my config could not work. The following network profile is now working well for me. Someone might find it helpful.

# this is /etc/network.d/my8021x
CONNECTION="ethernet"
DESCRIPTION="My 802.1x wired connection"
INTERFACE=eth0

IP="dhcp"
DHCP_TIMEOUT=10

_WPA_CONF=/etc/wpa_supplicant_my8021x.conf
_WPA_TIMEOUT=5

PRE_UP="wpa_supplicant -Dwired -i$INTERFACE -c$_WPA_CONF -B; wpa_cli logon; sleep $_WPA_TIMEOUT"
POST_DOWN="wpa_cli -i$INTERFACE logoff; wpa_cli terminate"

.. and my /etc/rc.conf:

...
DAEMONS=(... ... net-profiles ... ...)
NETWORKS=(my8021x)
...

Offline

Board footer

Powered by FluxBB