Ubuntu16.04双网卡绑定

安装ifenslave:
sudo apt-get install ifenslave
echo "bonding" >>/etc/modules
网卡绑定配置:
vim /etc/network/interfaces
auto bond0
iface bond0 inet static
        address 192.168.0.46
        netmask 255.255.255.0
        bond-slaves none
        bond-mode active-backup
        bond-miimon 100
  
auto eno1
iface eno1 inet manual
        bond-master bond0
        bond-primary eno1 eno2
  
auto eno2
iface eno2 inet manual
        bond-master bond0
        bond-primary eno1 eno2
配置完成后重启网卡(如果重启不生效,请重启服务器):
/etc/init.d/networking restart
ip addr
posted @ 2020-03-19 14:40  kylingx  阅读(711)  评论(0编辑  收藏  举报