CentOS将eth01/eth02绑定到一个IP上
时间:2015-02-27 00:36 来源:linux.it.net.cn 作者:IT
###### Bonding Start ######
alias
bond0 bonding
options bonding max_bonds = 1
###### Bonding End ########
DEVICE=bond0
ONBOOT=
yes
BOOTPROTO=static
IPADDR=192.168.100.21
NETMASK=255.255.255.0
USERCTL=no
BONDING_OPTS=
"mode=1 miimon=100 primary=eth01"
parm: max_bonds:Max number of bonded devices (int)
parm: tx_queues:Max number of transmit queues (default = 16) (int)
parm: num_grat_arp:Number of gratuitous ARP packets to send on failover event (int)
parm: num_unsol_na:Number of unsolicited IPv6 Neighbor Advertisements packets to send on failover event (int)
parm: miimon:Link check interval
in
milliseconds (int)
parm: updelay:Delay before considering link up,
in
milliseconds (int)
parm: downdelay:Delay before considering link down,
in
milliseconds (int)
parm: use_carrier:Use netif_carrier_ok (vs MII ioctls)
in
miimon; 0
for
off, 1
for
on (default) (int)
parm: mode:Mode of operation; 0
for
balance-rr, 1
for
active-backup, 2
for
balance-xor, 3
for
broadcast, 4
for
802.3ad, 5
for
balance-tlb, 6
for
balance-alb (charp)
parm: primary:Primary network device to use (charp)
parm: primary_reselect:Reselect primary slave once it comes up; 0
for
always (default), 1
for
only
if
speed of primary is better, 2
for
only on active slave failure (charp)
parm: lacp_rate:LACPDU tx rate to request from 802.3ad partner; 0
for
slow, 1
for
fast (charp)
parm: ad_select:803.ad aggregation selection logic; 0
for
stable (default), 1
for
bandwidth, 2
for
count (charp)
parm: xmit_hash_policy:balance-xor and 802.3ad hashing method; 0
for
layer 2 (default), 1
for
layer 3+4, 2
for
layer 2+3 (charp)
parm: arp_interval:arp interval
in
milliseconds (int)
parm: arp_ip_target:arp targets
in
n.n.n.n form (array of charp)
parm: arp_validate:validate src
/dst
of ARP probes; 0
for
none (default), 1
for
active, 2
for
backup, 3
for
all (charp)
parm: fail_over_mac:For active-backup,
do
not
set
all slaves to the same MAC; 0
for
none (default), 1
for
active, 2
for
follow (charp)
parm: all_slaves_active:Keep all frames received on an interfaceby setting active flag
for
all slaves; 0
for
never (default), 1
for
always. (int)
parm: resend_igmp:Number of IGMP membership reports to send on link failure (int)
DEVICE=eth01
MASTER=bond0
SLAVE=
yes
HWADDR=54:22:22:00:7A:37:CE
ONBOOT=
yes
DEVICE=eth02
MASTER=bond0
SLAVE=
yes
HWADDR=54:22:22:00:7A:37:CE
ONBOOT=
yes
>modprobe -i bonding max_bonds=1
>service network restart
(责任编辑:IT)
(责任编辑:IT) |