Re: ip addr add vs ifconfig eth0:1

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Apr 04, 2004 at 07:44:50PM +0300, lartc@xxxxxxxxxxxxxxxx wrote:
> I have 1 interface eth0. I need to set about 20 virtual interfaces eth0:xx 
> on it. 
> 
> If I create them with ifconfig eth0:xx I see it with ifconfig and with ip 
> addr ls. If I set it with 'ip addr add', ifconfig don't show them, but 'ip 
> addr ls' and 'route' show them. So, which is better? 

If you create them with:
"ip addr add ... dev eth0 label eth0:xx"
you can still give them ifconfig-compatible labels, visible with 
both tools.

-- 
Alan Ford * alan@xxxxxxxxxxxxxx 
_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux