http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=3#doc_chap10 3.j. VLAN (802.1q support) is very useful. But it doesn't say that sys-apps/iproute2 is required to use VLANS. That would be a helpful note to add. (also an example using the new naming conventions would be good too, eg: config_eno1="127.0.0.1 netmask 255.255.255.0 brd 127.0.0.255" vlans_eno1="3" config_eno1_3="10.0.0.1 netmask 255.255.255.0" ) Thanks. Keep up the good work.
I don't have much experience with the VLAN stuff, but would the following be a correct write-up of the VLAN support (with your suggestions in it)? """ 3.j. VLAN (802.1q support) For VLAN support, emerge net-misc/vconfig. Also make sure that you use iproute2 as configuration module rather than ifconfig. Virtual LAN is a group of network devices that behave as if they were connected to a single network segment - even though they may not be. VLAN members can only see members of the same VLAN even though they may share the same physical network. To configure VLANs, first specify the VLAN numbers in /etc/conf.d/net like so: Code Listing 10.1: Specifying VLAN numbers vlans_eth0="1 2" Next, configure the interface for each VLAN: Code Listing 10.2: Interface configuration 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: Code Listing 10.3: Configuring the VLANs vlan1_name="vlan1" vlan1_ingress="2:6 3:5" eth0_vlan1_egress="1:2" Important: For using some VLAN setups, you may need to consult the variable name documentation. """
Okay, committed to CVS. Should show up in an hour or so.