Re: disable saving persistent net rules

2007-07-17 Thread Stefan Monnier
 How can I prevent udev from saving the MAC address of eth0 into the
 persistent net rules file? I am using Debian Etch.

I added a file /etc/udev/rules/a10-monnier.rules which contains various
rules that I like (e.g. rename the firewire network interface to eth-fw0,
rename the wifi interface to wlan0, rename drive partition /dev/usbdisk if
they come from USB).  On my Debian Live on a USB stick I then added the
following rule to prevent saving persistent names for the network interfaces
(since I use this USB key on many machines, I don't want the only ethernet
interface to get name eth34):

SUBSYSTEM==net, DRIVERS==?*, NAME=%k


-- Stefan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: disable saving persistent net rules

2007-07-06 Thread Florian Kulzer
On Thu, Jul 05, 2007 at 10:01:27 +, Kent Tong wrote:
 Hi,
 
 How can I prevent udev from saving the MAC address of eth0 into the
 persistent net rules file? I am using Debian Etch.

I think you have to make sure that the interface is named reliably using
some other property. If I understand the persistent-net-generator.rules
in /etc/udev correctly, it will leave interfaces alone if a name has
already been set for them.

A brute force approach would be to comment out the following two lines
in /etc/udev/persistent-net-generator.rules:

KERNEL==eth*|ath*|wlan*|ra*|sta*, DRIVERS==?*,\
IMPORT{program}=write_net_rules $attr{address}

I am not sure if that is a good idea, though.

-- 
Regards,| http://users.icfo.es/Florian.Kulzer
  Florian   |


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



disable saving persistent net rules

2007-07-05 Thread Kent Tong
Hi,

How can I prevent udev from saving the MAC address of eth0 into the
persistent net rules file? I am using Debian Etch.

Thanks!


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]