Jump to content

Physical NICs to respective containers


Recommended Posts

Trying to get some containers their own IP dresses and i can't seem to be able to figure out a way to do it.  ipvlans break my unifi network and macvlans break my unraid. 

 

I was able to get a container on a separate vlan all together without any issues.  However, using the same methodology doesn't yield the same result without creating a different network for the respective NICs.  In other words, i'm trying to setup 2 NICs for 2 different containers in docker that are on the same network as "br1".  The following steps were done so far:

 

Settings -> network -> eth 2 & eth 3 -> Enable Bonding no -> enable bridging yes -> IPV4 assignment No

 

settings -> docker;

 

Docker custom network type: ipvlan

Host access to custom networks: Disabled

Preserve user defined networks: No

IPv4 custom network on interface br0:

Subnet: 192.168.1.0/27 Gateway: 192.168.1.1 DHCP pool: not set

IPv4 custom network on interface br1:

Subnet: 192.168.40.0/27 Gateway: 192.168.40.1 DHCP pool: not set

IPv4 custom network on interface br2:

Subnet: 192.168.1.0/27 Gateway: 192.168.1.1 DHCP pool: not set

IPv4 custom network on interface br3:

Subnet: 192.168.1.0/27 Gateway: 192.168.1.1 DHCP pool: not set

 

When i select to container, only custom network br0  and br1 show, the other 2 aren't an option. 

 

Any way of doing this?

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...