Re: [rock-user] alias ip interface

Bernd Petrovitsch <[email protected]> Tue, 19 Oct 2004 10:47:38 +0200
Newsgroups gmane.linux.distributions.rock.user
Organization Firmix Software GmbH
Message-ID <[email protected]>
On Tue, 2004-10-19 at 07:01 +0200, Clifford Wolf wrote:

> On Tue, Oct 19, 2004 at 01:00:39AM +0200, Bernd Petrovitsch wrote:
> > Hmm, how can I confiure an alias ip address on an interface?
> > Simply adding eth2:1  and an ip tag does not help and gives an syntax
> > error:.
> > ----  snip  ----
> > Interface / profile matched: eth2(eth2)
> > Interface / profile matched: eth2:1(eth2:1)
> > /etc/network/rocknet: line 1: return: 1:1: numeric argument required
> > /etc/network/rocknet: line 1: return: 1:1: numeric argument required
> > ----  snip  ----
> 
> alias interface are a depricated hack from older linux kernels. Just

Which also work on current kernels (especially if you have *only*
ifconfig AFAIK).

> add as many "ip" statements to the config file as you want. The first one
> will be the primary IP address. Like:
> 
> interface eth0
>         ip 192.168.99.10/24
>         ip 192.168.99.11/24
>         ip 192.168.99.12/24
>         gw 192.168.99.1

Thanks.
Ahh, too simple. Probably this should go into the docs ....

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services