LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-07-2009, 03:29 PM   #1
rhermsen
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 41

Rep: Reputation: 16
Udev and multiple Ethernet cards in Slackware 12.2


I have multiple Ethernet cards in my system (eth0, eth1 and ath0), but how should I configure that alway's the same adapter becomes eth0 and eth1?
With Slackware 12.1 I changed /etc/udev/rules.d/70-persistent-net.rules, but with 12.2 this file seems also to be altered by the system once in a while. From the info in CHANGES_AND_HINTS.TXT I understood that in my case I should still change /etc/udev/rules.d/70-persistent-net.rules.

Behavior seen:
Most of the times only eth0 and eth1 are shown in the /etc/udev/rules.d/70-persistent-net.rules file, where I changed eth0 and eth1 to my requirement.
Sometimes the system seems to replaces this with the ath0 wireless NIC only, and after another reboot it shows eth0 and eth1 again, but mostly the other way around as I would like. So how can I take control of this?
All 3 NIC's are always working, but only the assignment of eth0 and eth1 become mixed up.

I'm curently reading the man pages for udev and see the option "ignore_remove". Might this help me out here?
 
Old 11-07-2009, 04:11 PM   #2
tux_dude
Member
 
Registered: Dec 2008
Distribution: Slackware64 Current
Posts: 277

Rep: Reputation: 41
The file you should modify is 75-network-devices.rules. Here is a sample
Code:
KERNEL=="eth?", ATTR{address}=="xx:xx:xx:xx:xx:xx", NAME="eth0"
KERNEL=="eth?", ATTR{address}=="xx:xx:xx:xx:xx:xy", NAME="eth1"
 
Old 11-07-2009, 05:05 PM   #3
rhermsen
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 41

Original Poster
Rep: Reputation: 16
tux_dude,

Thanks for your reply.
That file was already replaced by 70-persistent-net.rules in 12.1. See CHANGES_AND_HINTS.TXT from the 12.1 disc.

CHANGES_AND_HINTS.TXT 12.1:
Quote:
If you have more than one network card and have been using the 75-network-devices.rules file, it is now called 70-persistent-net.rules (and is generated from 75-persistent-net-generator.rules).
Rules for optical devices are now located in 70-persistent-cd.rules (and are generated from 75-cd-aliases-generator.rules).
You will need to remove the old rules files (75-optical-devices.rules and 75-network-devices.rules) so that they don't conflict.
I also looked at my 12.1 backup and I only have a 70-persistent-net.rules with 3 adapters.
I will change my file "70-persistent-net.rules" to include all 3 adapters and verify after each reboot if the file is still the same.
 
Old 11-07-2009, 05:24 PM   #4
tux_dude
Member
 
Registered: Dec 2008
Distribution: Slackware64 Current
Posts: 277

Rep: Reputation: 41
This is the file being used on my server running current. I am using bind for network teaming, but don't think it makes a different. The nics are always assigned the in the order specified. Don't have the 70 files on my server, but do have them on the slack64 nas.

Post you network file. Something might be missing.
 
Old 11-07-2009, 05:57 PM   #5
rhermsen
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 41

Original Poster
Rep: Reputation: 16
Here my file after 2 reboots is still ok.

Code:
# cat /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the //lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x11ab:0x4320 (skge)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:11:d8:8d:9d:2f", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x8086:0x1229 (e100)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:02:b3:62:78:39", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# PCI device 0x168c:0x0013 (ath_pci)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:02:c7:60:28:00", ATTR{type}=="1", KERNEL=="ath*", NAME="ath0"
:~#

Last edited by rhermsen; 11-07-2009 at 06:01 PM.
 
Old 11-07-2009, 06:35 PM   #6
tux_dude
Member
 
Registered: Dec 2008
Distribution: Slackware64 Current
Posts: 277

Rep: Reputation: 41
Network file looks good. I just updated mine and remove the 75 files. I will let you know the result once I reboot.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple ethernet cards, how to control which is which? whysyn Linux - Networking 3 04-27-2006 01:01 PM
Using multiple ethernet cards to increase bandwidth saravkrish Linux - Networking 5 09-01-2005 01:14 PM
Setting up ethernet cards in Slackware LordCantenberry Linux - Networking 2 05-31-2004 11:59 PM
Linux server with multiple ethernet cards darkseed2g3 Linux - Networking 1 11-19-2003 05:01 PM
Multiple ethernet cards, same driver - problem anand_h Linux - Networking 1 02-19-2002 03:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration