You are not logged in.

#1 2013-11-23 04:02:31

cdelorme
Member
Registered: 2013-11-23
Posts: 18

Help with predictable network names & resetting udev/sysfs

Greetings,

I started using arch this month, but have been using linux for years.  I've used debian for a long time, but I am digging arch so far.  I am running arch in a virtualized environment with two network adapters, and my use case has me cloning my machine with new mac addresses.

I have read about udev and udevadm on the wiki as well as network configuration, but I am not sure if the solution i'm considering is the right way.  My configuration uses one static address and one dhcp address, and the order each is assigned matters (devices are on different networks).  During the first installation I configured my devices with fixed names using udev (according to the wiki instructions) so my netctl configs would load with predictable network adapter names.

I guess the "Arch" question would be: What is the simplest way to create predictably named adapters for netctl configuration with two devices that have changing mac addresses?


I was thinking that building a dynamic udev script (like the ones in `/lib/udev/rules.d/` not the `/etc/udev/` rules files) would work, as I could assign predictable names to the first two devices and rebuild the rules file per boot.

However, when I deleted my existing rules file and disabled my netctl configs, my device names are not changing to their original values.  I tried changing mac addresses and adapter models to no avail.  I tried a dozen different google searches, but the best way I can think to word it is "how to delete cached network device names from udev or sysfs" or "How to reset/rebuild sysfs".

Can anyone help me undo what I've done with the fixed names on the devices of my current install?

Offline

Board footer

Powered by FluxBB