[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ethernet bonding and interface speed



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Birju Prajapati wrote:
> Hi,
> I have two network cards that are both displaying as such:
> 
> dbadmin@livedb:~$ sudo mii-tool
> eth0: no autonegotiation, 100baseTx-HD, link ok
> eth1: no autonegotiation, 100baseTx-HD, link ok
> 
> I have bonded them in modprope.d as such:
> 
> alias bond0 bonding
> options bonding mode=0 miimon=100 downdelay=200 updelay=200
> 
> However the bonded interface is only 10Meg Half duplex:
> 
> dbadmin@livedb:~$ sudo mii-tool bond0
> bond0: 10 Mbit, half duplex, link ok
> 
> Why is this? Is it safe to use 'ethtool -s' to increase the speed of
> the bonded interface? I don't want it to crash as the server is hosted
> elsewhere and would involve a long trip to fix!
> 
> Thanks in advance,
> Birju
> 
> FYI:
> 
> dbadmin@livedb:~$ /sbin/ifconfig
> bond0     Link encap:Ethernet  HWaddr 00:16:35:82:6F:B2
>          inet addr:10.114.1.2  Bcast:10.114.255.255  Mask:255.255.0.0
>          inet6 addr: fe80::216:35ff:fe82:6fb2/64 Scope:Link
>          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
>          RX packets:2015931 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:16802 errors:36 dropped:0 overruns:0 carrier:36
>          collisions:482 txqueuelen:0
>          RX bytes:141796056 (135.2 MiB)  TX bytes:2176740 (2.0 MiB)
> 
> eth0      Link encap:Ethernet  HWaddr 00:16:35:82:6F:B2
>          inet6 addr: fe80::216:35ff:fe82:6fb2/64 Scope:Link
>          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
>          RX packets:1007946 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:8402 errors:20 dropped:0 overruns:0 carrier:20
>          collisions:264 txqueuelen:1000
>          RX bytes:70971311 (67.6 MiB)  TX bytes:1090935 (1.0 MiB)
>          Interrupt:66 Memory:fc000000-fc011100
> 
> eth1      Link encap:Ethernet  HWaddr 00:16:35:82:6F:B2
>          inet6 addr: fe80::216:35ff:fe82:6fb2/64 Scope:Link
>          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
>          RX packets:1007985 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:8400 errors:16 dropped:0 overruns:0 carrier:16
>          collisions:218 txqueuelen:1000
>          RX bytes:70824745 (67.5 MiB)  TX bytes:1085805 (1.0 MiB)
>          Interrupt:114 Memory:fa000000-fa011100
> 
> 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:16436  Metric:1
>          RX packets:28961 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:28961 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:0
>          RX bytes:9832203 (9.3 MiB)  TX bytes:9832203 (9.3 MiB)
> 
> 

Greetings Birju:

I don't think that I would believe the statistics that mii-tool is
reporting.  I have a similar setup - two NICs bonded into a single
channel.  Both adapters are 1Gb, connected into a Gb switch:

mii-tool
eth0: negotiated 100baseTx-FD flow-control, link ok
eth1: negotiated 100baseTx-FD flow-control, link ok


mii-tool bond0
bond0: 10 Mbit, half duplex, link ok

I know for a fact that the interfaces are running at 1Gb, and the bond
averages about 600 Mb/sec.

You might try pushing a large file onto the box with scp or a similar
tool that will report the time that the copy takes, just to verify your
speed is greater than 10Mb.

- -Scott

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF3xg1S7FYdPX6+iYRAouIAJ9YCKu0N9wvIN4A+y9caLSeHJYvIwCdF6FV
n8IIqvyuRQUeUqvrWwUej8I=
=uNIL
-----END PGP SIGNATURE-----



Reply to: