My current environment is following; in Windows 10 I have installed Ubuntu 16.04 in Hyper-V, this hosted Ubuntu is connected to local network 10.10.10.*, where Ubuntu's IP is 10.10.10.1 and Windows's 10.10.10.100. They see each other and all is good. Inside Ubuntu, I have LXC/LXD containers (nginx, postgres and nodejs service) and for these containers I have bridged network called chyrrybr0 with addresses 10.10.0.*, so current environment look like this:
I'm able to ping Windows from containers, but I'm not able to ping or connect to containers from Windows. So, my question is following: how can I add a new network interface to containers, so I'll be able to setup static IP addresses to 10.10.10.*?
I'm trying to create a network, what's looks like this:
EDIT: I was able to add new eth1 interface. At first, in Ubuntu host I'd run
lxc network attach eth1 postgres eth1 and then in postgres container I'd added network interface configuration
10-win-network.cfg with content
auto eth1 iface eth1 inet static address 10.10.10.5 netmask 255.255.255.0
But, from now, I'm not able to ping Windows host at 10.10.10.100 (
100% packet loss) and also Ubuntu host at 10.10.10.1 (
icmp_seq=1 Destination Host Unreachable). But ping at 10.10.0.249 (IP address of Ubuntu host at cherrybr0) is succesful. What am I missing?