View previous topic :: View next topic |
Author |
Message |
matej n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 10 Feb 2005 Posts: 7 Location: Slovenia
|
Posted: Tue Nov 15, 2005 4:17 pm Post subject: wpa_supplicant starts on all interfaces |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
UberLord Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/16007251014200867ea775c.gif)
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
matej n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 10 Feb 2005 Posts: 7 Location: Slovenia
|
Posted: Tue Nov 15, 2005 4:43 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
UberLord Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/16007251014200867ea775c.gif)
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
matej n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 10 Feb 2005 Posts: 7 Location: Slovenia
|
Posted: Tue Nov 15, 2005 6:09 pm Post subject: |
|
|
Ah, that did it. Awesome.
Thank you very much UberLord. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pholthau Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/StarCraft/starcraft_protoss_corsair.gif)
Joined: 27 Nov 2005 Posts: 361 Location: Bielefeld, Germany
|
Posted: Thu Dec 15, 2005 8:18 pm Post subject: |
|
|
thanks, it solved my problem, too! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|