You are not logged in.

#1 2011-02-28 23:13:10

murfMan
Member
Registered: 2009-10-27
Posts: 161

bonding

attempting to set up bonding with a network card that i striped out of my moms old computer.


I have follwed the wiki page here:  https://wiki.archlinux.org/index.php/Co … rk#Bonding

but i am still having trouble so i thought i would ask here.
here is the output when i try to restart the network.

 sudo /etc/rc.d/network restart
:: Stopping Network                                                                                       [BUSY] 
Master 'bond0': Error: handshake with driver failed. Aborting
                                                                                                                    [FAIL] 
:: Starting Network                                                                                         [BUSY] 
bond0: unknown interface: No such device
SIOCSIFADDR: No such device
bond0: unknown interface: No such device
SIOCSIFNETMASK: No such device
SIOCSIFBRDADDR: No such device
bond0: unknown interface: No such device
Master 'bond0': Error: handshake with driver failed. Aborting
  

Offline

#2 2011-02-28 23:54:34

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: bonding

Never seen that before.... Are you able to manually set up the bond with ifenslave?

Offline

#3 2011-03-01 00:05:23

murfMan
Member
Registered: 2009-10-27
Posts: 161

Re: bonding

Affirmative.  Is there a better way as opposed to ifenslave?  I can see blinking lights on both of the cards.  I will check the output of ifconfig when I get home.  Is there a chance that this was auto configured and is already working?

Offline

#4 2011-03-01 01:40:48

murfMan
Member
Registered: 2009-10-27
Posts: 161

Re: bonding

bump?  i think it is a problem with ifenslave module not loading.

Edit* i don't even see eth1 ... here is my ifconfig


eth0      Link encap:Ethernet  HWaddr 00:08:C7:45:BD:B9  
          inet addr:192.168.1.106  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::208:c7ff:fe45:bdb9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1866 (1.8 Kb)  TX bytes:2523 (2.4 Kb)

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:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:528 (528.0 b)  TX bytes:528 (528.0 b)

Last edited by murfMan (2011-03-01 02:03:50)

Offline

#5 2011-03-01 04:45:35

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: bonding

murfMan wrote:

Edit* i don't even see eth1 ... here is my ifconfig

You'll want to resolve that first....

Offline

#6 2011-03-01 20:56:03

murfMan
Member
Registered: 2009-10-27
Posts: 161

Re: bonding

bond0     Link encap:Ethernet  HWaddr 00:08:C7:45:BD:B9  
          inet addr:192.168.1.130  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::208:c7ff:fe45:bdb9/64 Scope:Link
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:81043 errors:0 dropped:0 overruns:0 frame:0
          TX packets:50284 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:100327573 (95.6 Mb)  TX bytes:12078573 (11.5 Mb)

eth0      Link encap:Ethernet  HWaddr 00:08:C7:45:BD:B9  
          inet addr:192.168.1.106  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:68775 errors:0 dropped:0 overruns:0 frame:0
          TX packets:42196 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:86137232 (82.1 Mb)  TX bytes:8829942 (8.4 Mb)

eth1      Link encap:Ethernet  HWaddr 00:08:C7:45:BD:B9  
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:12268 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8088 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:14190341 (13.5 Mb)  TX bytes:3248631 (3.0 Mb)
          Interrupt:16 

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:16665 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16665 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1679972 (1.6 Mb)  TX bytes:1679972 (1.6 Mb)

updated ifconfig.... i don't know why eth0 has an address. i can't tell if it is working properly. hmm

Offline

#7 2011-03-01 20:58:15

murfMan
Member
Registered: 2009-10-27
Posts: 161

Re: bonding

well i guess it is working because if you look at the received bytes:

(eth1) 4 190 341 + (eth0) 86 137 232 = (bond0) 100 327 573

but why does eth0 have an inet?

Last edited by murfMan (2011-03-01 20:59:02)

Offline

#8 2011-03-01 22:13:26

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: bonding

It shouldn't have an address...

This is from one of my boxes with bonded interfaces:

eth1      Link encap:Ethernet  HWaddr 00:07:E9:5B:0D:64  
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:342434324 errors:0 dropped:16436 overruns:0 frame:0
          TX packets:129894522 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:81563718 (77.7 MiB)  TX bytes:4213936291 (3.9 GiB)

eth2      Link encap:Ethernet  HWaddr 00:07:E9:5B:0D:64  
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:227423329 errors:0 dropped:0 overruns:0 frame:0
          TX packets:446125650 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1529165429 (1.4 GiB)  TX bytes:1890670977 (1.7 GiB)

Check /proc/net/bonding/bond0

fw1 ~ # cat /proc/net/bonding/bond0 
Ethernet Channel Bonding Driver: v3.4.0 (October 7, 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
Active Aggregator Info:
    Aggregator ID: 1
    Number of ports: 2
    Actor Key: 17
    Partner Key: 51
    Partner Mac Address: 00:26:f1:cc:5c:00

Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:07:e9:5b:0d:64
Aggregator ID: 1

Slave Interface: eth2
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:07:e9:0e:6e:56
Aggregator ID: 1

Post your versions of these files:
/etc/rc.conf
/etc/conf.d/bonding
/etc/modprobe.d/modprobe.conf

Offline

#9 2011-03-01 22:29:30

murfMan
Member
Registered: 2009-10-27
Posts: 161

Re: bonding

[xxxx@arch etc]$ cat /etc/rc.conf
#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime", any other value will result
#   in the hardware clock being left untouched (useful for virtualization)
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.UTF-8"
HARDWARECLOCK="localtime"
TIMEZONE="America/Chicago"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(bonding)

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="arch"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
# 
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#

#Static IP example
eth0="dhcp"
eth1="dhcp"
#eth0="eth0 192.168.1.110 netmask 255.255.255.0 broadcast 192.168.1.255"
#eth1="eth1 192.168.1.120 netmask 255.255.255.0 broadcast 192.168.1.255"
bond0="bond0 192.168.1.130 netmask 255.255.255.0 broadcast 192.168.1.255"
#bond0="dhcp"
INTERFACES=(bond0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.1.1"
ROUTES=(gateway)
 
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng hal @crond @network @netfs @sshd @alsa @mpd @cups @ushare)
[xxxx@arch etc]$ cat /etc/conf.d/bonding 
#
# Settings for ethernet bonding
#
# For each bond interface declared in INTERFACES (in rc.conf), declare
# a bond_${IF} variable that contains the real ethernet interfaces that
# should be bonded to the bond interface with the ifenslave utility.
# Then list the bond interface name in the BOND_INTERFACES array.
#

bond_bond0="eth0 eth1"
BOND_INTERFACES=(bond0)
[xxxx@arch etc]$ cat /etc/modprobe.d/modprobe.conf 
options snd-intel8x0 index=0
options bonding miimon=100
#
# /etc/modprobe.d/modprobe.conf (for v2.6 kernels)
#disable autoload of ipv6
alias net-pf-10 off
 [xxxx@arch etc]$ cat /proc/net/bonding/bond0 
Ethernet Channel Bonding Driver: v3.7.0 (June 2, 2010)

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: 00:08:c7:45:bd:b9
Slave queue ID: 0

Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:13:20:04:11:37
Slave queue ID: 0

Offline

#10 2011-03-02 03:11:44

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: bonding

Looks correct... The address on eth0 isn't from before you enabled bonding? You've rebooted? (or removed it manually?)

Offline

#11 2011-03-02 05:49:02

murfMan
Member
Registered: 2009-10-27
Posts: 161

Re: bonding

I have rebooted and brought the network daemon up and down countless times.  i have no idea why the address is showing up for eth0.  how can i remove an address manually>?

Offline

#12 2011-03-02 07:50:45

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: bonding

Weird...

ip a d 192.168.1.106/24 dev eth0

Offline

#13 2011-03-02 07:52:07

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: bonding

Try changing rc.conf to:

INTERFACES=(bond0 !eth0 !eth1)

Are there any DHCP client processes running somehow?

Offline

#14 2011-03-02 23:43:17

murfMan
Member
Registered: 2009-10-27
Posts: 161

Re: bonding

so weird. 
when i do

INTERFACES=(bond0 !eth0 !eth1)

the address of eth0 goes away but as soon as i refresh a page eth0 gets reassigned the address

also

ip a 192.168.1.106/24 dev eth0
bash: ip: command not found
ps aux | grep dhcp
root      3363  0.0  0.0   1952   604 ?        Ss   Feb28   0:00 /sbin/dhcpcd -q eth1
root      4014  0.0  0.0   1952   580 ?        Ss   Feb28   0:00 /sbin/dhcpcd -q eth0
xxxxx     6547  0.0  0.0   3976   828 pts/0    S+   02:42   0:00 grep dhcp

Last edited by murfMan (2011-03-02 23:46:52)

Offline

#15 2011-03-03 00:48:48

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: bonding

ip a 192.168.1.106/24 dev eth0
bash: ip: command not found

Install iproute2 from core

ps aux | grep dhcp
root      3363  0.0  0.0   1952   604 ?        Ss   Feb28   0:00 /sbin/dhcpcd -q eth1
root      4014  0.0  0.0   1952   580 ?        Ss   Feb28   0:00 /sbin/dhcpcd -q eth0
xxxxx     6547  0.0  0.0   3976   828 pts/0    S+   02:42   0:00 grep dhcp

I'd say that's your problem... Find out what is starting dhcpcd and disable it.

Offline

#16 2011-03-03 22:24:13

murfMan
Member
Registered: 2009-10-27
Posts: 161

Re: bonding

i have no idea why that was coming up but "sudo killall dhcpcd" did the trick.

I think its working now ... thanks!


ifconfig
bond0     Link encap:Ethernet  HWaddr 00:08:C7:45:BD:B9  
          inet addr:192.168.1.130  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::208:c7ff:fe45:bdb9/64 Scope:Link
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:762640 errors:0 dropped:0 overruns:0 frame:0
          TX packets:635370 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:591811756 (564.3 Mb)  TX bytes:326188584 (311.0 Mb)

eth0      Link encap:Ethernet  HWaddr 00:08:C7:45:BD:B9  
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:587085 errors:0 dropped:0 overruns:0 frame:0
          TX packets:467908 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:476755213 (454.6 Mb)  TX bytes:224408816 (214.0 Mb)

eth1      Link encap:Ethernet  HWaddr 00:08:C7:45:BD:B9  
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:175555 errors:0 dropped:0 overruns:0 frame:0
          TX packets:167462 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:115056543 (109.7 Mb)  TX bytes:101779768 (97.0 Mb)
          Interrupt:16 

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:53362 errors:0 dropped:0 overruns:0 frame:0
          TX packets:53362 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5716299 (5.4 Mb)  TX bytes:5716299 (5.4 Mb)

Offline

#17 2011-03-03 22:47:50

murfMan
Member
Registered: 2009-10-27
Posts: 161

Re: bonding

Update :   

scratch that... apparently now the network is up but i have no internet connection.  i.e. i can ping my router but not www.google.com.   

I don't have any internet access if eth0 doesn't have an address.

Offline

#18 2011-03-04 10:44:53

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: bonding

What is your route table?

ip r sh

Offline

#19 2011-03-04 13:11:29

murfMan
Member
Registered: 2009-10-27
Posts: 161

Re: bonding

192.168.1.0/24 dev bond0  proto kernel  scope link  src 192.168.1.130 
192.168.1.0/24 dev eth0  proto kernel  scope link  src 192.168.1.106  metric 203 
default via 192.168.1.1 dev bond0 
default via 192.168.1.1 dev eth0  metric 203

Offline

#20 2011-03-05 04:40:26

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: bonding

You've killed off the DHCP processes?

Offline

#21 2011-03-05 07:39:12

murfMan
Member
Registered: 2009-10-27
Posts: 161

Re: bonding

if i kill the following process i don't have internet access but i can ping my router


root      1681  0.0  0.0   1952   584 ?        Ss   Mar03   0:00 /sbin/dhcpcd -q eth0

Offline

#22 2011-03-06 06:25:14

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: bonding

It sounds like DHCP is removing your default route when you kill it.

Find out what is starting DHCP and disable it. Your rc.conf entry for 'gateway' should create your default route for you (on reboot or `/etc/rc.d/network restart`)

gateway="default gw 192.168.1.1"
ROUTES=(gateway)

Offline

#23 2011-03-07 04:44:35

murfMan
Member
Registered: 2009-10-27
Posts: 161

Re: bonding

i tried rebooting and restarting the network daemon and i still am only able to ping the router... no internet. hmm 


if i put INTERFACES=(eth0) I can get internet access
but if i put INTERFACES=(bond0) i have no internet but i can ping my router. (this is after i killed dhcpcd)

if i kill dhcpcd ... eth0 has no inet.  but i don't get internet

Last edited by murfMan (2011-03-07 04:45:43)

Offline

#24 2011-03-07 05:59:27

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: bonding

murfMan wrote:

i tried rebooting and restarting the network daemon and i still am only able to ping the router... no internet. hmm

What does `ip r sh` show at this point?

Offline

Board footer

Powered by FluxBB