[CentOS] vlan support

Miskell, Craig Craig.Miskell at agresearch.co.nz
Tue Mar 4 19:40:02 UTC 2008


> Hi all
> 
> ls centos supporting vlan setup?
If by that you mean 802.1q trunking, then yes.

> ls it reliable?
Seems to be in my experience, but that's only limited so far.

> how can I do it?
Create multiple ifcfg files in /etc/sysconfig/network-scripts, e.g. for
multiple VLANs on eth0:
ifcfg-eth0
ifcfg-eth0.2
ifcfg-eth0.100

The number after the decimal is the VLAN id (default (1), 2 and 100
respectively above).  In each file, add VLAN=yes.   And don't forget to
turn on trunking on the switch to which you're attached.  The network
startup scripts will then do the right thing.

Craig
=======================================================================
Attention: The information contained in this message and/or attachments
from AgResearch Limited is intended only for the persons or entities
to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipients is prohibited by AgResearch
Limited. If you have received this message in error, please notify the
sender immediately.
=======================================================================



More information about the CentOS mailing list