ifconfig 输出中的 TX 数据包和 TX 字节数为零

ifconfig 输出中的 TX 数据包和 TX 字节数为零

我想知道如何实现这样的配置,即从不计算 TX 字节和数据包?但是环回接口上有大量流量。服务器运行 RHEL 6 并在 802.3ad 绑定配置中使用两个 10Gb 以太网接口。它是一个具有中等网络流量的 NFS 客户端和应用程序服务器。

正常运行时间

$ uptime
11:12:14 up 127 days, 22:20,  2 users,  load average: 7.86, 8.31, 7.14

接口统计

$ ifconfig
bond0     Link encap:Ethernet  HWaddr xx:yy:de:ad:be:ef
          inet addr:10.1.1.1  Bcast:10.1.1.255  Mask:255.255.255.0
          inet6 addr: fe80::1602:ecff:fe6c:6248/64 Scope:Link
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:78754933233 errors:12 dropped:0 overruns:0 frame:12
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:83417317310129 (75.8 TiB)  TX bytes:0 (0.0 b)

eth8      Link encap:Ethernet  HWaddr xx:yy:de:ad:be:ef
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:56120366224 errors:3 dropped:0 overruns:0 frame:3
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:60876314731840 (55.3 TiB)  TX bytes:0 (0.0 b)

eth10     Link encap:Ethernet  HWaddr xx:yy:de:ad:be:ef
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:22634567048 errors:9 dropped:0 overruns:0 frame:9
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:22541002608976 (20.5 TiB)  TX bytes:0 (0.0 b)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:968312148 errors:0 dropped:0 overruns:0 frame:0
          TX packets:968312148 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:14257112447341 (12.9 TiB)  TX bytes:14257112447341 (12.9 TiB)

键合配置

$ cat /proc/net/bonding/bond0
    Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)

    Bonding Mode: IEEE 802.3ad Dynamic link aggregation
    Transmit Hash Policy: layer2 (0)
    MII Status: up
    MII Polling Interval (ms): 100
    Up Delay (ms): 0
    Down Delay (ms): 0

    802.3ad info
    LACP rate: fast
    Aggregator selection policy (ad_select): stable
    Active Aggregator Info:
            Aggregator ID: 2
            Number of ports: 2
            Actor Key: 33
            Partner Key: 33873
            Partner Mac Address: xx:yy:zz:aa:bb:cc

    Slave Interface: eth10
    MII Status: up
    Speed: 10000 Mbps
    Duplex: full
    Link Failure Count: 1
    Permanent HW addr: xx:yy:de:ad:be:ef
    Aggregator ID: 2
    Slave queue ID: 0

    Slave Interface: eth8
    MII Status: up
    Speed: 10000 Mbps
    Duplex: full
    Link Failure Count: 2
    Permanent HW addr: xx:yy:de:ad:be:af
    Aggregator ID: 2
    Slave queue ID: 0

相关内容