zhangguanzhang's Blog

centos配置bond

字数统计: 111阅读时长: 1 min
2017/04/03 Share
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[root@APP-SRV-001 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
TYPE=Ethernet
BOOTPROTO=none
DEVICE=eth0
NAME=eth0
ONBOOT=yes
MASTER=bond4
SLAVE=yes
[root@APP-SRV-001 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
TYPE=Ethernet
BOOTPROTO=none
DEVICE=eth1
NAME=eth1
ONBOOT=yes
MASTER=bond4
SLAVE=yes
[root@APP-SRV-001 ~]# cat /etc/sysconfig/network-scripts/ifcfg-bond4
TYPE=Bond
BOOTPROTO=static
IPADDR=10.20.2.245
PREFIX=24
GATEWAY=10.20.2.1
DNS1=114.114.114.114
NAME=bond4
DEVICE=bond4
ONBOOT=yes
DEFROUTE=yes
BONDING_MASTER=yes
BONDING_OPTS="mode=802.3ad miimon=100 lacp_rate=fast arp_validate=0"

bonding状态查看:

1
cat /proc/net/bonding/bond4

其他

CentOS 7使用nmcli配置双网卡聚合 https://ieevee.com/tech/2016/07/19/nmcli.html

CATALOG
  1. 1. 其他