Skip to content

RJ45 Connections when running CORE in Docker #765

Answered by derkin123
derkin123 asked this question in Q&A
Discussion options

You must be logged in to vote

For anyone who wants to do something like this, I found that you need to create a bridge (I don't think the subnet matters) that is shared by your containers, and then within each container specify the vlans that you want your rj45 nodes to be connected through.

For instance say you have 3 containers, 1 running core-daemon and 2 you want to use through rj45 nodes, you would set up a network like so:

             Rj45-1 container <-> CORE Container <-> Rj45-2 container

Bridge IP: X.X.X.1 X.X.X.2 X.X.X.3
VLAN 1: Y.Y.Y.1 @ eth0.1 Y.Y.Y.2 @ eth0.1 None
VLAN2: None Z.Z.Z.2 @ eth0.2 Z.Z.Z.1 @ eth0.1

You can set up the VLANs via:

RJ45-1 Container
ip link add link eth0 name eth0.1 type vlan id 1

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@derkin123
Comment options

Comment options

You must be logged in to vote
1 reply
@derkin123
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by derkin123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants