I cannot configure enp2s0
interface despite going through forum and many instruction pages. The interface does not show ip address in configuration though the interface is UP.
Cable is working. Tested on other devices, and with tester.
These are the contents of /etc/network/interfaces
file:
#the loopback network interface
auto lo
iface lo inet loopb
auto enp2s0
iface enp2s0 int static
address 192.168.1.10
gateway 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
iface enp2s0 inet dhcp
I have already tried restarting the Network Manager and bringing the interface down and back up again. What else do I need to do?
int
should beinet
) (2) you can't define an interface as bothstatic
anddhcp
(3) if this is a desktop OS you should probably be using the network-manager GUI instead – steeldriver Jan 08 '17 at 14:45/etc/NetworkManager/NetworkManager.conf
? Add it to your question please. – Thomas Jan 08 '17 at 14:46