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

Source: Internet
Author: User

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

  • A6l 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-eth0DEVICE=eth0HWADDR=XX:XX:XX:XX:XX:XXONBOOT=yesUSERCTL=no# vi /etc/sysconfig/network-scripts/ifcfg-eth0.# (Where # is the vlan ID)DEVICE=eth0.#ONPARENT=yesTYPE=EthernetVLAN=yesUSERCTL=noBRIDGE=br0
  • If using DHCP,
# vi /etc/sysconfig/network-scripts/ifcfg-br0DEVICE=br0TYPE=BridgeBOOTPROTO=dhcpONBOOT=yesDELAY=0
  • If not using DHCP,
# vi /etc/sysconfig/network-scripts/ifcfg-br0DEVICE=br0TYPE=BridgeBOOTPROTO=staticONBOOT=yesIPADDR=<IP>NETMASK=<SUBNET MASK>DELAY=0
  • After modifying these files a restart of the network service is needed.
# service network restart

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.