RHEL雙網卡綁定

來源:互聯網
上載者:User

RHEL雙網卡綁定 新增綁定網卡檔案:vi /etc/sysconfig/network-scripts/ifcfg-bond0DEVICE=bond0ONBOOT=yesTYPE=EthernetBOOTPROTO=staticIPADDR=192.168.56.101NETMASK=255.255.255.0#GATEWAY=192.168.56.101#BROADCAST=10.250.7.255 修改現有網卡配置:cp /etc/sysconfig/network-scripts/ifcfg-eth0 ~/ifcfg-eth0.bakcp /etc/sysconfig/network-scripts/ifcfg-eth1 ~/ifcfg-eth1.bak vi /etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0BOOTPROTO=noneONBOOT=yesUSERCTL=noMASTER=bond0SLAVE=yes vi /etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth1BOOTPROTO=noneONBOOT=yesUSERCTL=noMASTER=bond0SLAVE=yes 增加系統載入參數:vi /etc/modprobe.confalias bond0 bondingoptions bond0 miimon=100 mode=1mode=0 load balancing  (round-robin);mode=1 fault-tolerance (active-backup)提供冗餘功能。 增加系統啟動載入參數:vi /etc/rc.d/rc.localifenslave bond0 eth0 eth1#route add -net 172.31.3.254 netmask 255.255.255.0 bond0 啟動網卡:ifconfig  bond0 192.168.56.101 up 重啟伺服器:reboot 檢查網卡綁定後狀態:cat /proc/net/bonding/bond0 ifconfig-EOF- 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.