zhangguanzhang's Blog

centos配置bond

字数统计: 79阅读时长: 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
DEVICE=eth0
NAME=eth0
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=none
MASTER=bond4
SLAVE=yes
[root@APP-SRV-001 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
NAME=eth1
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=none
MASTER=bond4
SLAVE=yes
[root@APP-SRV-001 ~]# cat /etc/sysconfig/network-scripts/ifcfg-bond4
DEVICE=bond4
NAME=bond4
TYPE=Bond
BONDING_MASTER=yes
ONBOOT=yes
IPADDR=10.20.2.245
PREFIX=24
GATEWAY=10.20.2.1
DNS1=114.114.114.114
DEFROUTE=yes
BOOTPROTO=static
BONDING_OPTS="mode=802.3ad miimon=100 lacp_rate=fast arp_validate=0"
CATALOG