RHEL 7 with NetworkManager
With nmcli
, create a new connection of the VLAN type where con-name
is the name of the connection, ifname
is the name of the VLAN interface to be created, master
is the name of the interface the VLAN will be on top of, and id
is the VLAN ID (number).
Using DHCP for IP addressing with a VLAN ID of 10:
# nmcli connection add type vlan ifname eth0.10 con-name myvlan id 10 dev eth0
# 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
ifcfg-eth0.10
.DEVICE=eth0.10 VLAN=yes BOOTPROTO=dhcp ONBOOT=yes
RHEL 6 with a custom VLAN interface name
DEVICE=outside-network VLAN=yes PHYSDEV=eth0 VID=10 BOOTPROTO=dhcp ONBOOT=yes
# This became possible in RHEL 6 with the release of initscripts-9.03.46-1.el6: RHBA-2014:1448-1
http://xxxxxx/Linuxjc/1182896.html TechArticle
交叉編譯總結 libosscore.a libcurl.a libmysqlclient.a
Java中a=a+b 與 a+=b區別 以及和類型轉換的關系
Configure a VLAN (on top of a bond) with NetworkManager (nmcli) in RHEL7,nmclibond
Create a bridge using a tagged vlan (8021.q) interface,tagged8021.q
Configure a bridge interface over a VLAN tagged bonded interface,taggedbonded
Configure a bridged network interface for KVM,bridgedkvm