All of lore.kernel.org
 help / color / mirror / Atom feed
* Device (LAN Cards) Naming
@ 2001-11-30 19:35 Mauricio Culibrk
  2001-11-30 19:57 ` Sven Koch
  0 siblings, 1 reply; 4+ messages in thread
From: Mauricio Culibrk @ 2001-11-30 19:35 UTC (permalink / raw)
  To: linux-kernel

Hi to all!

*** PLEASE, respond directly to mauricio@infohit.si (I'm not subscribed)
***

I have a question about network interface naming in linux 2.4.x or 2.2.x

Is it possible to define a name for each interface instead of having
eth0, eth1 etc?

I'm using a linux box dedicated for routing & filtering and I would like
to have descriptive interface names such as:

public, private, branch etc...

so the output of ifconfig (and all other commands dealing with
interfaces) would be more 'concrete'

Is it possible? How?


Thanks a lot!

mauricio

*** PLEASE, respond directly to mauricio@infohit.si (I'm not subscribed)
***

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Device (LAN Cards) Naming
  2001-11-30 19:35 Device (LAN Cards) Naming Mauricio Culibrk
@ 2001-11-30 19:57 ` Sven Koch
  2001-11-30 23:05   ` Mike Fedyk
  0 siblings, 1 reply; 4+ messages in thread
From: Sven Koch @ 2001-11-30 19:57 UTC (permalink / raw)
  To: Mauricio Culibrk; +Cc: linux-kernel

On Fri, 30 Nov 2001, Mauricio Culibrk wrote:

> Is it possible to define a name for each interface instead of having
> eth0, eth1 etc?

ip link set eth0 down
ip link set eth0 name buggy
ip link set buggy up

c'ya
sven

-- 

The Internet treats censorship as a routing problem, and routes around it.
(John Gilmore on http://www.cygnus.com/~gnu/)


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Device (LAN Cards) Naming
  2001-11-30 19:57 ` Sven Koch
@ 2001-11-30 23:05   ` Mike Fedyk
  2001-12-01  0:03     ` Sven Koch
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Fedyk @ 2001-11-30 23:05 UTC (permalink / raw)
  To: Sven Koch; +Cc: Mauricio Culibrk, linux-kernel

On Fri, Nov 30, 2001 at 08:57:28PM +0100, Sven Koch wrote:
> On Fri, 30 Nov 2001, Mauricio Culibrk wrote:
> 
> > Is it possible to define a name for each interface instead of having
> > eth0, eth1 etc?
> 
> ip link set eth0 down
> ip link set eth0 name buggy
> ip link set buggy up
> 

Ohh, nice!

Though I've gotten used to ethX, I'm sure this can help make scripts a bit
easier to read.

Does the new name work with ifconfig?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Device (LAN Cards) Naming
  2001-11-30 23:05   ` Mike Fedyk
@ 2001-12-01  0:03     ` Sven Koch
  0 siblings, 0 replies; 4+ messages in thread
From: Sven Koch @ 2001-12-01  0:03 UTC (permalink / raw)
  To: Mike Fedyk; +Cc: Mauricio Culibrk, linux-kernel

On Fri, 30 Nov 2001, Mike Fedyk wrote:

> On Fri, Nov 30, 2001 at 08:57:28PM +0100, Sven Koch wrote:
> > On Fri, 30 Nov 2001, Mauricio Culibrk wrote:
> >
> > > Is it possible to define a name for each interface instead of having
> > > eth0, eth1 etc?
> >
> > ip link set eth0 down
> > ip link set eth0 name buggy
> > ip link set buggy up

> Does the new name work with ifconfig?

Yes, it does.
And with firewalling, shaping, etc - with everything that uses ethX.

Only programs that think they are smarter and use hardcoded
interface-names/schemes/lists are obviously broken.

c'ya
sven

-- 

The Internet treats censorship as a routing problem, and routes around it.
(John Gilmore on http://www.cygnus.com/~gnu/)


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-12-01  0:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-30 19:35 Device (LAN Cards) Naming Mauricio Culibrk
2001-11-30 19:57 ` Sven Koch
2001-11-30 23:05   ` Mike Fedyk
2001-12-01  0:03     ` Sven Koch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.