From: Nikolay Aleksandrov <nikolay@redhat.com>
To: Linus Gasser <list@markas-al-nour.org>, netdev@vger.kernel.org
Subject: Re: Bonding with tun-devices
Date: Wed, 21 May 2014 17:55:23 +0200 [thread overview]
Message-ID: <537CCC6B.60909@redhat.com> (raw)
In-Reply-To: <537CB13A.3030100@markas-al-nour.org>
On 05/21/2014 03:59 PM, Linus Gasser wrote:
> Dear list,
>
> I'm trying to create a bonded interface using tun-devices created by the
>
> ssh -NTCf -w 0:0
>
> command. The reason is that I'm behind a satellite connection with per-stream
> limited bandwidth...
>
> On some older kernels everything was fine, and I could do:
>
> # ssh -NTCf -w 0:0 web
> # ssh -NTCf -w 1:1 web
> # modprobe bonding mode=0 miimon=100
> # ifconfig bond0 172.16.0.1 netmask 255.255.255.0
> # ifconfig bond0 hw ether 12:34:56:78:9a
> # ifenslave bond0 tun0 tun1
>
> on one side and
>
> # modprobe bonding mode=0 miimon=100
> # ifconfig bond0 172.16.0.2 netmask 255.255.255.0
> # ifconfig bond0 hw ether 12:35
> # ifenslave -f bond0 tun0 tun1
> # ping 172.16.0.1
>
> on the other side. On a newer kernel (>3.14) this doesn't work (at least not on
> linux-armv7), while on 3.13 it does work under linux-armv7. Now I've been told
> to use the iproute2-suite, as ifenslave is deprecated. But if I try to do
>
> # ssh -NTCf -w 0:0 web
> # ssh -NTCf -w 1:1 web
> # ip link add name bond1 type bond
> # ip link set dev tun0 master bond1
>
> it gives me an error
>
> RTNETLINK answers: Operation not supported
>
> Any idea what I'm doing wrong?
>
> Linus
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi,
Could you please try modprobe bonding mode=0 miimon=100 fail_over_mac=active ?
I know that fail_over_mac doesn't affect that mode, but I think I can see why
it's happening.
Cheers,
Nik
prev parent reply other threads:[~2014-05-21 16:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-21 13:59 Bonding with tun-devices Linus Gasser
2014-05-21 15:54 ` Veaceslav Falico
2014-05-21 20:36 ` Linus Gasser
2014-05-22 13:24 ` Veaceslav Falico
2014-05-22 14:32 ` Eric Dumazet
2014-05-22 14:50 ` Linus Gasser
2014-05-22 15:00 ` Veaceslav Falico
2014-05-23 6:35 ` Linus Gasser
2014-05-21 15:55 ` Nikolay Aleksandrov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=537CCC6B.60909@redhat.com \
--to=nikolay@redhat.com \
--cc=list@markas-al-nour.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).