From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RGBKF-0006QT-3k for garchives@archives.gentoo.org; Tue, 18 Oct 2011 15:11:31 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2A17521C07B; Tue, 18 Oct 2011 15:11:16 +0000 (UTC) Received: from ksp.sk (element.ksp.sk [158.195.16.154]) by pigeon.gentoo.org (Postfix) with ESMTP id D959A21C050 for ; Tue, 18 Oct 2011 15:09:57 +0000 (UTC) Received: by ksp.sk (Postfix, from userid 1004) id A535DEA001; Tue, 18 Oct 2011 17:09:56 +0200 (CEST) Date: Tue, 18 Oct 2011 17:09:59 +0200 From: YoYo Siska To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: How to configure eth1:1 ? Message-ID: <20111018150959.GD4396@ksp.sk> References: <4E9CA12C.5070801@binarywings.net> <4E9CA283.1060000@binarywings.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-YoYo: 47 X-Exotic-Header-Data: 47/2 User-Agent: Mutt/1.5.21 (2010-09-15) X-Archives-Salt: X-Archives-Hash: 6b83a723cb9a80c0c50c28b944750ec8 On Mon, Oct 17, 2011 at 10:19:32PM +0000, Grant Edwards wrote: > On 2011-10-17, Florian Philipp wrote: > > > Ugh, sorry. Just ignore that. I didn't see the second line in > > config_eth1. The odd quoting confused me. > > Sorry about that. I was trying various quoting schemes I'd found in > examples. > > My current configuration works: > > modules_eth0=( !plug ) > config_eth0=( "192.168.8.4/16" ) > routes_eth0=( "default via 192.168.0.254" ) > > modules_eth1=( !plug ) > config_eth1=( "10.0.0.1/8" "192.168.250.1/24" ) > > $ /sbin/ip address show > 1: lo: mtu 16436 qdisc noqueue state UNKNOWN > link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 > inet 127.0.0.1/8 scope host lo > 2: eth0: mtu 1500 qdisc pfifo_fast state UP qlen 1000 > link/ether 00:1b:21:b1:d1:e9 brd ff:ff:ff:ff:ff:ff > inet 192.168.8.4/16 brd 192.168.255.255 scope global eth0 > 3: eth1: mtu 1500 qdisc pfifo_fast state UP qlen 1000 > link/ether 00:16:17:84:a7:b3 brd ff:ff:ff:ff:ff:ff > inet 10.0.0.1/8 brd 10.255.255.255 scope global eth1 > inet 192.168.250.1/24 brd 192.168.250.255 scope global eth1 > 4: eth2: mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000 > link/ether 00:18:e7:08:20:33 brd ff:ff:ff:ff:ff:ff > > > And the lack of eth1:1 is presumably explained if the system is using > the iproute2 module instead of the ifconfig module. My current theory > is that iproute2 is getting used because I have openvpn installed with > the iproute2 use flag. [I'm not actually using openvpn, but it's still > istalled from a couple years ago when I was using it.] > >From /usr/share/doc/openrc-0.7.0/net.example: ############################################################################## # INTERFACE HANDLERS # # We provide two interface handlers presently: ifconfig and iproute2. # You need one of these to do any kind of network configuration. # For ifconfig support, emerge sys-apps/net-tools # For iproute2 support, emerge sys-apps/iproute2 # If you don't specify an interface then we prefer iproute2 if it's installed # To prefer ifconfig over iproute2 #modules="ifconfig" But for some reason modules="ifconfig" doesn't seem to work for me (eth0:1 doesn't get created) but modules="!ifconfig" works ;) Also it seems that modules_ethX shouldn't be an array, modules_eth0="!plug !iproute2" uses ifconfig, modules_eth0=( "!plug" "!iproute2" ) uses iproute2 ;) As to why you have iproute2 installed... I always install it, so I can't say which packages might be pulling it in, but you can use equery to find out: tableta ~ # equery depends iproute2 * These packages depend on iproute2: net-misc/openvpn-2.2.0-r1 (iproute2 ? sys-apps/iproute2[-minimal]) yoyo