I'm using Ubuntu 15.04 with NetworkManager. I have internet connection on wlan0(dhcp, 192.168.1.0/24) and static ip on eth0(local network, 192.168.124.1/24).
On my virtual machine in VirtualBox i have two interfaces also, eth0 bridged with wlan0(which provides me internet connection, dhcp from router, 192.168.1.0/24) and eth1(which provides me connection to local network, also static ip, 192.168.124.10/24).
When I'm plugged to local network everything works, but when i unplug ethernet cable, NetworkManager brings down eth0 on host and i can't connect to my guest system. I tried setting ip address with ifconfig, it brings up eth0, but I still cant connect to guest system. I noticed, when ethernet cable is plugged, eth0 have RUNNING flag. When I'm setting ip manually, this flag is missing.
Do anyone have idea, how to bring up connection between eth0 on host and eth0 on guest?