Help Remove Bonding

    • OMV 2.x

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Help Remove Bonding

      Hi all,

      I've tried to create my first bonding (Ethernet and Wifi connections), and it didn't work out like it supposed to.
      Therefore, I want to remove bond0 after I created bond1. Can't find a way to remove bond0.
      Second, my slave wlan0 MII status is displaying 'down', which is I don't understand.
      My OMV also said "No Interface Available' upon boot up, but I can access via the web and SSH fine.


      I have tried the below codes, but it said 'permission denied'.

      Source Code

      1. ifconfig bond0 down
      2. echo "-eth0" > /sys/class/net/bond0/bonding/slaves
      3. echo "-wlan0" > /sys/class/net/bond0/bonding/slaves
      4. echo "-bond0" > /sys/class/net/bonding_masters
      5. rmmod bonding


      Source Code

      1. -bash: /sys/class/net/bond0/bonding/slaves: Permission denied

      Source Code

      1. cat /proc/net/bonding/bond1
      2. Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
      3. Bonding Mode: load balancing (round-robin)
      4. MII Status: up
      5. MII Polling Interval (ms): 100
      6. Up Delay (ms): 200
      7. Down Delay (ms): 200
      8. [b]Slave Interface: eth0[/b]
      9. MII Status: up
      10. Speed: 1000 Mbps
      11. Duplex: full
      12. Link Failure Count: 0
      13. Permanent HW addr: 08:62:66:c7:3c:af
      14. Slave queue ID: 0
      15. [b]Slave Interface: wlan0[/b]
      16. MII Status: [i][b]down[/b][/i]
      17. Speed: Unknown
      18. Duplex: Unknown
      19. Link Failure Count: 0
      20. Permanent HW addr: c0:4a:00:05:37:9f
      21. Slave queue ID: 0
      Display All


      Source Code

      1. ip addr show
      2. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
      3. link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
      4. inet 127.0.0.1/8 scope host lo
      5. inet6 ::1/128 scope host
      6. valid_lft forever preferred_lft forever
      7. 2: eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond1 state UP qlen 1000
      8. link/ether 08:62:66:c7:3c:af brd ff:ff:ff:ff:ff:ff
      9. 3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,SLAVE,UP> mtu 1500 qdisc mq master bond1 state DOWN qlen 1000
      10. link/ether 08:62:66:c7:3c:af brd ff:ff:ff:ff:ff:ff
      11. 4: bond0: <BROADCAST,MULTICAST,MASTER> mtu 1500 qdisc noop state DOWN
      12. link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
      13. 6: bond1: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
      14. link/ether 08:62:66:c7:3c:af brd ff:ff:ff:ff:ff:ff
      15. inet 192.168.1.97/24 brd 192.168.1.255 scope global bond1
      Display All

      OMV v3.0
      Asus Z97-A/3.1; i3-4370
      32GB RAM Corsair Vengeance Pro
      4x3TB RAID10

      The post was edited 3 times, last by tinh_x7 ().

    • Right, what did you to create bond0? I don't know if I can help you disable it unless I know how it's enabling in the first place. Linux boots with all network interfaces disabled and no bonding interfaces. Then, something, a script or a tool, turns things on a sets things up. There are a lot of ways that could be happening so I need to know how it started in the first place.

      /etc/sysconfig is, I believe, a Red Hat way of configuring networking and Debian (upon which OMV is based) doesn't do that. My system doesn't have an /etc/sysconfig at all. My guess is that you followed some instructions designed for Red Hat and that's what's causing the confusion.
    • run "grep -R bond /etc" and see what shows up in there. Here's what I get:

      Source Code

      1. root@ezra:/etc# grep -r bond *
      2. collectd/collectd.conf: Interface "bond0"
      3. network/interfaces:# bond0 network interface
      4. network/interfaces:auto bond0
      5. network/interfaces:iface bond0 inet static
      6. network/interfaces: bond-xmit_hash_policy layer3+4
      7. network/interfaces: bond-slaves eth0 eth1
      8. network/interfaces: bond-mode 2
      9. network/interfaces: bond-miimon 100
      10. network/interfaces: bond-downdelay 200
      11. network/interfaces: bond-updelay 200
      12. network/interfaces:iface bond0 inet6 manual
      13. network/if-up.d/ifenslave: # $1 = basename of the file in bonding/ to write to.
      14. network/if-up.d/ifenslave: echo "$2" > "/sys/class/net/$IFACE/master/bonding/$1"
      15. network/if-up.d/ifenslave:# If the stanza bond-give-a-chance is set for a slave interface,
      16. network/if-up.d/ifenslave:# This stanza is designed to workaround a bug in wpa_supplicant, when used with bonding :
      17. network/if-up.d/ifenslave:# wpa_supplicant expect wifi authentication packets on the bond interface, but also send wifi authentication packets on the bond interface.
      18. network/if-up.d/ifenslave:# "bond-give-a-chance 10" will set the wifi interface as the primary interface for 10 seconds, then restore the previous primary interface.
      19. network/if-up.d/ifenslave: read primary < "/sys/class/net/$IFACE/master/bonding/primary"
      20. network/if-pre-up.d/ifenslave: # Return if $BOND_MASTER is already a bonding interface.
      21. network/if-pre-up.d/ifenslave: [ -f "/sys/class/net/$BOND_MASTER/bonding/slaves" ] && return
      22. network/if-pre-up.d/ifenslave: # If the bonding module is not yet loaded, load it.
      23. network/if-pre-up.d/ifenslave: if [ ! -r /sys/class/net/bonding_masters ]; then
      24. network/if-pre-up.d/ifenslave: modprobe -q bonding
      25. network/if-pre-up.d/ifenslave: if ! grep -sq "\\<$BOND_MASTER\\>" /sys/class/net/bonding_masters; then
      26. network/if-pre-up.d/ifenslave: echo "+$BOND_MASTER" > /sys/class/net/bonding_masters
      27. network/if-pre-up.d/ifenslave: # $1 = basename of the file in bonding/ to write to.
      28. network/if-pre-up.d/ifenslave: if ! grep -sq "\\<$2\\>" "/sys/class/net/$BOND_MASTER/bonding/$1" ; then
      29. network/if-pre-up.d/ifenslave: # $1 = basename of the file in bonding/ to write to.
      30. network/if-pre-up.d/ifenslave: echo "$2" > "/sys/class/net/$BOND_MASTER/bonding/$1"
      31. network/if-pre-up.d/ifenslave: if ! grep -sq "\\<$value\\>" /sys/class/net/$BOND_MASTER/bonding/$1
      32. network/if-pre-up.d/ifenslave: # Double check in drivers/net/bonding/bond_sysfs.c in linux kernel source tree
      33. network/if-pre-up.d/ifenslave: echo "Failed to enslave $slave to $BOND_MASTER. Is $BOND_MASTER ready and a bonding interface ?" >&2
      34. network/if-pre-up.d/ifenslave: # Bring up slave if it is the target of an allow-bondX stanza.
      35. network/if-pre-up.d/ifenslave: # Double check in drivers/net/bonding/bond_sysfs.c in linux kernel source tree
      36. network/if-pre-up.d/ifenslave: # The first slave in bond-primary found in current slaves becomes the primary.
      37. network/if-pre-up.d/ifenslave: # If no slave in bond-primary is found, then primary does not change.
      38. network/if-pre-up.d/ifenslave: if grep -sq "\\<$slave\\>" "/sys/class/net/$BOND_MASTER/bonding/slaves" ; then
      39. network/if-pre-up.d/ifenslave: # and after primary. This is currently (2.6.35-rc1) not enforced by the bonding driver, but it is
      40. network/if-pre-up.d/ifenslave:# Option slaves deprecated, replaced by bond-slaves, but still supported for backward compatibility.
      41. network/if-post-down.d/ifenslave: # $1 = basename of the file in bonding/ to write to.
      42. network/if-post-down.d/ifenslave: echo "$2" > "/sys/class/net/$IFACE/master/bonding/$1"
      43. network/if-post-down.d/ifenslave: read values < "/sys/class/net/$IFACE/bonding/$1"
      44. network/if-post-down.d/ifenslave: echo "-$value" > "/sys/class/net/$IFACE/bonding/$1"
      45. network/if-post-down.d/ifenslave:BOND_PARAMS="/sys/class/net/$IFACE/bonding"
      46. network/if-post-down.d/ifenslave:# free $IFACE if it is currently enslaved to a bonding device.
      47. network/if-post-down.d/ifenslave:if [ -f "/sys/class/net/$IFACE/master/bonding/slaves" ] ; then
      48. network/if-post-down.d/ifenslave: echo "-$IFACE" > "/sys/class/net/$IFACE/master/bonding/slaves"
      49. network/if-post-down.d/ifenslave: # The first slave in bond-primary found in current slaves becomes the primary.
      50. network/if-post-down.d/ifenslave: # If no slave in bond-primary is found, then primary does not change and might be undefined if just removed.
      51. network/if-post-down.d/ifenslave: if grep -sq "\\<$slave\\>" "/sys/class/net/$IFACE/master/bonding/slaves" ; then
      52. network/if-post-down.d/ifenslave: if [ -f "/sys/class/net/$slave/master/bonding/slaves" ] ; then
      53. openmediavault/config.xml: <bondiface>
      54. openmediavault/config.xml: <devicename>bond\d+</devicename>
      55. openmediavault/config.xml: <bondprimary>(eth|wlan)\d+</bondprimary>
      56. openmediavault/config.xml: <bondmode>0|1|2|3|4|5|6</bondmode>
      57. openmediavault/config.xml: <bondmiimon>0</bondmiimon>
      58. openmediavault/config.xml: <bonddowndelay>0</bonddowndelay>
      59. openmediavault/config.xml: <bondupdelay>0</bondupdelay>
      60. openmediavault/config.xml: </bondiface>
      61. openmediavault/config.xml: <devicename>bond0</devicename>
      62. openmediavault/config.xml: <options>bond-xmit_hash_policy layer3+4</options>
      63. openmediavault/config.xml: <type>bond</type>
      64. openmediavault/config.xml: <bondprimary/>
      65. openmediavault/config.xml: <bondmode>2</bondmode>
      66. openmediavault/config.xml: <bondmiimon>100</bondmiimon>
      67. openmediavault/config.xml: <bonddowndelay>200</bonddowndelay>
      68. openmediavault/config.xml: <bondupdelay>200</bondupdelay>
      Display All
    • Source Code

      1. network/if-pre-up.d/ifenslave: # Return if $BOND_MASTER is already a bonding interface.
      2. network/if-pre-up.d/ifenslave: [ -f "/sys/class/net/$BOND_MASTER/bonding/slaves " ] && return
      3. network/if-pre-up.d/ifenslave: # If the bonding module is not yet loaded, load it.
      4. network/if-pre-up.d/ifenslave: if [ ! -r /sys/class/net/bonding_masters ]; then
      5. network/if-pre-up.d/ifenslave: modprobe -q bonding
      6. network/if-pre-up.d/ifenslave: if ! grep -sq "\\<$BOND_MASTER\\>" /sys/class/ne t/bonding_masters; then
      7. network/if-pre-up.d/ifenslave: echo "+$BOND_MASTER" > /sys/class/net/bonding_masters
      8. network/if-pre-up.d/ifenslave: # $1 = basename of the file in bonding/ to write to.
      9. network/if-pre-up.d/ifenslave: if ! grep -sq "\\<$2\\>" "/sys/class/net /$BOND_MASTER/bonding/$1" ; then
      10. network/if-pre-up.d/ifenslave: # $1 = basename of the file in bonding/ to write to.
      11. network/if-pre-up.d/ifenslave: echo "$2" > "/sys/class/net/$BOND_MASTER /bonding/$1"
      12. network/if-pre-up.d/ifenslave: if ! grep -sq "\\<$value\\>" /sys/class/ net/$BOND_MASTER/bonding/$1
      13. network/if-pre-up.d/ifenslave: # Double check in drivers/net/bonding/bond_sysfs .c in linux kernel source tree
      14. network/if-pre-up.d/ifenslave: echo "Failed to enslave $slave to $BOND_MASTER. Is $BOND_MASTER ready and a bonding interface ?" >&2
      15. network/if-pre-up.d/ifenslave: # Bring up slave if it i s the target of an allow-bondX stanza.
      16. network/if-pre-up.d/ifenslave: # Double check in drivers/net/bonding/bond_sysfs .c in linux kernel source tree
      17. network/if-pre-up.d/ifenslave: # The first slave in bond-primary found in curre nt slaves becomes the primary.
      18. network/if-pre-up.d/ifenslave: # If no slave in bond-primary is found, then pri mary does not change.
      19. network/if-pre-up.d/ifenslave: if grep -sq "\\<$slave\\>" "/sys/class/n et/$BOND_MASTER/bonding/slaves" ; then
      20. network/if-pre-up.d/ifenslave: # and after primary. This is currently (2.6.35-r c1) not enforced by the bonding driver, but it is
      21. network/if-pre-up.d/ifenslave:# Option slaves deprecated, replaced by bond-slave s, but still supported for backward compatibility.
      22. network/interfaces:# bond1 network interface
      23. network/interfaces:auto bond1
      24. network/interfaces:iface bond1 inet static
      25. network/interfaces: bond-slaves eth0 wlan0
      26. network/interfaces: bond-primary OMV.data.Store.ImplicitModel-ext-816-2
      27. network/interfaces: bond-mode 0
      28. network/interfaces: bond-miimon 100
      29. network/interfaces: bond-downdelay 200
      30. network/interfaces: bond-updelay 200
      31. network/interfaces:iface bond1 inet6 manual
      32. network/if-up.d/ifenslave: # $1 = basename of the file in bonding/ to write to.
      33. network/if-up.d/ifenslave: echo "$2" > "/sys/class/net/$IFACE/maste r/bonding/$1"
      34. network/if-up.d/ifenslave:# If the stanza bond-give-a-chance is set for a slave interface,
      35. network/if-up.d/ifenslave:# This stanza is designed to workaround a bug in wpa_s upplicant, when used with bonding :
      36. network/if-up.d/ifenslave:# wpa_supplicant expect wifi authentication packets on the bond interface, but also send wifi authentication packets on the bond inter face.
      37. network/if-up.d/ifenslave:# "bond-give-a-chance 10" will set the wifi interface as the primary interface for 10 seconds, then restore the previous primary inter face.
      38. network/if-up.d/ifenslave: read primary < "/sys/class/net/$IFACE/master/bon ding/primary"
      39. network/if-post-down.d/ifenslave: # $1 = basename of the file in bonding/ to write to.
      40. network/if-post-down.d/ifenslave: echo "$2" > "/sys/class/net/$IFA CE/master/bonding/$1"
      41. network/if-post-down.d/ifenslave: read values < "/sys/class/net/$IFACE/bon ding/$1"
      42. network/if-post-down.d/ifenslave: echo "-$value" > "/sys/class/net /$IFACE/bonding/$1"
      43. network/if-post-down.d/ifenslave:BOND_PARAMS="/sys/class/net/$IFACE/bonding"
      44. network/if-post-down.d/ifenslave:# free $IFACE if it is currently enslaved to a bonding device.
      45. network/if-post-down.d/ifenslave:if [ -f "/sys/class/net/$IFACE/master/bonding/s laves" ] ; then
      46. network/if-post-down.d/ifenslave: echo "-$IFACE" > "/sys/class/net/$IFACE/ master/bonding/slaves"
      47. network/if-post-down.d/ifenslave: # The first slave in bond-primary found in current slaves becomes the primary.
      48. network/if-post-down.d/ifenslave: # If no slave in bond-primary is found, then primary does not change and might be undefined if just removed.
      49. network/if-post-down.d/ifenslave: if grep -sq "\\<$slave\\>" "/sys /class/net/$IFACE/master/bonding/slaves" ; then
      50. network/if-post-down.d/ifenslave: if [ -f "/sys/class/net/$slave/master/bo nding/slaves" ] ; then
      51. network/run/ifstate:bond1=bond1
      52. openmediavault/config.xml: <devicename>bond1</devicename>
      53. openmediavault/config.xml: <type>bond</type>
      54. openmediavault/config.xml: <bondprimary>OMV.data.Store.ImplicitModel-ex t-816-2</bondprimary>
      55. openmediavault/config.xml: <bondmode>0</bondmode>
      56. openmediavault/config.xml: <bondmiimon>100</bondmiimon>
      57. openmediavault/config.xml: <bonddowndelay>200</bonddowndelay>
      58. openmediavault/config.xml: <bondupdelay>200</bondupdelay>
      59. Binary file alternatives/php-cgi matches
      60. Binary file alternatives/php matches
      61. Binary file alternatives/view matches
      62. Binary file alternatives/rview matches
      63. Binary file alternatives/ifenslave matches
      64. Binary file alternatives/ex matches
      65. Binary file alternatives/php-cgi-bin matches
      66. Binary file alternatives/vi matches
      67. collectd/collectd.conf: Interface "bond1"
      68. Binary file ld.so.cache matches
      Display All
      OMV v3.0
      Asus Z97-A/3.1; i3-4370
      32GB RAM Corsair Vengeance Pro
      4x3TB RAID10