Skip to content

Instantly share code, notes, and snippets.

@mustmodify
Created September 23, 2018 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mustmodify/531e7d779ffcba336f7b53957d017f26 to your computer and use it in GitHub Desktop.
Save mustmodify/531e7d779ffcba336f7b53957d017f26 to your computer and use it in GitHub Desktop.
jw@logopolis:~$ systemctl status networking.service
● networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2018-09-23 14:42:20 CDT; 6s ago
Docs: man:interfaces(5)
Process: 18832 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
Process: 18827 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "$(ifquery --read-environment --list --exclude=lo)" ] && udevadm settle (code=exited, st
Main PID: 18832 (code=exited, status=1/FAILURE)
Sep 23 14:42:20 logopolis dhclient[18855]: than a configuration issue please read the section on submitting
Sep 23 14:42:20 logopolis dhclient[18855]: bugs on either our web page at www.isc.org or in the README file
Sep 23 14:42:20 logopolis dhclient[18855]: before submitting a bug. These pages explain the proper
Sep 23 14:42:20 logopolis dhclient[18855]: process and the information we find helpful for debugging..
Sep 23 14:42:20 logopolis ifup[18832]: Failed to bring up eth0.
Sep 23 14:42:20 logopolis dhclient[18855]:
Sep 23 14:42:20 logopolis dhclient[18855]: exiting.
Sep 23 14:42:20 logopolis systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Sep 23 14:42:20 logopolis systemd[1]: networking.service: Failed with result 'exit-code'.
Sep 23 14:42:20 logopolis systemd[1]: Failed to start Raise network interfaces.
jw@logopolis:~$ cat ~/etc-network-interfaces-16-04
# 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
dns-nameservers 8.8.8.8 8.8.4.4
# The primary network interface
auto enp2s0
iface enp2s0 inet dhcp
jw@logopolis:~$ sudo cat /etc/network/interfaces
# The loopback network interface
auto eth0
iface eth0 inet dhcp
#dns-nameservers 1.1.1.1 8.8.8.8
# The primary network interface
#auto enp2s0
#iface enp2s0 inet dhcp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment