Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wpa_supplicant starts on all interfaces
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
matej
n00b
n00b


Joined: 10 Feb 2005
Posts: 7
Location: Slovenia

PostPosted: Tue Nov 15, 2005 4:17 pm    Post subject: wpa_supplicant starts on all interfaces Reply with quote

I have two wired interfaces on my machine: eth0 and eth1
I'm using wpa_supplicant on eth0 for 802.1x authentication which is required on our network. Starting /etc/init.d/net.eth0 works as expected.

I'd like to use eth1 to connect to my laptop with a static manually configured address. However when starting /etc/init.d/net.eth1 wpa_supplicant also starts on this interface:

Code:

# /etc/init.d/net.eth1 start
 * Starting eth1
 *   Starting wpa_supplicant on eth1 ...
 *   wpa_supplicant_eth1 does not define a driver
ioctl[SIOCSIWPMKSA]: Invalid argument
ioctl[SIOCSIWMODE]: Invalid argument
Could not configure driver to use managed mode
ioctl[SIOCGIWRANGE]: Invalid argument
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Invalid argument
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Invalid argument
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Invalid argument
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Invalid argument        [ ok ]
 *     timed out                                          [ !! ]



So how can I disable wpa_supplicant on eth1 but keep it on eth0?

Here is my /etc/conf.d/net
Code:

modules=( "wpa_supplicant" )
wpa_supplicant_eth0="-Dwired"
config_eth0=( "dhcp" )
dhcpcd_eth0="-h matej-411"
dhcp_eth0="release"

config_eth1="10.11.22.1/24"


and /etc/wpa_supplicant.conf
Code:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=0
fast_reauth=1
network={
        key_mgmt=IEEE8021X
        eapol_flags=0
        eap=TTLS
        anonymous_identity="anonymous@sd.uni-lj.si"
        ca_cert="/etc/ssl/stud-dom.pem"
        phase2="auth=PAP"
        identity="*********@sd.uni-lj.si"
        password="*********"
}
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Nov 15, 2005 4:35 pm    Post subject: Reply with quote

Is eth1 a wireless or wired interface?
What version of baselayout are you using?
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
matej
n00b
n00b


Joined: 10 Feb 2005
Posts: 7
Location: Slovenia

PostPosted: Tue Nov 15, 2005 4:43 pm    Post subject: Reply with quote

Both eth0 and eth1 are wired interfaces.

Baselayout is version 1.11.13-r1

Also I should note that I had to tweak /lib/rcscripts/net.modules.d/wpa_supplicant a bit to get it working with wired interfaces:


Code:

# diff /lib/rcscripts/net.modules.d/wpa_supplicant lib/rcscripts/net.modules.d/wpa_supplicant
67,68c67
< einfo "Will not check for wireless extensinos"
< #     grep -q "${1}: " /proc/net/wireless
---
>       grep -q "${1}: " /proc/net/wireless
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Nov 15, 2005 5:42 pm    Post subject: Reply with quote

Heh - that explains that then ;)

Try baselayout-1.12.0_pre10-r1 as it has support for wpa_supplicant working on wired interfaces
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
matej
n00b
n00b


Joined: 10 Feb 2005
Posts: 7
Location: Slovenia

PostPosted: Tue Nov 15, 2005 6:09 pm    Post subject: Reply with quote

Ah, that did it. Awesome. :D

Thank you very much UberLord.
Back to top
View user's profile Send private message
pholthau
Guru
Guru


Joined: 27 Nov 2005
Posts: 361
Location: Bielefeld, Germany

PostPosted: Thu Dec 15, 2005 8:18 pm    Post subject: Reply with quote

thanks, it solved my problem, too!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum