• How to create a VLAN interface with an custom name


    环境

    • Red Hat Enterprise Linux 6
    • initscripts-9.03.46-1.el6 or higher

    问题

    • Want to create a VLAN interface without using the standard naming scheme of eth0.10
    • Is it possible to make a VLAN or rename one so its name is not limited to {device}.{vlan}?

    决议

    • Create an interface configuration file in the /etc/sysconfig/network-scripts/ directory with the name ifcfg-{name} where {name} is the custom name for the VLAN interface.
    • The ifcfg file must include: the DEVICE parameter which specifies the custom interface name, the PHYSDEV parameter which specifies the interface the VLAN will be on top of, VID which specifies the VLAN ID (number), and VLAN=yes must be set. PHYSDEV can be a bond.
    • In the following example, a VLAN interface named "outside-network" will be created over eth0 with a VLAN ID of 10:
    DEVICE=outside-network
    VLAN=yes
    PHYSDEV=eth0
    VID=10
    BOOTPROTO=dhcp
    ONBOOT=yes
    

     

  • 相关阅读:
    单机部署Fastfds+nginx
    day_ha配置文件
    day_1_登录接口

    表(list)
    Java基础01 ------ 从HelloWorld到面向对象
    测试V模型
    360极速模式和兼容模式区别
    初识VBS
    Bug描述规范
  • 原文地址:https://www.cnblogs.com/augusite/p/15304176.html
Copyright © 2020-2023  润新知