You are not logged in.

#1 2010-03-06 09:29:33

herve
Member
Registered: 2009-09-05
Posts: 13

[solved] eth0 and eth1 are switching all the time

Hello everyone,

when i restart my computer, the network interfaces get mixed up. I mean sometimes the wifi is eth1, sometimes it is eth0. It is annoying because it prevents wicd to run correctly. I have to change the setup in wicd to make it work again.

So i was wondering if there is not an easier way to solve the problem (and not the effect as i do) ?

I use broadcom-wl from the AUR in order to enable the wifi.

lspci
...
08:00.0 Network controller: Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller (rev 01)
20:00.0 Ethernet controller: Marvell Technology Group Ltd. Device 436c (rev 10)

rc.conf

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(lib80211_crypt_tkip wl lib80211 !b43 !ssb)

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
# 
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="127.0.0.1"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
# 
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#

#Static IP example
#eth0="dhcp"
eth0="dhcp"
eth1="dhcp"
INTERFACES=(!eth0 !eth1)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

Thanks !

Last edited by herve (2010-03-06 10:02:30)

Offline

#2 2010-03-06 09:37:13

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: [solved] eth0 and eth1 are switching all the time

Offline

#3 2010-03-06 09:38:00

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [solved] eth0 and eth1 are switching all the time


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#4 2010-03-06 10:02:05

herve
Member
Registered: 2009-09-05
Posts: 13

Re: [solved] eth0 and eth1 are switching all the time

Perfect.

I followed the second method and now everything works fine in the wiki: http://wiki.archlinux.org/index.php/Ude … _Each_Boot

Offline

Board footer

Powered by FluxBB