[CentOS] VLAN support?

James A. Peltier jpeltier at sfu.ca
Fri Sep 30 22:39:27 UTC 2011


----- Original Message -----
| On Thu, Sep 29, 2011 at 5:35 PM, Michael Crilly <mrcrilly at gmail.com>
| wrote:
| > Not sure if someone has asked this previously, but have you got the
| > 8021q
| > kernel module installed and loaded?
| 
| That seems to have happened by itself - and I now see that if the
| NetworkManager service is not running the 5.x style ifcfg- files work
| with ifup/ifdown. But I still haven't found the documentation
| describing that requirement or what the new entries that might be in
| the ifcfg-* files mean.
| 
| --
| Les Mikesell
| lesmikesell at gmail.com

Yes, the 8021q module will load automatically when it sees any ifcfg-* entry that contains <ifname>.<vlandid> or for hosts with ifcfg-vlan<id> and the VLAN_NAME_TYPE=VLAN_PLUS_VID_NO_PAD.

Below is the configuration that I use for my VLANs for KVM.

# configure a bridge device for NAT VLAN support
/etc/sysconfig/network-scripts/ifcfg-NAT
DEVICE=NAT
BOOTPROTO=none
ONBOOT=yes
TYPE=Bridge
USERCTL=no
IPV6INIT=no
NM_CONTROLLED=no

# configure a VLAN for NAT
/etc/sysconfig/network-scripts/ifcfg-vlan303
VLAN_NAME_TYPE=VLAN_PLUS_VID_NO_PAD
DEVICE=vlan303
PHYSDEV=em1
BOOTPROTO=none
VLAN=yes
ONBOOT=yes
BRIDGE=NAT
NM_CONTROLLED=no
TYPE=Ethernet

Is there a specific option that you are trying to get information on?

-- 
James A. Peltier
IT Services - Research Computing Group
Simon Fraser University - Burnaby Campus
Phone   : 778-782-6573
Fax     : 778-782-3045
E-Mail  : jpeltier at sfu.ca
Website : http://www.sfu.ca/itservices
          http://blogs.sfu.ca/people/jpeltier
I will do the best I can with the talent I have




More information about the CentOS mailing list