United States (change)
Shortcuts: Downloads Fedora Red Hat Network
Account Links: Cart Your Account Logout
These files will configure your system to have a regular Ethernet interface called eth0 that uses untagged frames and a virtual interface called eth0.10 that uses tagged frames. To create the configuration file for the virtual tagged interface, copy the contents of your original ifcfg-eth0 file to ifcfg-eth0.10. Your original ifcfg-eth0 file should remain unedited, as it will set up your interface to communicate using untagged frames. Next, edit the DEVICE= line in the ifcfg-eth0.10 file so that it reads eth0.10. Add the line VLAN=yes to the file. Finish configuring the virtual adapter with the correct IP address and subnet mask for the VLAN, or with a BOOTPROTO=dhcp line if addresses are given out via DHCP. Don't forget to include a default gateway in /etc/sysconfig/network. It's important to remember that you can only have one default gateway./etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0.10
to complete the process. The VLAN=yes entry causes the network startup scripts to automatically run the vconfig command to add the necessary VLAN entry in /proc/net/vlan for the VLAN tag.# service network restart
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=XX:XX:XX:XX:XX:XX
ONBOOT=yes
TYPE=Ethernet
|
DEVICE=eth0.10
BOOTPROTO=dhcp
HWADDR=XX:XX:XX:XX:XX:XX
ONBOOT=yes
TYPE=Ethernet
VLAN=yes
|
# vconfig rem eth0.12