ifrename replacement

marc gmane at auxbuss.com
Tue Aug 1 18:35:46 UTC 2006


Derek Broughton said...
> marc wrote:
> 
> > I just tried to install ifrename on Dapper - which allows the renaming
> > of interfaces - but it wants to remove a host of packages, including
> > udev, hal, lvm2, and others.
> > 
> > ifrename works just fine on Badger, but what is the replacement, since
> > ifrename seems impossible to install in any meaningful way.
> > 
> 
> The replacement IS udev.  

I was afraid of that. So, how does one solve the problem?

In my notes I have:

The udev scripts reside here:
/etc/udev/rules.d/
and are action in lexical order.

Create a script that will run first, say:
010_local.rules

Query the interface with:
# udevinfo -a -p /sys/class/net/eth0/

Add lines for each interface like:
KERNEL="eth*", SYSFS{address}="00:52:8b:d5:04:48", NAME="lan"

After you add rules, they must be made known to udev by:
# udevstart

Is that close? Or should I extract some more teeth while rubbing sand in 
my eyes?

-- 
Best,
Marc





More information about the kubuntu-users mailing list