From: Nikolay Borisov <kernel-6AxghH7DbtA@public.gmane.org>
To: "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Connectivity between containers with ipoib interface.
Date: Tue, 9 Aug 2016 17:33:44 +0300 [thread overview]
Message-ID: <57A9E9C8.5060905@kyup.com> (raw)
Hello,
I have multiple containers into which I have put "virtual" ipoib
interface like so:
ip link add link ib0 name ip1 type ipoib
ip link set dev ip1 netns $(pid of container)
The containers are setup with ip addresses from a different subnet
than the "base" addresses on the host-side ib0 interface. With
this setup containers can access other nodes on the infiniband
network with no problems. However, if 2 containers on the same
host node, with ipoib addresses from the same subnet try to
access one another - this doesn't work. The only way to enable
such communication is to play tricks with routing such that
packets exit the container and host node, and are sent to
another physical node on the infiniband network, which then
routes them back to the initial host node. I'd like to avoid
such gymnastics and have connectivity to containers on the
same node without traffic going out the ib0 interface.
I guess what I'm asking for is something similar to the
bridge mode in macvlan/macvtap drivers.
Regards,
Nikolay
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
reply other threads:[~2016-08-09 14:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=57A9E9C8.5060905@kyup.com \
--to=kernel-6axghh7dbta@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.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