Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
11.2.7. Setting Up 802.1Q VLAN Tagging
- If required, start the VLAN 8021q module by issuing the following command as
root:No visual output indicates the module was not running and has now been loaded. Note that given a correct configuration file, the VLAN 8021q module will be loaded as required and therefore does not need to be loaded separately.modprobe --first-time 8021q
~]# modprobe --first-time 8021qCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Configure your physical interface in
/etc/sysconfig/network-scripts/ifcfg-ethX, where X is a unique number corresponding to a specific interface, as follows:DEVICE=ethX TYPE=Ethernet BOOTPROTO=none ONBOOT=yes
DEVICE=ethX TYPE=Ethernet BOOTPROTO=none ONBOOT=yesCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Configure the VLAN interface configuration in
/etc/sysconfig/network-scripts. The configuration filename should be the physical interface plus a.character plus the VLAN ID number. For example, if the VLAN ID is 192, and the physical interface iseth0, then the configuration filename should beifcfg-eth0.192:Copy to Clipboard Copied! Toggle word wrap Toggle overflow If there is a need to configure a second VLAN, with for example, VLAN ID 193, on the same interface,eth0, add a new file with the nameeth0.193with the VLAN configuration details. - Restart the networking service, in order for the changes to take effect. Issue the following command as
root:service network restart
~]# service network restartCopy to Clipboard Copied! Toggle word wrap Toggle overflow