bonds

Posted doscho

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了bonds相关的知识,希望对你有一定的参考价值。

Linux--多网卡的7种Bond模式

http://www.cnblogs.com/lcword/p/5914089.html

七种网卡绑定模式详解:  http://blog.csdn.net/wuweilong/article/details/39720571

 

通过

   #ethtool xxxx    检测网卡是否连接到网络

 

查看 bond0的信息:

  #cat /proc/net/bonding/bond0

 

 

相关命令:ifenslave

ifenslave --help
Usage: ifenslave [-f] <master-if> <slave-if> [<slave-if>...]
       ifenslave -d   <master-if> <slave-if> [<slave-if>...]
       ifenslave -c   <master-if> <slave-if>
       ifenslave --help

       To create a bond device, simply follow these three steps :
       - ensure that the required drivers are properly loaded :
         # modprobe bonding ; modprobe <3c59x|eepro100|pcnet32|tulip|...>
       - assign an IP address to the bond device :
         # ifconfig bond0 <addr> netmask <mask> broadcast <bcast>
       - attach all the interfaces you need to the bond device :
         # ifenslave [{-f|--force}] bond0 eth0 [eth1 [eth2]...]
         If bond0 didn\'t have a MAC address, it will take eth0\'s. Then, all
         interfaces attached AFTER this assignment will get the same MAC addr.
         (except for ALB/TLB modes)

       To set the bond device down and automatically release all the slaves :
         # ifconfig bond0 down

       To detach a dead interface without setting the bond device down :
         # ifenslave {-d|--detach} bond0 eth0 [eth1 [eth2]...]

       To change active slave :
         # ifenslave {-c|--change-active} bond0 eth0

       To show master interface info
         # ifenslave bond0

       To show all interfaces info
       # ifenslave {-a|--all-interfaces}

       To be more verbose
       # ifenslave {-v|--verbose} ...

       # ifenslave {-u|--usage}   Show usage
       # ifenslave {-V|--version} Show version
       # ifenslave {-h|--help}    This message

 

以上是关于bonds的主要内容,如果未能解决你的问题,请参考以下文章

bond6bond0哪个好

HDU 5765 Bonds(状压DP)

centos怎样做网卡bond

linux如何配置bond?

GAMS学习笔记:案例分析10——Ajax纸业公司生产计划(附代码)

linux绑定bond的七种模式