Gentoo Archives: gentoo-user

From: Graham Murray <graham@×××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] netcard interface with alias
Date: Mon, 02 Mar 2009 13:48:02
Message-Id: 871vtgm3xs.fsf@newton.gmurray.org.uk
In Reply to: Re: [gentoo-user] netcard interface with alias by Zhu Sha Zang
1 Zhu Sha Zang <zhushazang@×××××××××.br> writes:
2
3 > Yeah Yeah, i've already seen this net.example. But before change to
4 > appropriate setting, don't appear any interface with alias, anda
5 > occour some errors when try to initialize devices. And the routes used
6 > by alias don't worked.
7 >
8 > Someone had this working succesfully?
9
10 You do not need to use aliases. Using iproute2, you can have as many
11 (within reason) IP addresses as you want on each interface. You
12 configure it as
13
14 conf_eth0=( "1.2.3.4/24" "10.11.12.13/24" "20.21.22.23/24" )
15
16 For routing via the different networks use iproute2 rules, see the
17 postup() function (towards the end of /etc/conf.d/net.example) for an
18 example of how to set this up.