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


    SOLUTION VERIFIED

    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

     

  • 相关阅读:
    第三周学习进度条
    绘制echarts折线图
    第二周学习进度条
    返回一个整数数组中最大子数组的和
    软件工程第二周开课博客
    第一周学习进度条
    学习进度
    学习进度
    学习进度
    HDU 4906 (dp胡乱搞)
  • 原文地址:https://www.cnblogs.com/echo1937/p/6238690.html
Copyright © 2020-2023  润新知