bond實驗

實驗環境:
centos6
centos7vim

IP規劃:
centos6:
eth0+eth1=bond0
bond0:192.168.16.100centos

centos7:
        eth0:192.168.16.66

實驗目的:
實現centos6的網卡冗錯,網卡的高可用ide

實驗步驟:
centos6添加兩塊網卡:eth0,eth1
分別配置:
vim ifcfg-eth0
NAME=eth0
DEVICE=eth0
ONBOOT=yes
MASTER=bond0
SLAVE=yes
###################
vim ifcfg-eth1
NAME=eth1
DEVICE=eth1
ONBOOT=yes
MASTER=bond0
SLAVE=yes
####################
添加bond0配置
vim ifcfg-bond0
NAME=bond0
DEVICE=bond0
ONBOOT=yes
TYPE=bond
IPADDR=192.168.16.200
PREFIX=24
BONDING_OPTS="model=1 miion=10"
#model=1是主備模式測試

重啓網卡:ifconfig  eth0  down
          ifconfig  eth1  down
          ifconfig  bond0  up

          或者service   network restart
    #可能會出現ip地址被佔用的狀況,須要更換bond0的IP

檢測IP:
    centos7------>192.168.16.200
    能夠連通,並切斷centos6的bond0的網卡鏈接,測試切換
    #多是vmware模擬問題,測試切換沒有用
相關文章
相關標籤/搜索