From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 6C3821381F3 for ; Thu, 15 Aug 2013 08:30:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CD830E0ABE; Thu, 15 Aug 2013 08:30:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 32309E0ABE for ; Thu, 15 Aug 2013 08:30:22 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1C7FA33E1C2 for ; Thu, 15 Aug 2013 08:30:21 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 617) id C01892171C; Thu, 15 Aug 2013 08:30:19 +0000 (UTC) From: "Sven Vermeulen (swift)" To: gentoo-doc-cvs@lists.gentoo.org Subject: [gentoo-doc-cvs] gentoo commit in xml/htdocs/doc/en/handbook: hb-net-modules.xml X-VCS-Repository: gentoo X-VCS-Files: hb-net-modules.xml X-VCS-Directories: xml/htdocs/doc/en/handbook X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Message-Id: <20130815083019.C01892171C@flycatcher.gentoo.org> Date: Thu, 15 Aug 2013 08:30:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-doc-cvs@lists.gentoo.org Reply-to: docs-team@lists.gentoo.org X-Archives-Salt: 757ffd6e-312e-4a35-8af9-07e586246896 X-Archives-Hash: b47ce1d823cb288dade4a13f3aecb125 swift 13/08/15 08:30:19 Modified: hb-net-modules.xml Log: Fix bug #400721 - Fix bonding instructions Revision Changes Path 1.28 xml/htdocs/doc/en/handbook/hb-net-modules.xml file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-net-modules.xml?rev=1.28&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-net-modules.xml?rev=1.28&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-net-modules.xml?r1=1.27&r2=1.28 Index: hb-net-modules.xml =================================================================== RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-net-modules.xml,v retrieving revision 1.27 retrieving revision 1.28 diff -u -r1.27 -r1.28 --- hb-net-modules.xml 23 Oct 2011 09:46:14 -0000 1.27 +++ hb-net-modules.xml 15 Aug 2013 08:30:19 -0000 1.28 @@ -4,7 +4,7 @@ - + @@ -13,8 +13,8 @@ different DHCP clients, setting up bonding, bridging, VLANs and more. -10 -2011-10-23 +11 +2013-08-15
Network Modules @@ -312,17 +312,30 @@ just one interface but they really use both network cards.

-
-# To bond interfaces together
-slaves_bond0="eth0 eth1 eth2"
+

+First, clear the configuration of the participating interfaces: +

-# You may not want to assign an IP to the bonded interface -config_bond0="null" +
+config_eth0="null"
+config_eth1="null"
+config_eth2="null"
+
-# Depend on eth0, eth1 and eth2 as they may require extra configuration -rc_need_bond0="net.eth0 net.eth1 net.eth2" +

+Next, define the bonding between the interfaces: +

+ +
+slaves_bond0="eth0 eth1 eth2"
+config_bond0="192.168.100.4/24"
 
+

+Remove the net.eth* services from the runlevels, create a +net.bond0 one and add that one to the correct runlevel. +

+
@@ -423,7 +436,8 @@

-For VLAN support, emerge net-misc/vconfig. +For VLAN support, emerge net-misc/vconfig. Also make sure that you use +iproute2 as configuration module rather than ifconfig.

@@ -433,19 +447,35 @@ network.

-
-# Specify the VLAN numbers for the interface like so
-# Please ensure your VLAN IDs are NOT zero-padded
+

+To configure VLANs, first specify the VLAN numbers in +/etc/conf.d/net like so: +

+ +
 vlans_eth0="1 2"
+
+ +

+Next, configure the interface for each VLAN: +

+ +
+config_eth0_1="172.16.3.1 netmask 255.255.254.0"
+routes_eth0_1="default via 172.16.3.254"
+
+config_eth0_2="172.16.2.1 netmask 255.255.254.0"
+routes_eth0_2="default via 172.16.2.254"
+
+ +

+VLAN-specific configurations are handled by vconfig like so: +

-# You can also configure the VLAN -# see for vconfig man page for more details -vconfig_eth0="set_name_type VLAN_PLUS_VID_NO_PAD" -vconfig_vlan1="set_flag 1" "set_egress_map 2 6" - -# Configure the interface as usual -config_vlan1="172.16.3.1 netmask 255.255.254.0" -config_vlan2="172.16.2.1 netmask 255.255.254.0" +
+vlan1_name="vlan1"
+vlan1_ingress="2:6 3:5"
+eth0_vlan1_egress="1:2"