You are not logged in.

#1 2009-06-17 09:02:01

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,223
Website

[SOLVED] udev rename network interfaces

I've been reading this article, and understand that renaming interfaces is possible:
http://www.debianhelp.co.uk/udev.htm

It would be helpful to be to be able to rename interfaces, especially on firewalls, to represent the network they are attached to, such as:
eth0 = net
eth1 = lan
eth2 = dmz

Can anyone think of any reasons why this would be a particularly bad idea? Anything Arch specific that relies on interfaces being called ethX?

This would be great when writing iptables rules:

iptables -A FORWARD -i net -o dmz -p tcp --dport 80 -j ACCEPT
iptables -A FORWARD -i lan -o dmz -j ACCEPT

etc etc

Last edited by fukawi2 (2009-06-17 12:49:12)

Offline

#2 2009-06-17 09:29:38

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED] udev rename network interfaces

No reason not to do it - the procedure is already outlined on the udev wiki page.

Offline

#3 2009-06-17 09:42:11

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: [SOLVED] udev rename network interfaces

I did that only old laptop, ipw0 was my wireless rl0 was wired. Afaik the 0 is not required. You could be very verbose and call them 'wired' and 'wireless' I suppose.

The only problem I ever had was the activation licensing in one particular piece of software which was hardcoded to use the mac address of eth0...

Offline

#4 2009-06-17 10:38:16

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [SOLVED] udev rename network interfaces

I do it on my laptop to tell my WLAN an LAN adapter apart easily (well they're eth0 and wlan0 by default I think anyway but hey tongue). My wireless is called 'intel' (Intel Pro/Wireless 4965), my wired called 'marvell' (Marvell Yukon Gigabit LAN).

The only drawback is the time udev takes at boot will be a little bit longer. That's about it I guess.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#5 2009-06-17 12:48:40

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,223
Website

Re: [SOLVED] udev rename network interfaces

Hmmm, cool... My firewalls don't have any packages with registration requirements so that shouldn't be a problem. I'll give it a shot and report back if there's any problems.

To future readers of this thread: If I don't post any problems after this, assume it worked fine smile

Thanks guys cool

Last edited by fukawi2 (2009-06-17 12:48:58)

Offline

Board footer

Powered by FluxBB