sh bond0绑定网络接口
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh bond0绑定网络接口相关的知识,希望对你有一定的参考价值。
sudo apt-get install ifenslave
cat > /etc/modules <<-EOF
loop
lp
rtc
bonding
EOF
sudo stop networking
sudo modprobe bonding
#eth0 is manually configured, and slave to the "bond0" bonded NIC
auto eth0
iface eth0 inet manual
bond-master bond0
bond-primary eth0
#eth1 ditto, thus creating a 2-link bond.
auto eth1
iface eth1 inet manual
bond-master bond0
cat > /etc/network/interfaces <<-EOF
auto eth0
iface eth0 inet manual
bond-master bond0
bond-primary eth0
auto eth1
iface eth1 inet manual
bond-master bond0
auto bond0
iface bond0 inet static
address 192.168.1.10
gateway 192.168.1.1
netmask 255.255.255.0
bond-mode active-backup
bond-miimon 100
bond-slaves none
EOF
sudo start networking
ifup eth1
ifup eth2
ifup bond0
以上是关于sh bond0绑定网络接口的主要内容,如果未能解决你的问题,请参考以下文章
Linux下双网卡绑定bond0
Linux下双网卡绑定bond0
centos7双网卡绑定bond0
Linux双网卡绑定
linux 网卡绑定
linux中多网卡绑定