You are not logged in.
Hi ppl!
When I boot my arch system sometimes my wireless device is eth0 (view with iwconfig) and other times I boot up it is eth1 !!! It's annoying, so WICD doesn't always knows the right wireless device.
Any ideas?
ArchLinux :: Awesome WM :: dotfiles
Offline
Can you provide a little more detail? It would be helpful. What is in your /etc/rc.conf?
(and welcome to the Forum):)
Offline
Thanks for the welcome!
My rc.conf :
$ cat /etc/rc.conf | grep -v "#"
LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="no"
TIMEZONE="America/Mexico_City"
KEYMAP="la-latin1"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"
MOD_AUTOLOAD="yes"
MODULES=(!snd_pcsp usb_storage)
USELVM="no"
HOSTNAME="gateway"
eth0="dhcp"
eth1="dhcp"
INTERFACES=(!eth0 !eth1)
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
DAEMONS=(syslog-ng !network netfs crond alsa hal fam wicd)
ArchLinux :: Awesome WM :: dotfiles
Offline
HOSTNAME="gateway"
eth0="dhcp"
eth1="dhcp"
INTERFACES=(!eth0 !eth1)
Try losing one of the interfaces. It should look more like in the Beginners Guide:
http://wiki.archlinux.org/index.php/Beg … .28DHCP.29
HOSTNAME="arch"
eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(eth0)
gateway="default gw 192.168.0.1"
ROUTES=(gateway)
Offline
Thanks for the welcome!
My rc.conf :
$ cat /etc/rc.conf | grep -v "#"
LOCALE="en_US.utf8" HARDWARECLOCK="localtime" USEDIRECTISA="no" TIMEZONE="America/Mexico_City" KEYMAP="la-latin1" CONSOLEFONT= CONSOLEMAP= USECOLOR="yes" MOD_AUTOLOAD="yes" MODULES=(!snd_pcsp usb_storage) USELVM="no" HOSTNAME="gateway" eth0="dhcp" eth1="dhcp" INTERFACES=(!eth0 !eth1) gateway="default gw 192.168.0.1" ROUTES=(!gateway) DAEMONS=(syslog-ng !network netfs crond alsa hal fam wicd)
I had a similar issue, and I ended up fixing it by commenting the ethx="dhcp" lines from my rc.conf. I already had the module for my ethernet port blacklisted because it messed with my wireless (and I don't use it anyways). Afterward, only the wireless interface would be present due to it's module being loaded... and... tada!
Not sure if you'd go this way, but it may be helpful information.
Offline
How do I disable the module for the ethernet port ?
Or there is a way to force it or make an "alias" so the wireles would point to something like /dev/wlan0 ?
Thanks!
ArchLinux :: Awesome WM :: dotfiles
Offline
How do I disable the module for the ethernet port ?
#lspci -v | grep driver
Or there is a way to force it or make an "alias" so the wireles would point to something like /dev/wlan0 ?
Something like:
alias [module] [alias]
in /etc/modprobe.d/modprobe.conf
Use Google for more details.
Last edited by sistematico (2009-07-20 04:20:13)
Offline
benoror wrote:Or there is a way to force it or make an "alias" so the wireles would point to something like /dev/wlan0 ?
Something like:
alias [module] [alias]
in /etc/modprobe.d/modprobe.conf
Use Google for more details.
/dev/wlan0 <---- I didn't mean to make an alias of the module itself, but to be assigned to this /dev too !
ArchLinux :: Awesome WM :: dotfiles
Offline
Had the same problem with my laptop and resolved it with an udev-rule:
check the id of your device via
dmesg | grep "0000:"
Mine are 0000:02:01.0 for lan and 0000:02:02.0 for wifi
create /etc/udev/rules.d/75-persistent-net.rules:
SUBSYSTEM=="net", DRIVERS=="?*", ID=="0000:02:01.0", NAME="eth0"
SUBSYSTEM=="net", DRIVERS=="?*", ID=="0000:02:02.0", NAME="wlan0"
Restart - and everything should be fine
Offline
wiki to the rescue - as always.
Actually the same solution as rebugger's, just a slightly different udev rule.
If you'd prefer to disable the wired interface, just blacklist the module in the rc.conf MODULES array.
Offline
@tomk the wiki-solution didn't work for me, thats why i use another config (see above)
Offline