* [LARTC] iproute2 and ethX:X subdevices
@ 2004-02-03 17:41 Alan Ford
2004-02-04 0:53 ` Angus D Madden
2004-02-04 2:34 ` Martin A. Brown
0 siblings, 2 replies; 3+ messages in thread
From: Alan Ford @ 2004-02-03 17:41 UTC (permalink / raw)
To: lartc
Hi,
Quick question -- is it possible to create eth0:0 - style psuedo-devices
using the 'ip' tool?
I see they recognise them when using 'ip addr show':
5: eth2: <BROADCAST,MULTICAST,ALLMULTI,UP> mtu 1500 qdisc pfifo_fast qlen 1000
inet 192.168.0.1/24 brd 192.168.0.255 scope global eth2:0
But I can't see a way of creating them. Is it possible?
(I know somebody may say "why would I want to" -- it's just for neatness,
so that people using 'ifconfig' can still see all the addresses in use.)
Thanks,
--
Alan Ford * alan@whirlnet.co.uk
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] iproute2 and ethX:X subdevices
2004-02-03 17:41 [LARTC] iproute2 and ethX:X subdevices Alan Ford
@ 2004-02-04 0:53 ` Angus D Madden
2004-02-04 2:34 ` Martin A. Brown
1 sibling, 0 replies; 3+ messages in thread
From: Angus D Madden @ 2004-02-04 0:53 UTC (permalink / raw)
To: lartc
[-- Attachment #1: Type: text/plain, Size: 229 bytes --]
Alan Ford, Tue, Feb 03, 2004 at 05:41:06PM +0000:
> Hi,
>
> Quick question -- is it possible to create eth0:0 - style psuedo-devices
> using the 'ip' tool?
>
ip addr add 10.0.0.1/24 dev eth0 label eth0:0
g
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] iproute2 and ethX:X subdevices
2004-02-03 17:41 [LARTC] iproute2 and ethX:X subdevices Alan Ford
2004-02-04 0:53 ` Angus D Madden
@ 2004-02-04 2:34 ` Martin A. Brown
1 sibling, 0 replies; 3+ messages in thread
From: Martin A. Brown @ 2004-02-04 2:34 UTC (permalink / raw)
To: lartc
Alan,
: Quick question -- is it possible to create eth0:0 - style
: psuedo-devices using the 'ip' tool?
They aren't really "pseudo-devices", but we understand what you mean. In
the days prior to the iproute2 tools, when a device would have one
interface, which would have one IP address, they were called IP aliases.
: I see they recognise them when using 'ip addr show':
:
: 5: eth2: <BROADCAST,MULTICAST,ALLMULTI,UP> mtu 1500 qdisc pfifo_fast qlen 1000
: inet 192.168.0.1/24 brd 192.168.0.255 scope global eth2:0
:
: But I can't see a way of creating them. Is it possible?
The answer is yes, there is a way to create interfaces using the "ip
address" tool, so that they are recognizable to ifconfig. You are looking
for the "label" keyword to the "ip address add" command [0].
: (I know somebody may say "why would I want to" -- it's just for
: neatness, so that people using 'ifconfig' can still see all the
: addresses in use.)
I know exactly why an administrator would wish to do this. Some
administrators, who a) have not joined the 21st century with Linux, or b)
do not commonly use Linux, but rather other UNIX-like operating systems,
may not know about the "ip" utility, but they certainly know about
ifconfig! So, if only for the humans, this can be helpful.
-Martin
[0] http://linux-ip.net/html/tools-ip-address.html#ex-tools-ip-address-del
--
Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-02-04 2:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-03 17:41 [LARTC] iproute2 and ethX:X subdevices Alan Ford
2004-02-04 0:53 ` Angus D Madden
2004-02-04 2:34 ` Martin A. Brown
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.