LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-24-2006, 11:45 PM   #1
Kocil
Member
 
Registered: Feb 2003
Distribution: Redhat since 5.2, Slackware since 9.0, Vector since 4.0
Posts: 209

Rep: Reputation: 31
Prevent firewire as eth0


Dear all.

I'm using Slack 11 on a notebook.
The notebook has firewire (eth1394) and a nic (sky2).
My problem is, the eth1394 is always configured as eth0
and sky2 as eth1.

I simply want the sky2 to be the eth0,
while the eth1394 as something else (eth1, or fwlan0).

I have read a solution using udev rule,
http://www.linuxquestions.org/questi...d.php?t=317854
but this one need us to detect the MAC address of the sky2 first.

Is there any simpler way ?
I tried some triks but no success yet, e.g:
1. put static alias in /etc/modules.conf
Code:
alias eth0 sky2
alias eth1 eth1394
2. Put this udev rules
Code:
KERNEL="eth1394", NAME="fwlan0"
Please help, thanks.
 
Old 11-25-2006, 03:04 AM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
What's wrong with using the MAC address? A simple "ifconfig" will tell you (it's the part after "HWaddr").
 
Old 11-26-2006, 08:45 PM   #3
Kocil
Member
 
Registered: Feb 2003
Distribution: Redhat since 5.2, Slackware since 9.0, Vector since 4.0
Posts: 209

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by uselpa
What's wrong with using the MAC address? A simple "ifconfig" will tell you (it's the part after "HWaddr").
I'm a distro developer (Vector Linux to be exact).
I want a global configuration that works on every computer,
not just a particular notebook.
As you may have known, the installation scripts in slack and also VL,
always configure eth0 as the primary network.
I don't want to mess up those scripts, just for this silly thing.

By the way,
I wonder, what is the rationale to give eth0 name for the firewire.
We know that eth means ethernet, doesn't it ?
Firewire is not ethernet, for sure.

If we accept wlan* for wireless network devices,
why not using, for example, fwlan* for the firewire devices ?

Thanks for responding.
 
Old 11-27-2006, 02:22 PM   #4
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
Quote:
Originally Posted by Kocil
put static alias in /etc/modules.conf
Are you using a 2.6 kernel by any chance? Then try using /etc/modprobe.conf instead.
 
Old 11-27-2006, 02:26 PM   #5
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
Quote:
Originally Posted by Kocil
Put this udev rules
Code:
KERNEL="eth1394", NAME="fwlan0"
Please help, thanks.
On this, did you read read this doc? I don't have a firewire card but udevinfo should help you to find some persistent criteria to use. Pay attention not to mix and match criteria from different sections.
 
Old 11-27-2006, 04:24 PM   #6
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,644

Rep: Reputation: 145Reputation: 145
Quote:
Originally Posted by Kocil
2. Put this udev rules
Code:
KERNEL="eth1394", NAME="fwlan0"
Shouldn't this be
Code:
KERNEL=="eth1394", NAME="fwlan0"
?
 
Old 11-28-2006, 12:03 AM   #7
Kocil
Member
 
Registered: Feb 2003
Distribution: Redhat since 5.2, Slackware since 9.0, Vector since 4.0
Posts: 209

Original Poster
Rep: Reputation: 31
Thanks for the udev howto link and the == corrections.
I think we are getting closer ...
Here is the output of udevinfo
Code:
Looking at device /class/net/eth0
  KERNEL=="eth0"
  SUBSYSTEM=="net"
  ...

Looking at device '/devices/pci0000:00/0000:00:1e.0/0000:06:04.2/fw-host0':
  ID=="fw-host0"
  BUS=="ieee1394"
  DRIVER==""
  ...
I tried the following rules, but they don't work.
Code:
SUBSYSTEM=="ieee1394", NAME="fw/%k"
Code:
BUS=="ieee1394", NAME="fw/%k"
Thanks for helping me thinkering.
 
Old 11-28-2006, 12:33 AM   #8
cooldave
LQ Newbie
 
Registered: Oct 2004
Location: Colorado
Distribution: Slackware64-current and 15.0
Posts: 24

Rep: Reputation: 0
Hi,
My problem was that my wireless card (Cisco Aironet 350) was always assigned eth0 and the 3c59x was always assigned eth1. My default routing always preferred eth0, and the is not the way I wanted it...

The File:
/etc/udev/rules.d/network-devices.rules
has the devices that Slack identified, and there are some instructions on
how to uncomment and modify them to force the eth0 and eth1 swap...
I changed:

Quote:
#KERNEL=="wifi?", SYSFS{address}=="00:07:0e:b8:f2:99", NAME="wifi0"
#KERNEL=="eth?", SYSFS{address}=="00:07:0e:b8:f2:99", NAME="eth0"
#KERNEL=="eth?", SYSFS{address}=="00:04:75:50:55:ee", NAME="eth1"
to this:

Quote:
#KERNEL=="wifi?", SYSFS{address}=="00:07:0e:b8:f2:99", NAME="wifi0"
KERNEL=="eth?", SYSFS{address}=="00:07:0e:b8:f2:99", NAME="eth1"
KERNEL=="eth?", SYSFS{address}=="00:04:75:50:55:ee", NAME="eth0"
I am running Slackware 11.0 and 2.6.17.13 kernel.

Also, when configuring Kismet I had to use 'cisco_wifix,eth0:wifi0' ,this is how it still appears for that program. (/proc/driver/aironet/eth0/)

Hope this helps. -CD-
 
  


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
How did eth0 get usurped by Firewire? anw1652 Linux - Hardware 2 05-08-2006 04:29 PM
Wireless network on eth1 diabled Ethernet eth0 and eth0 never comes back tadatoshi Linux - Wireless Networking 4 09-23-2004 05:57 PM
Firewall WAN eth0 LAN eth1 self-bridges, eth0 does all routeing. Nichole_knc Linux - Networking 5 07-29-2004 02:33 PM
howto delete existing static ip of ethernet(eth0)& reconf multiple ips on eth0 viveku Linux - Networking 2 02-02-2004 01:30 AM
howto delete static ip configured on eth0 & reconf multiple ip on one eth0(redhat8 viveku Linux - Networking 0 01-31-2004 10:40 AM

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

All times are GMT -5. The time now is 07:19 PM.

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