Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Using relay bridge for better cni compatibility #191

Closed
YaoZengzeng opened this issue Aug 4, 2017 · 1 comment
Closed

Using relay bridge for better cni compatibility #191

YaoZengzeng opened this issue Aug 4, 2017 · 1 comment

Comments

@YaoZengzeng
Copy link
Contributor

Steps:

  1. Delete all the network configuration in the net ns

  2. Setup one relay bridge in net ns and another one in host

  3. Use one pair of veth device to connect the two relay bridge

  4. Connect the "eth0" in netns to relay bridge in net ns

  5. Configure the hyperContainer's network by cni result and the name of relay bridge in host

  6. Connect the "tap0" device of hyperContainer to relay device in host

Now all works!

Data flow:
veth in host --> veth in ns (the original "eth0") --> relay bridge in ns --> veth for connection in ns
--> veth for connection in host --> relay bridge in host --> "tap0" of hyperContainer

@feiskyer
Copy link
Contributor

Added in #192.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants