linux_wiki:vlan_tagging

Differences

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

Link to this comparison view

Next revision
Previous revision
linux_wiki:vlan_tagging [2016/01/03 18:15]
billdozor created
linux_wiki:vlan_tagging [2019/05/25 23:50] (current)
Line 6: Line 6:
  
 **Checklist** **Checklist**
-  * Enterprise Linux 6/7+  * Distro(s): Enterprise Linux 6/7
  
 ---- ----
Line 26: Line 26:
 ====== VLAN Tagging: ifcfg files ====== ====== VLAN Tagging: ifcfg files ======
  
-Configure the physical interface (parent) with very basic information+  * Configure the regular network interface (parent) with very basic information<code bash> 
 +/etc/sysconfig/network-scripts/ifcfg-eth1
  
-/etc/sysconfig/network-scripts/ifcfg-eth1 
-<code bash> 
 DEVICE=eth1 DEVICE=eth1
 TYPE=Ethernet TYPE=Ethernet
Line 36: Line 35:
 </code> </code>
  
-Configure the VLAN interface as the name of the parent plus ".", then the VLAN ID. Example: if the VLAN ID is 20+  * 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
  
-/etc/sysconfig/network-scripts/ifcfg-eth1.20 
-<code bash> 
 DEVICE=eth1.20 DEVICE=eth1.20
 BOOTPROTO=none BOOTPROTO=none
 ONBOOT=yes ONBOOT=yes
 IPADDR=10.1.2.3 IPADDR=10.1.2.3
-PREFIX=24 +NETMASK=255.255.255.0 
-NETWORK=10.1.2.0+GATEWAY=10.1.2.254
 VLAN=yes VLAN=yes
 </code> </code>
- +  * Restart the nework service 
-Restart the nework service +    * EL7<code bash>systemctl restart network</code> 
-  * EL7<code bash>systemctl restart network</code> +    * EL6<code bash>service network restart</code>
-  * EL6<code bash>service network restart</code>+
  
 ---- ----
  
  • linux_wiki/vlan_tagging.1451862927.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)