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 1RFvZ9-0007dl-BS for garchives@archives.gentoo.org; Mon, 17 Oct 2011 22:21:51 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1CFA321C14D; Mon, 17 Oct 2011 22:21:35 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 1B32921C036 for ; Mon, 17 Oct 2011 22:19:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 70EAE1B4017 for ; Mon, 17 Oct 2011 22:19:54 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Score: -4.018 X-Spam-Level: X-Spam-Status: No, score=-4.018 required=5.5 tests=[AWL=-0.226, BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.504, T_TO_NO_BRKTS_FREEMAIL=0.01] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oI8DJz7Ujgd8 for ; Mon, 17 Oct 2011 22:19:48 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by smtp.gentoo.org (Postfix) with ESMTP id 9C1EA1B4003 for ; Mon, 17 Oct 2011 22:19:47 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RFvX5-0005Fo-Jp for gentoo-user@gentoo.org; Tue, 18 Oct 2011 00:19:43 +0200 Received: from dsl.comtrol.com ([64.122.56.22]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Oct 2011 00:19:43 +0200 Received: from grant.b.edwards by dsl.comtrol.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Oct 2011 00:19:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Grant Edwards Subject: [gentoo-user] Re: How to configure eth1:1 ? Date: Mon, 17 Oct 2011 22:19:32 +0000 (UTC) Message-ID: 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-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: dsl.comtrol.com User-Agent: slrn/pre0.9.9-102 (Linux) X-Archives-Salt: X-Archives-Hash: b0088f7ab7cca72676f08522c3b9444a 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.] Yes, I know that the /24 subnet defined by the second eth1 address overlaps the /16 subnet defined by the eth0 address. For historical reasons, 192.168.250.nnn is on eth1, and 192.168.everything-but-250.nnn is on eth0. And eth2 is used only by a VM client OS. Yea, it's a messy, but it's still easier than using 4 different machines.... -- Grant Edwards grant.b.edwards Yow! I appoint you at ambassador to Fantasy gmail.com Island!!!