Loading

bond配置示例

# /etc/sysconfig/network-scripts/ifcfg-eth0
#IP Config for eth0:
DEVICE=eth0
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes
NM_CONTROLLED=no
SLAVE=yes
MASTER=bond1

# /etc/sysconfig/network-scripts/ifcfg-eth1
#IP Config for eth1:
DEVICE=eth1
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes
NM_CONTROLLED=no
SLAVE=yes
MASTER=bond1

#/etc/sysconfig/network-scripts/ifcfg-bond1
#IP Config for bond1:
DEVICE=bond1
ONBOOT=yes
BOOTPROTO=static
NM_CONTROLLED=yes
DELAY=0
IPADDR='10.4.4.42'
NETMASK='255.255.255.128'
GATEWAY='10.4.4.1'
BONDING_OPTS='mode=4 miimon=100 lacp_rate=fast xmit_hash_policy=2'
posted @ 2023-02-22 10:43  小维江湖  阅读(40)  评论(0编辑  收藏  举报