Tag Archives: Arslan Ali

CentOS fedora How To How To's Installation Linux OpenSource Pakistan redhat Security Terminal Tips and Tricks Tutorials Ubuntu

….HOW TO VLAN USING LINUX DISTRO….

Setting up 802.1q VLAN tagging by loading 8021q Linux kernel driver

Check that Linux kernel driver module called 8021q is loaded:
# lsmod | grep 8021q
If it is not loaded, load it with the following modprobe command:
# modprobe 8021q

How to VLAN Linux usingCentOS/RHLE/Fedora Linux

I am using RHEL/CentOS Linux with VLAN ID # 5. So I need to copy file /etc/sysconfig/network-scripts/ifcfg-eth0 to /etc/sysconfig/network-scripts/ifcfg-eth0.5
# cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0.5
Now, I’ve one network card (eth0) and it needs to tagged network traffic for VLAN ID 5.

  • eth0 – Your regular network interface
  • eth0.5 – Your virtual interface that use untagged frames

Continue reading

Published by: