You are not logged in.
Pages: 1
Topic closed
Hi
A very unpleasant problem: at boot time my NICs randomly interchange - eth0 becomes eth1 and conversely.
Normally, I get:
eth0 Link encap:Ethernet HWaddr 00:19:66:xx:xx:xx
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 Kb) TX bytes:0 (0.0 Kb)
Interrupt:26
eth1 Link encap:Ethernet HWaddr 00:60:97:xx:xx:xx
inet addr:192.168.0.4 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:21 Base address:0xe800
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
but sometimes I get:
eth0 Link encap:Ethernet HWaddr 00:60:97:xx:xx:xx
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:21 Base address:0xe800
eth1 Link encap:Ethernet HWaddr 00:19:66:xx:xx:xx
inet addr:192.168.0.4 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 Kb) TX bytes:0 (0.0 Kb)
Interrupt:26 Base address:0xa000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
rc.conf
...
MOD_AUTOLOAD="yes"
MODULES=()
HOSTNAME="zion"
eth0="eth0 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255"
eth1="eth1 192.168.0.4 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(eth0 eth1)
gateway="default gw 192.168.1.1"
ROUTES=(gateway)
DAEMONS=(syslog-ng network !netfs !sshd crond)
Any ideas?
Thank you for any help.
Last edited by art84 (2010-12-24 08:00:16)
Offline
Maybe it is this:
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
Thank you, loafer
It seems you pointed exactly to the right place.
As I see, there are 3 solutions in the "Configuring Network" wiki section. Related to this, I have one more small question:
having the syntax
eth0="eth0 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255"
eth1="eth1 192.168.0.4 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(eth0 eth1)
which eth0 is a custom name and which one is a device name? or both must be the same?
can I write
mycustomname0="eth0 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255"
mycustomname1="eth1 192.168.0.4 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(mycustomname0 mycustomname1)
??
I ask this because I would like to use the following solution:
File: /etc/udev/rules.d/10-network.rules
SUBSYSTEM=="net", ATTR{address}=="aa:bb:cc:dd:ee:ff", NAME="lan0"
and then I will have to replace "eth0" with the new name "lan0" (because it says: "Some people have problems naming their interfaces after the old style: eth0, eth1, etc. Try something like "lan" or "wlan" if you experience this problem.")
Offline
PLEASE search the forums before starting your own thread.
These are all threads answering this question I found from one simple search:
http://bbs.archlinux.org/viewtopic.php?id=91906
http://bbs.archlinux.org/viewtopic.php?id=91867
http://bbs.archlinux.org/viewtopic.php?id=80759
http://bbs.archlinux.org/viewtopic.php?id=79435
http://bbs.archlinux.org/viewtopic.php?id=75099
http://bbs.archlinux.org/viewtopic.php?id=73333
http://bbs.archlinux.org/viewtopic.php?id=30286
http://bbs.archlinux.org/viewtopic.php?id=21194
http://bbs.archlinux.org/viewtopic.php?id=19673
http://bbs.archlinux.org/viewtopic.php?id=19580
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
fukawi2
sorry, but English is not my native language and everyone calls his/her problem with his/her own words (titles from your search list: "wireless switches", "Network interfaces trading places", "network interfaces", etc.)
searched for "network interchange", but as I see, I've chosen a wrong word "interchange"
Offline
fukawi2
sorry, but English is not my native language and everyone calls his/her problem with his/her own words (titles from your search list: "wireless switches", "Network interfaces trading places", "network interfaces", etc.)
searched for "network interchange", but as I see, I've chosen a wrong word "interchange"
I think you'll find quite a few others here who don't have English as their 'native' language, but in this case its more a question of intelligent searching than anything else. Something along the lines of "eth0 eth1 network" would have worked. "different order network"? In general searching for only one phrase isn't a good idea.
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
ngoonee
A more general search (like "eth0 eth1 network" you proposed) gives 17 pages with 30 threads on each ... searching in 510 threads is not a very pleasant thing and not everyone has time to read them all, that's why people ask questions directly.
Probably it would be possible to find a solution/answer in 99% of cases without asking others (there are man's, books, web sites, etc), but this is the goal of such 'support' forums - it's like the process of finding out what o'clock it is: you could find it out by measuring stars' position, by measuring the sun's shadow, by going to 'down town' where probably there are public watches, but you also could ask someone with watches near you or walking on the street.
Anyway, nobody is forced to help me. If someone reads the thread and could answer in a few seconds "ah, you are looking for ..., read ... " I'm very thankful to that person. If my thread is redundant or it consumes resources, you could simply delete it.
Offline
art84 - ngoonee and fukawi2 were making the point that this has been covered extensively here: you are expected to do your research before posting here - that is part of the Arch Way:
Arch Linux users have a tendency to solve problems themselves and share the results with the community and development team – a "do first, then ask" philosophy.
https://wiki.archlinux.org/index.php/The_Arch_Way
Closing
Offline
Pages: 1
Topic closed