On the server: need to copy eth0 to br0, and bridge eth0 to br0. The configuration is shown in the figure:
br0 configuration: delete the uuid of br0, hwaddr can be retained
Then copy: #cp -p ifcfg-br0 ifcfg-br1,2,3 delete hwaddr! ! ! !
This creates four virtual switches
Remember to add when building node1, 2
The added virtual switch shows another four network cards on the node
Configure the four network cards of node1,2 respectively:
In a word: the four network cards of node are directly "plugged into" the four virtual switches of the server.
One network segment can communicate
The br0 of the second server is bridged to the network card of the physical machine! You can ping the same external network!
Node's eth0 can theoretically ping the same external network, but due to software problems, ping is different, but it can be connected remotely by Xshell
(Mine can)
The following is the configuration of my IP address:
|
Server |
Node1 |
Node2 |
Eth0 public network |
172.31.31.127 Eth1 bind br0 |
172.31.31.108 |
172.31.31.109 |
Eth1 private network
|
10.2.18.17 |
10.2.18.18 |
10.2.18.19 |
Eth2 storage |
10.2.19.17 |
10.2.19.18 |
10.2.19.19
|
Eth3 private network 2 |
10.2.20.17 |
10.2.20.18 |
10.2.20.19
|
h