如何找出绑定版本?

时间:2019-07-09 06:25:49

标签: networking

我已经建立了网络绑定,我想知道我的绑定版本是什么。

虽然我在阅读https://www.kernel.org/doc/Documentation/networking/bonding.txt,但我发现某些选项仅适用于3.7.0版

resend_igmp

    Specifies the number of IGMP membership reports to be issued after
    a failover event. One membership report is issued immediately after
    the failover, subsequent packets are sent in each 200ms interval.

    The valid range is 0 - 255; the default value is 1. A value of 0
    prevents the IGMP membership report from being issued in response
    to the failover event.

    This option is useful for bonding modes balance-rr (0), active-backup
    (1), balance-tlb (5) and balance-alb (6), in which a failover can
    switch the IGMP traffic from one slave to another.  Therefore a fresh
    IGMP report must be issued to cause the switch to forward the incoming
    IGMP traffic over the newly selected slave.

    This option was added for bonding version 3.7.0.

我希望从文件或--version之类的命令中读取绑定版本

更新

我找到了解决方法,

cat /proc/net/bonding/bond0

输出的第一行给出版本

Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
...
...

0 个答案:

没有答案