After verifying the loss with
Code: Select all
#ping 8.8.8.8
1. Start networking in case it was stopped:
Code: Select all
#/etc/init.d/networking start
[ ok ] Starting networking (via systemctl): networking.service.
Code: Select all
# ifconfig -a
eth0 Link encap:Ethernet HWaddr d0:50:99:5b:c2:4a
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:18
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:123 errors:0 dropped:0 overruns:0 frame:0
TX packets:123 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:12291 (12.0 KiB) TX bytes:12291 (12.0 KiB)
Code: Select all
# systemctl status networking.service
Code: Select all
networking.service - LSB: Raise network interfaces.
Loaded: loaded (/etc/init.d/networking)
Drop-In: /run/systemd/generator/networking.service.d
└─50-insserv.conf-$network.conf
/lib/systemd/system/networking.service.d
└─network-pre.conf
Active: active (exited) since Fri 2016-12-30 16:44:56 CST; 10s ago
Process: 2116 ExecStop=/etc/init.d/networking stop (code=exited, status=0/SUCCESS)
Process: 2059 ExecReload=/etc/init.d/networking reload (code=exited, status=0/SUCCESS)
Process: 2401 ExecStart=/etc/init.d/networking start (code=exited, status=0/SUCCESS)
Dec 30 16:44:56 debianmain systemd[1]: Starting LSB: Raise network interfaces....
Dec 30 16:44:56 debianmain networking[2401]: Configuring network interfaces...done.
Dec 30 16:44:56 debianmain systemd[1]: Started LSB: Raise network interfaces..
Code: Select all
$sudo dhclient eth0
Code: Select all
$ ping 8.8.8.8
Code: Select all
sudo apt-get purge network-manager
sudo apt-get install network-manager
sudo /etc/init.d/network-manager start