BOND00 ,on Two VPN connections, is always down

Home Page Forums Network Management Linux and Networking BOND00 ,on Two VPN connections, is always down

This topic contains 0 replies, has 0 voices, and was last updated by  srix 4 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #43124

    srix
    Member

    I have two VPN connections over tap to my remote VPN server. I had created bonding on these two VPN to aggregate by bandwidth.

    I get this following error.

    ########################33
    BOND00 (VPN00,VPN01) Link DOWN — VPN00:Down VPN01:Down

    Ethernet Channel Bonding Driver: v3.2.5 (March 21, 2008)

    Bonding Mode: load balancing (round-robin)
    MII Status: down
    MII Polling Interval (ms): 100
    Up Delay (ms): 30000
    Down Delay (ms): 0

    Slave Interface: VPN00
    MII Status: down
    Link Failure Count: 0
    Permanent HW addr: 00:ff:7f:0c:3d:7e

    Slave Interface: VPN01
    MII Status: down
    Link Failure Count: 0
    Permanent HW addr: 00:ff:2d:c0:2d:ec

    #########################

    But both my VPN link are up and connected. Atleat, That’s what my VPN server says.

    How to get Bond0 up?

    #51957

    doener
    Member

    I have the same problem.

    Did you found a solution?

    I think im missing something in my setup, I m not a network pro.

    Intention:
    Our Internet here is provided over a public unencrypted unreliable wifi. Internet with 20 Mbps cost more than 1000 Euro/month which is currently not acceptable for our small start-up. Since we need a stable internet for skype and rdp im looking for a solution. The wifi is that unusable that I cant download a Ubuntu iso without interruptions.

    Idea:
    I use old routers with 2x OpenWRT and 2 DD-WRT to connect to different public access points. Through every router, I create a OpenVPN (TAP LAYER2) connection to our amazon ec2 server and BOND the interfaces together, to have more bandwidth and stability.

    Setup:
    VPN-Server is up.
    TAP0-3 are listening on different ports on the server side, they are connected to a bridge interface with ip 10.10.0.1. Every vpn connection can ping 10.10.0.1 and ARP works.

    After that I created a bond in zeroshell and on the server using the vpn devices. Ping and ARP dosent work anymore, and the bond is down as the link from the vpns. The VPNs itself are up.

    On the server side I use the following script to create a BOND interface and start the vpn server (Adapted from http://wiki.leipzig.freifunk.net/ChannelBonding)

    Server (Ubuntu 12.04 LTS)


    modprobe bonding mode=2 miimon=100
    modprobe tun

    ifconfig tap0 down
    ifconfig tap1 down
    ifconfig tap2 down
    ifconfig tap3 down

    tunctl -u root -g root -t tap0
    tunctl -u root -g root -t tap1
    tunctl -u root -g root -t tap2
    tunctl -u root -g root -t tap3

    ifconfig tap0 up
    ifconfig tap1 up
    ifconfig tap2 up
    ifconfig tap3 up

    openvpn /etc/openvpn/wan0.conf &
    openvpn /etc/openvpn/wan1.conf &
    openvpn /etc/openvpn/wan2.conf &
    openvpn /etc/openvpn/wan3.conf &
    sleep 10

    ifconfig bond0 hw ether 00:11:22:33:44:55
    ifconfig bond0 10.1.0.1 netmask 255.255.255.252 broadcast 10.1.0.3 up

    ifenslave bond0 tap0 tap1 tap2 tap3

    ip addr add 10.1.10.1/24 dev tap0 scope link
    ip addr add 10.1.11.1/24 dev tap1 scope link
    ip addr add 10.1.12.1/24 dev tap2 scope link
    ip addr add 10.1.13.1/24 dev tap3 scope link

    Logs:

    Ubuntu 12.04 lts
    cat /proc/net/bonding/bond0


    Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

    Bonding Mode: load balancing (xor)
    Transmit Hash Policy: layer2 (0)
    MII Status: up
    MII Polling Interval (ms): 100
    Up Delay (ms): 0
    Down Delay (ms): 0

    Slave Interface: tap1
    MII Status: up
    Speed: 10 Mbps
    Duplex: full
    Link Failure Count: 0
    Permanent HW addr: 02:10:9e:3b:7e:da
    Slave queue ID: 0

    Slave Interface: tap2
    MII Status: up
    Speed: 10 Mbps
    Duplex: full
    Link Failure Count: 0
    Permanent HW addr: ae:e6:2c:65:59:53
    Slave queue ID: 0

    Slave Interface: tap3
    MII Status: up
    Speed: 10 Mbps
    Duplex: full
    Link Failure Count: 0
    Permanent HW addr: a6:84:7c:8f:15:29
    Slave queue ID: 0

    ifconfig -a


    bond0 Link encap:Ethernet HWaddr 00:11:22:33:44:55
    inet addr:10.1.0.1 Bcast:10.1.0.3 Mask:255.255.255.252
    inet6 addr: fe80::211:22ff:fe33:4455/64 Scope:Link
    UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
    RX packets:126 errors:0 dropped:0 overruns:0 frame:0
    TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:5916 (5.9 KB) TX bytes:648 (648.0 B)

    Zeroshell

    cat /proc/net/bonding/bond0


    Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

    Bonding Mode: load balancing (round-robin)
    MII Status: down
    MII Polling Interval (ms): 0
    Up Delay (ms): 0
    Down Delay (ms): 0

    ifconfig -a


    BOND00 Link encap:Ethernet HWaddr EA:E0:BA:3B:8E:A6
    UP BROADCAST MASTER MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

    Since there is no device attached to the bond interface, im confused, does zeroshell some magic or is there something broken?

    Any help would be appreciated

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.