1. 程式人生 > >centos7+kvm + bond + bridge 搭建方法

centos7+kvm + bond + bridge 搭建方法

bond搭建方法:

http://www.centoscn.com/CentOS/Intermediate/2016/0130/6726.html

bond + bridge 搭建方法:

http://www.07net01.com/2015/08/918445.html

配置檔案

enp0s8

[[email protected] network-scripts]# cat ifcfg-enp0s8

TYPE=Ethernet
BOOTPROTO=none
NAME=enp0s8
DEVICE=enp0s8
ONBOOT=yes
MASTER=bond0

enp0s9

[[email protected]

network-scripts]# cat ifcfg-enp0s9

TYPE=Ethernet
BOOTPROTO=none
NAME=enp0s9
DEVICE=enp0s9
ONBOOT=yes
MASTER=bond0

bond0

[[email protected] network-scripts]# cat ifcfg-bond0

TYPE=Bond
BOOTPROTO=none
PEEDNS=yes
BONDING_MASTER=yes
NAME=bond0
DEVICE=bond0
ONBOOT=yes
BRIDGE=br0

br0

[[email protected]

network-scripts]# cat ifcfg-br0

TYPE=Bridge
BOOTPROTO=static
PEEDNS=yes
NAME=br0
DEVICE=br0
ONBOOT=yes
IPADDR=192.168.0.204
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
DNS1=8.8.8.8
USERCTL=no