其他分享
首页 > 其他分享> > How do I set up VLAN (802.1q) tagging on a network interface?

How do I set up VLAN (802.1q) tagging on a network interface?

作者:互联网

环境

问题

决议

RHEL 7 with NetworkManager

Raw
# nmcli connection add type vlan ifname eth0.10 con-name myvlan id 10 dev eth0
Raw
# nmcli connection add type vlan ifname eth0.10 con-name myvlan id 10 dev eth0 ip4 192.168.1.10/24 gw4 192.168.1.1

RHEL 4, RHEL 5, RHEL 6, and RHEL 7 without NetworkManager

Raw
    DEVICE=eth0.10
    VLAN=yes
    BOOTPROTO=dhcp
    ONBOOT=yes

RHEL 6 with a custom VLAN interface name

See How to create a VLAN interface with an custom name

标签:do,set,network,VLAN,ifcfg,192.168,RHEL,interface,name
来源: https://www.cnblogs.com/augusite/p/15304173.html