如何在 ubuntu 10.04 中检查网卡绑定速度

如何在 ubuntu 10.04 中检查网卡绑定速度

我有 Ubuntu 10.04 安装 DELL R710 服务器

我已经使用以下步骤配置了网络绑定

sudo apt-get install ifenslave
-------------------------------------------
vi /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
 iface eth0 inet manual
   bond-master bond0
 auto eth1
 iface eth1 inet manual
   bond-master bond0
 auto bond0
 iface bond0 inet static
   address 172.24.1.10
   gateway 172.24.1.1
   netmask 255.255.255.0
   dns-nameservers 172.24.1.50
   dns-search xxx.xxx
   bond-mode balance-rr
   bond-miimon 100
   bond-lacp-rate 1
   bond-slaves none
----------------------------------------------------------
cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.5.0 (November 4, 2008)
Bonding Mode: load balancing (round-robin)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: xx:xx:xx:xx:xx:xx
Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: xx:xx:xx:xx:xx:yy
----------------------------------------------------------------
 **its not showing the bonding speed .**
---------------------------------------------------------
ethtool eth0
Settings for eth0:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Link partner advertised link modes:  Not reported
        Link partner advertised pause frame use: No
        Link partner advertised auto-negotiation: No
        Speed: 1000Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 1
        Transceiver: internal
        Auto-negotiation: on
        MDI-X: Unknown
        Supports Wake-on: g
        Wake-on: g
        Link detected: yes
 ethtool eth1
Settings for eth1:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Link partner advertised link modes:  Not reported
        Link partner advertised pause frame use: No
        Link partner advertised auto-negotiation: No
        Speed: 1000Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 1
        Transceiver: internal
        Auto-negotiation: on
        MDI-X: Unknown
        Supports Wake-on: g
        Wake-on: g
        Link detected: yes

两个网卡速度都是1000MBPS。如何检查bond0的网络速度。

答案1

这完全与您的绑定策略有关..该速度仅显示本地网络中网络适配器之间的最大连接速度.并且大多数时候它不正确!

基于键合模式您选择的是/etc/网络/接口以及描述平衡-rr在 ubuntu 文档中,此模式用于从第一个可用从站到最后一个可用从站按顺序传输数据包。此模式提供负载平衡和容错。这取决于您请求数据包的方式以及每个接口或到网络中该点的路由的可访问性。请查看此文档

相关内容