From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Ford Date: Sun, 04 Apr 2004 16:55:13 +0000 Subject: Re: [LARTC] ip addr add vs ifconfig eth0:1 Message-Id: <20040404165513.GI3133@newred.gradwell.net> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org On Sun, Apr 04, 2004 at 07:44:50PM +0300, lartc@pro-technica.com 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@whirlnet.co.uk _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/