Body: <p>I haven't found what I want to do though it seems basic architecture.</p>
  
  <p>On my host I have multiple physical interfaces and <code>docker0</code> by default (that is connected to which interface?!)</p>
  
  <ul>
  <li>One interface <code>eth0</code> is for the host and default network of Docker containers.</li>
  <li>My other interface <code>enp0s20f0u1</code> should be used by only few selected containers in a isolated way. That means nothing else is allowed to connect to this interface.</li>
  </ul>
  
  <p>I guess I need to create a Docker network but I have no way to tell it to use only one interface and nothing else.</p>
  
  <p><strong>Example:</strong>
  - container c1: run without anything => should be connected to <code>docker0</code> and anything else
  - container c2: run with <code>--net=none</code> => no network access, completely isolated
  - container c3: run with <code>--network=myspecificnetwork</code> => connected to <code>enp0s20f0u1</code> and nothing else, isolated</p>
  
  <p>How to create the <code>myspecificnetwork</code> Docker network to use only the interface <code>enp0s20f0u1</code>? And how to block everything else from using this interface? </p>
  
Comments: CC BY-SA 4.0
Comments: 2019-12-23T10:18:37.880Z
Comments: Could you indicate whether you solved the issue?
Comments: 030
Comments: CC BY-SA 4.0
Comments: 2019-12-23T10:48:38.630Z
Comments: not solved, I gave up. Will check again later if I need.
Comments: None
Comments: CC BY-SA 4.0
Comments: 2019-12-23T10:51:43.473Z
Comments: Ok please edit the Q&A when you have new information
Comments: 030
Comments: CC BY-SA 4.0
Comments: 2019-12-23T10:53:04.097Z
Comments: I will for sure ;)
Comments: None
Comments: CC BY-SA 4.0
Comments: 2019-12-23T10:54:19.563Z
Comments: Thanks. Please let me know then I will reopen the Q&A.
Comments: 030
Tags: <docker>
Title: Dedicated physical network interface to containers in an isolated way?
UserDisplayName: None
ThreadText: # Dedicated physical network interface to containers in an isolated way?
  
  (Asked by: username_0 on 2018-08-01)
  
  I haven't found what I want to do though it seems basic architecture.
  
  On my host I have multiple physical interfaces and `docker0` by default (that is connected to which interface?!)
  
  * One interface `eth0` is for the host and default network of Docker containers.
  * My other interface `enp0s20f0u1` should be used by only few selected containers in a isolated way. That means nothing else is allowed to connect to this interface.
  
  I guess I need to create a Docker network but I have no way to tell it to use only one interface and nothing else.
  
  **Example:**
  - container c1: run without anything => should be connected to `docker0` and anything else
  - container c2: run with `--net=username_0` => no network access, completely isolated
  - container c3: run with `--network=myspecificnetwork` => connected to `enp0s20f0u1` and nothing else, isolated
  
  How to create the `myspecificnetwork` Docker network to use only the interface `enp0s20f0u1`? And how to block everything else from using this interface?
  
  **Tags:** docker
  
  > **Comments:**
  > **username_1**: Could you indicate whether you solved the issue?  
  > **username_0**: not solved, I gave up. Will check again later if I need.  
  > **username_1**: Ok please edit the Q&A when you have new information  
  > **username_0**: I will for sure ;)  
  > **username_1**: Thanks. Please let me know then I will reopen the Q&A.  
  
  ---
  
  ## 0 answers
  
  