I have a minimal installation of 16.04 on a singleboard computer, the network interfaces are configured through the interfaces file (network manager is not installed).
auto eth0 iface eth0 inet dhcp auto eth0:1 iface eth0:1 inet static address 10.0.0.31 auto eth0:2 iface eth0:2 inet static address 10.42.0.31
The virtual interfaces are to handle several potential connection scenarios depending on where the SBC is. I've successfully used this configuration on similar machine running 14.04 for more than a year. Connecting directly to my laptop which is set to "share connection" and gives out IP's 10.42.0.X, the first dhcp connection works but none of the others seem to get configured.
I tried a simpler configuration then:
auto eth0 iface eth0 inet static address 10.0.0.31
The behavior is stranger. Attempting to connect from my laptop via a direct ethernet connection (static IP on both sides now, 10.0.0.50 on the laptop). When I plug the cable in, I cannot ping the SBC from laptop.
From 10.0.0.50 icmp_seq=2 Destination Host Unreachable
If I ping any IP 10.0.0.X from the SBC then the laptop suddenly can find/ping/ssh into the SBC.
- Why aren't the virtual interfaces configured with the first setup?
- Why can't my laptop find the SBC with the static configuration?
- Are these related problems?