LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-04-2009, 10:11 AM   #1
omghai2u
LQ Newbie
 
Registered: Aug 2009
Posts: 4

Rep: Reputation: 0
bonding question


i have a server with 2 ethernet ports that im tring to setup mode 4 bonding,

eth2 and eth3 are the bonded ports and they are on the nvidia forcedeth driver

i have setup the HP switch for LACP and the switch recognises the bonded connection.

However, it seems that eth2 is used only for Tx and eth3 is used only for Rx. Its like its running in half duplex?? I can use the connection fine but i cant get them to cooperate in full speed...

This is the bond in rc.inet1.conf , the rest of the interfaces are blank:

Code:
IFNAME[4]="bond0"
IPADDR[4]="10.1.1.3"
NETMASK[4]="255.255.255.0"
USE_DHCP[4]=""
DHCP_HOSTNAME[4]=""
and this is rc.bond which is run by rc.M on boot

Code:
#!/bin/sh

case "$1" in
  'start')
    echo "Starting Bonding..."
    modprobe bonding mode=4 miimon=100
    modprobe forcedeth
    ifconfig bond0 up
    ifenslave bond0 eth2
    ifenslave bond0 eth3
  ;;
  'stop')
    ifconfig bond0 down
    rmmod bonding
    rmmod forcedeth
  ;;
  *)
    echo "Usage: $0 {start|stop}"
  ;;
esac
what am i doing wrong??
 
Old 08-04-2009, 10:24 AM   #2
ap0calypse
Member
 
Registered: Jul 2009
Location: Austria
Distribution: Slackware
Posts: 38

Rep: Reputation: 16
What does "cat /proc/net/bonding/bond0" give back to you?
 
Old 08-04-2009, 10:40 AM   #3
omghai2u
LQ Newbie
 
Registered: Aug 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ap0calypse View Post
What does "cat /proc/net/bonding/bond0" give back to you?
Code:
Ethernet Channel Bonding Driver: v3.5.0 (November 4, 2008)

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: slow
Aggregator selection policy (ad_select): stable
Active Aggregator Info:
        Aggregator ID: 1
        Number of ports: 2
        Actor Key: 9
        Partner Key: 2
        Partner Mac Address: 00:16:b9:c7:9f:70

Slave Interface: eth2
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:1b:fc:d4:24:dc
Aggregator ID: 1

Slave Interface: eth3
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:1b:fc:d4:91:09
Aggregator ID: 1
 
Old 08-04-2009, 10:54 AM   #4
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by omghai2u View Post
However, it seems that eth2 is used only for Tx and eth3 is used only for Rx. Its like its running in half duplex?
Maybe your problem is the hashing policy. From "linux/Documentation/networking/bonding.txt":
Code:
                Slave selection for outgoing traffic is done according
                to the transmit hash policy, which may be changed from
                the default simple XOR policy via the xmit_hash_policy
                option, documented below.  Note that not all transmit
                policies may be 802.3ad compliant, particularly in
                regards to the packet mis-ordering requirements of
                section 43.2.4 of the 802.3ad standard.  Differing
                peer implementations will have varying tolerances for
                noncompliance.
Try using "mode=0" (the default) and see if you get better results:
Code:
        balance-rr or 0

                Round-robin policy: Transmit packets in sequential
                order from the first available slave through the
                last.  This mode provides load balancing and fault
                tolerance.
 
Old 08-06-2009, 10:45 AM   #5
omghai2u
LQ Newbie
 
Registered: Aug 2009
Posts: 4

Original Poster
Rep: Reputation: 0
mode 0 works ok, ive tried both hashing modes without any change. also tried a clean install of slackware64. im guessing its just the nvidia forcedeth driver or the hardware that's not totally compatible.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux network bonding question mokku Linux - Networking 4 11-16-2008 01:03 PM
Interface bonding question bajones Linux - Newbie 2 07-21-2008 11:40 AM
Linux server load balancing and NIC bonding question. ulver Linux - Networking 1 03-06-2008 10:35 AM
question about bonding.o sugar2 Linux - Networking 4 11-11-2006 05:07 PM
NIC Bonding in RHEL question gn00kie Linux - Networking 2 01-31-2006 03:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration