LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-17-2015, 09:03 PM   #1
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Question Taming udev


I'm wondering if something along the lines of this file is needed to tame udev on my machine from auto-naming devices whatever it pleases, namely my network device.

/etc/udev/rules.d/70-persistent-net.rules
Code:
# 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.

# net device asix
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:25:9c:65:22:c8", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="eth0"
Any suggestions that I also can filter into the eudev buildscript I use at Slackworks?

I had to actually create and import this file from LFS.
 
Old 08-18-2015, 01:16 AM   #2
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,266
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
I recall back in 13.x, 14.0? that net devices flipped if you had multiple eth0, eth1, especially broadcom wifi which often used eth1 and not wlan0, or if something else confused udev. However, since a clean install of 14.1 and recently of -current, this has not been a problem.
Udev messes up network rules http://www.linuxquestions.org/questi...-rules-907381/
[SOLVED] slackware 13.37 problem, udev change network interface randomly, wicd http://www.linuxquestions.org/questi...y-wicd-891977/
[SOLVED] my eth number keep changing after follow -current http://www.linuxquestions.org/questi...urrent-873880/
...
Your version of 70-persistent-net.rules appears to be VERY OLD. Mine are, for example:

Slackware-curent
/etc/udev/rules.d/70-persistent-net.rules
Code:
# PCI device 0x10ec:/sys/devices/pci0000:00/0000:00:1c.0/0000:01:00.0 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:24:21:68:d8:ba", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x168c:/sys/devices/pci0000:00/0000:00:1c.2/0000:02:00.0 (ath9k)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:25:d3:25:ea:68", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"
Slackware64-14.1 multilib
/etc/udev/rules.d/70-persistent-net.rules
Code:
# PCI device 0x10ec:/sys/devices/pci0000:00/0000:00:07.0/0000:02:00.0 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:19:db:63:78:2f", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
both autogenerated during installation and configuration with no input from me. The other systems (2) and VMs (4) are the same.

its a bit surprising that you are having this issue.
 
Old 08-18-2015, 06:54 AM   #3
moonfrog
Member
 
Registered: Oct 2008
Location: San Diego County, CA
Distribution: LFS, Gentoo
Posts: 64

Rep: Reputation: 23
I've just been adding "net.ifnames=0" to the kernel boot line and not looking back
 
  


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
Taming the Toshiba Tecra 730CDT Passiday Linux - Newbie 4 01-18-2009 06:20 PM
LXer: Taming your daemons with PSMon LXer Syndicated Linux News 0 09-02-2008 09:40 AM
LXer: Tips for Taming SELinux LXer Syndicated Linux News 0 11-26-2007 07:40 PM
Taming a weird keyboard TroelsSmit Linux - Newbie 2 11-24-2005 07:50 PM
taming python's interpreter 'help()' command southsibling Programming 7 06-04-2005 06:58 PM

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

All times are GMT -5. The time now is 01:35 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