Hi to all!
*** PLEASE, respond directly to [email protected] (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 [email protected] (I'm not subscribed)
***
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/)
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?
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/)