计算节点Vlan 模式网卡
root@tcrqr01n03:~# cat /etc/network/interfaces # The loopback network interface auto lo iface lo inet loopback auto ens25f1 iface ens25f1 inet manual bond-master bond0 auto ens25f0 iface ens25f0 inet manual pre-up sleep 5 bond-master bond0 auto bond0 iface bond0 inet manual bond-mode 4 bond-miimon 100 bond-lacp-rate 1 bond-slaves ens25f1 ens25f0 bond-xmit_hash_policy layer2+3 # mgmt network auto vlan121 iface vlan121 inet static address 10.20.121.24 netmask 255.255.255.0 gateway 10.20.121.254 dns-nameservers 10.20.121.32 vlan_raw_device bond0
存储节点vlan 模式网卡
root@qstore01:~# cat /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback auto ens25f0 iface ens25f0 inet manual bond-master bond0 auto ens25f1 iface ens25f1 inet manual bond-master bond0 auto bond0 iface bond0 inet manual bond-mode 4 bond-miimon 100 bond-lacp-rate 1 bond-slaves ens25f0 ens25f1 # mgmt network auto vlan121 iface vlan121 inet static address 10.20.121.28 netmask 255.255.255.0 gateway 10.20.121.254 vlan_raw_device bond0 auto ens27f0 iface ens27f0 inet static address 172.16.1.1 netmask 255.255.255.0 auto ens27f1 iface ens27f1 inet static address 172.16.2.1 netmask 255.255.255.0 root@qstore01:~#
存储节点 非vlan 模式 网卡
root@qstore01:~# cat /etc/network/interfaces # The loopback network interface auto lo iface lo inet loopback auto enp134s0f1 iface enp134s0f1 inet manual bond-master bond0 auto enp134s0f0 iface enp134s0f0 inet manual pre-up sleep 5 bond-master bond0 auto bond0 iface bond0 inet manual bond-mode 4 bond-miimon 100 bond-lacp-rate 1 bond-slaves enp134s0f1 enp134s0f0 bond-xmit_hash_policy layer2+3 # mgmt network auto br0 iface br0 inet static address 10.66.2.1 netmask 255.255.255.0 gateway 10.66.2.254 dns-nameservers 114.114.114.114 bridge_ports bond0 bridge_stp off bridge_waitport 0 bridge_fd 0 auto enp136s0f0 iface enp136s0f0 inet static address 172.16.1.1 netmask 255.255.255.0 auto enp136s0f1 iface enp136s0f1 inet static address 172.16.2.1 netmask 255.255.255.0