歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux綜合 >> 學習Linux

Create a bridge using a tagged vlan (8021.q) interface,tagged8021.q

Create a bridge using a tagged vlan (8021.q) interface,tagged8021.q

Create a bridge using a tagged vlan (8021.q) interface,tagged8021.q


SOLUTION VERIFIED

  •  April 27 2013 KB26727

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6

Issue

  • How to create a bridge using a tagged vlan (8021.q) interface?

Resolution

  • Create the VLAN interface (here using eth0)
# vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
HWADDR=XX:XX:XX:XX:XX:XX
ONBOOT=yes
USERCTL=no

# vi /etc/sysconfig/network-scripts/ifcfg-eth0.# (Where # is the vlan ID)

DEVICE=eth0.#
ONPARENT=yes
TYPE=Ethernet
VLAN=yes
USERCTL=no
BRIDGE=br0
  • If using DHCP,
# vi /etc/sysconfig/network-scripts/ifcfg-br0

DEVICE=br0
TYPE=Bridge
BOOTPROTO=dhcp
ONBOOT=yes
DELAY=0
  • If not using DHCP,
# vi /etc/sysconfig/network-scripts/ifcfg-br0

DEVICE=br0
TYPE=Bridge
BOOTPROTO=static
ONBOOT=yes
IPADDR=<IP>
NETMASK=<SUBNET MASK>
DELAY=0
  • After modifying these files a restart of the network service is needed.
# service network restart

 

http://xxxxxx/Linuxjc/1183948.html TechArticle

Copyright © Linux教程網 All Rights Reserved