网卡做bond

bond

1、拓扑

image-20220801233405019

2、网卡做bond

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#在node1上
nmcli connection add ifname bond0 con-name bond0 type bond mode active-backup ipv4.addresses 11.1.1.1/24 ipv4.method manual
nmcli connection add con-name bond0-port0 ifname eth0 type bond-slave master bond0
nmcli connection add con-name bond0-port1 ifname eth1 type bond-slave master bond0
nmcli connection add con-name bond0-vlan10 ifname bond0-vlan10 type vlan id 10 dev bond0 ipv4.addresses 100.1.1.1/24 ipv4.method manual
nmcli connection add con-name bond0-vlan20 ifname bond0-vlan20 type vlan id 20 dev bond0 ipv4.addresses 200.1.1.1/24 ipv4.method manual


#在node2上
nmcli connection add ifname bond0 con-name bond0 type bond mode active-backup ipv4.addresses 11.1.1.2/24 ipv4.method manual
nmcli connection add con-name bond0-port0 ifname eth0 type bond-slave master bond0
nmcli connection add con-name bond0-port1 ifname eth1 type bond-slave master bond0
nmcli connection add con-name bond0-vlan10 ifname bond0-vlan10 type vlan id 10 dev bond0 ipv4.addresses 100.1.1.2/24 ipv4.method manual
nmcli connection add con-name bond0-vlan20 ifname bond0-vlan20 type vlan id 20 dev bond0 ipv4.addresses 200.1.1.2/24 ipv4.method manual

3、server nic design

image-20220803221508216


本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!