玥殇 发表于 2018-5-9 07:30:12

ubuntu 绑定网卡

  公司部分服务器跑的最新的ubuntu desktop 11.04,由于流量较高,故做了bonding。在网上看了一些bonding的配置,有些是不对的。故贴出自己的bonding配置,仅供参考
  1.安装软件   
apt-get install ifenslave
  2.修改配置文件 /etc/network/interfaces
  auto lo   
iface lo inet loopback
  iface eth0 inet dhcp   
iface eth1 inet dhcp
  auto bond0   
iface bond0 inet static   
address 172.20.10.109   
netmask 255.255.0.0   
gateway 172.20.1.1   
up ifenslave bond0 eth0 eth1   
down ifenslave -d bond0 eth0 eth1
  3.在 /etc/modprobe.d/bonding.conf 里面加上
  alias bond0 bonding   
options bonding mode=0 miimon=100
  4、reboot
  完成!
页: [1]
查看完整版本: ubuntu 绑定网卡