10-254-9-166配置实例(bond+brigde )

[root@kvm-ctc-bj-10-254-9-166 ~]# cat /etc/sysconfig/network-scripts/ifcfg-bond0 
DEVICE=bond0
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
IPV6INIT=no
BRIDGE=br0
BONDING_OPTS="miimon=100 mode=4"
[root@kvm-ctc-bj-10-254-9-166 ~]# cat /etc/sysconfig/network-scripts/ifcfg-br0 
DEVICE=br0
NM_CONTROLLED=yes
ONBOOT=yes
TYPE=Bridge
BOOTPROTO=none
IPADDR=10.254.9.166
NETMASK=255.255.248.0
GATEWAY=10.254.8.1
DNS1=10.254.8.129
DNS2=10.254.8.130
IPV6INIT=no
USERCTL=no
NAME="System br0"
[root@kvm-ctc-bj-10-254-9-166 ~]# cat /etc/sysconfig/network-scripts/ifcfg-em1
DEVICE=em1
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
IPV6INIT=no
MASTER=bond0
SLAVE=yes
[root@kvm-ctc-bj-10-254-9-166 ~]# cat /etc/sysconfig/network-scripts/ifcfg-em2
DEVICE=em2
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
IPV6INIT=no
MASTER=bond0
SLAVE=yes
[root@kvm-ctc-bj-10-254-9-166 ~]# cat /etc/sysconfig/network-scripts/ifcfg-em3
DEVICE=em3
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
IPV6INIT=no
MASTER=bond0
SLAVE=yes
[root@kvm-ctc-bj-10-254-9-166 ~]# cat /etc/sysconfig/network-scripts/ifcfg-em4
DEVICE=em4
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
IPV6INIT=no
MASTER=bond0
SLAVE=yes
[root@kvm-ctc-bj-10-254-9-166 ~]# 
文档更新时间: 2020-05-03 11:33   作者:月影鹏鹏