Re: [rock-user] alias ip interface

Clifford Wolf <[email protected]> Tue, 19 Oct 2004 07:01:29 +0200
Newsgroups gmane.linux.distributions.rock.user
Message-ID <[email protected]>
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
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

yours,
 - clifford

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/IT/ED/O d-(++) s-: a? C++++$ UL*++++@$ P+++@$ L++++$ E--- W(++)@ !N !o
K? w-- O- M+ V- PS+++ PE Y+ PGP t- 5++++ X R* tv b++(++++) DI++++ D- G !e*
------END GEEK CODE BLOCK------
 
2B OR (NOT 2B) That is the question. The answer is FF.