First of all, I would like to congratulate the contributors of this amazing project.
My settings are the following:
I have a host with three interfaces: eth0, eth1 and eth2.
I need to interface a container with eth0 and eth1
On the eth0 interface there is a network with a dhcp server (10.10.0.0) . I need to set up the container with an IP from this network.
The eth1 interface is attached to a single board computer with static IP 192.168.1.3 (a robot)
Is it possible to expose to the container one interface with dhcp connected to the 10.10.0.0 network and a second interface eth1 in host mode?
A possible solution
I think that it is possible to create a bridge and bind both eth0 and eth1 to it with brctl addif bridge0 eth0 && brctl addif bridge0 eth0 and create the network with this bridge. Then I can hope that although I have one interface exposed into the container, the bridge will route the packages to the correct interface.
First of all, I would like to congratulate the contributors of this amazing project.
My settings are the following:
Is it possible to expose to the container one interface with dhcp connected to the 10.10.0.0 network and a second interface eth1 in host mode?
A possible solution
I think that it is possible to create a bridge and bind both eth0 and eth1 to it with
brctl addif bridge0 eth0 && brctl addif bridge0 eth0
and create the network with this bridge. Then I can hope that although I have one interface exposed into the container, the bridge will route the packages to the correct interface.