linux_wiki:vlan_tagging

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux_wiki:vlan_tagging [2018/03/06 10:09]
billdozor [VLAN Tagging: ifcfg files]
linux_wiki:vlan_tagging [2019/05/25 23:50]
Line 1: Line 1:
-====== VLAN Tagging ====== 
- 
-**General Information** 
- 
-VLAN tagging network interfaces.  
- 
-**Checklist** 
-  * Distro(s): Enterprise Linux 6/7 
- 
----- 
- 
-====== Ensure Kernel Module is Loaded ====== 
- 
-By default, the 8021q kernel module should be loaded. Double check. 
-<code bash> 
-lsmod | grep 8021q 
-</code> 
- 
-If no results, load the module 
-<code bash> 
-modprobe 8021q 
-</code> 
- 
----- 
- 
-====== VLAN Tagging: ifcfg files ====== 
- 
-  * Configure the regular network interface (parent) with very basic information<code bash> 
-/etc/sysconfig/network-scripts/ifcfg-eth1 
- 
-DEVICE=eth1 
-TYPE=Ethernet 
-BOOTPROTO=none 
-ONBOOT=yes 
-</code> 
- 
-  * Configure the virtual network interface as the name of the parent plus ".", then the VLAN ID. \\ Example: if the VLAN ID is 20<code bash> 
-/etc/sysconfig/network-scripts/ifcfg-eth1.20 
- 
-DEVICE=eth1.20 
-BOOTPROTO=none 
-ONBOOT=yes 
-IPADDR=10.1.2.3 
-PREFIX=24 
-NETWORK=10.1.2.0 
-VLAN=yes 
-</code> 
-  * Restart the nework service 
-    * EL7<code bash>systemctl restart network</code> 
-    * EL6<code bash>service network restart</code> 
- 
----- 
  
  • linux_wiki/vlan_tagging.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)