Skip to contentSkip to conversation

Alias names for network devices?

DISCUSSION Stephan von Krawczynski 2 participants 2 messages Oct 6, 2003 – Oct 7, 2003

lore
Share & tools
lore
#0 lore raw

Hello all,

does anybody have an idea how to map a static device name to a network device with dynamic appearance (e.g. ppp) ?

What I mean is something like:

static name : customer1
dynamic name: ppp25

The mapping should be made available at ip-up time, or better there should be an _empty_ device which can be mapped on some existing dynamic device name and should become empty again after its removal.

I know this sounds like a user-space question, but the kernel-question behind
is: is this concept possible at all? Can some userspace tool be written to perform something like this?
The usage pattern is obviously doing SNMP statistics on users with varying interface names.
Don't beat me for the subject line, I know alias ethernet devices are meant to be something else, but how else would you call a second name for an existing device?

Regards,
Stephan

#1 lore raw
Quoted 3 lines · Stephan von Krawczynski

does anybody have an idea how to map a static device name to a network device with dynamic appearance (e.g. ppp) ?

Yes, you can rename interfaces easily.

For ppp the best solution is to patch pppd to do it.

Signature · 4 lines
Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt