I have a physical machine running ubuntu server 16.04, and I am having a bit of trouble interacting with it. When I run ifconfig
I see it's public IP address, but when I try to ping it from another machine nothing happens.
What I have been able to do in order to interact with it, is on the server, login as some user, run sudo service networking restart
and then I can interact with the machine remotely (ping for example). However, the second I run exit
or logout
on the server, I can no longer interact with it again.
It's also worth noting that I don't seem to be able to ping anything from the server until I restart the networking like I mentioned just above. Once I restart networking, I can ping out, but again once I log out and in again, I am back where I started.
How can I begin to have the networking setup such that it simply works on boot?
The contents of /etc/network/interfaces
is:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto enp8s0
iface enp8s0 inet dhcp
UPDATE:
It would appear that even after restarting the networking service, I can still only intermittently ping it.
lshw
tells me the card is aRTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
– Jun 14 '16 at 15:34