Fw: Fw: udev rules network

2010-09-06 Thread Bonno Bloksma

Hi Bob,

Short answer:

Remove the file and reboot.  If missing it will be created based upon
the current situation at boot time.

By accident found out that is indeed how it works. I had deleted te old file bacuse it created more 
problems then it solved. ;-) After a reboot the file was indeed regererated.


Bonno Bloksma 



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4aadaca7472347448600dec8fc04e...@staf.tio.nl



Fw: udev rules network

2010-09-05 Thread Bonno Bloksma

Hi,

Short:
Is there a way to regenerate the /etc/udev/rules.d/70-persistent-net.rules file 
based on the current
situation?

Long:
Had a motherbord swap in a server and afterwards some of the eth* devices 
pointed to the wrong
interface. Of cource, the old NICs on the mainboard had been replaced by new 
NICs.
Deleting the /etc/udev/rules.d/70-persistent-net.rules helped me get the server 
back up and running.

If I recall correctly the udev rules are there to make sure the same device 
name is used for the
same hardware during hardware changes and I can still see the advantage in case 
I need to add more
network ports by adding another network card. The udev rules would then make 
sure the new ports come
after the currect eth0, .., eth5.
Is there a way to recreate a /etc/udev/rules.d/70-persistent-net.rules file 
based on the current
situation?

Bonno Bloksma 



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/6c4db973dc9b4efe9554be1975a4c...@staf.tio.nl



Re: Fw: udev rules network

2010-09-05 Thread Camaleón
On Sun, 05 Sep 2010 20:29:12 +0200, Bonno Bloksma wrote:

(...)

 If I recall correctly the udev rules are there to make sure the same
 device name is used for the same hardware during hardware changes and I
 can still see the advantage in case I need to add more network ports by
 adding another network card. The udev rules would then make sure the new
 ports come after the currect eth0, .., eth5.

Mmm, I think udev rules for network adapters are intended for getting the 
same eth* for every interface. But you need manually adjust that file to 
match each device with its MAC address.

 Is there a way to recreate a /etc/udev/rules.d/70-persistent-net.rules
 file based on the current situation?

You can edit that file at your convenience, that is, if the new 
motherboard ethernet adapters got renamed into eth2, eth3 and so on, just 
edit the rules to adjust them and get eth0, eth1 if that is your goal.

You can do this by commenting (#) the old rules and just add the new ones.

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2010.09.05.18.54...@gmail.com



Re: Fw: udev rules network

2010-09-05 Thread Bob Proulx
Bonno Bloksma wrote:
 Short:
 Is there a way to regenerate the
 /etc/udev/rules.d/70-persistent-net.rules file based on the current
 situation?

Short answer:

Remove the file and reboot.  If missing it will be created based upon
the current situation at boot time.

Bob


signature.asc
Description: Digital signature