I have headless rpi3. I have problem when I connect RPi ethernet directly to PC. Network is going down after a while. My /etc/network/interfaces:
auto lo iface lo inet loopback auto eth0 allow-hotplug eth0 iface eth0 inet dhcp auto eth0:0 iface eth0:0 inet static address 192.168.2.222/24 netmask 255.255.255.0
I am able to use both eth0 and eth0:0 when I connect it to my router with: 192.168.2.35-> eth0 192.168.2.222->eth0.0.
After that when I connect RPi to my PC directly, I can reach RPi over 192.168.2.222 for a while than it is gone. I dont know why. Why it is like that? How can I fix it?