[Ubuntu] Networking service

Environment : Ubuntu 14.04

Problem :

  1. Failure to restart networking service
  2. Interface eth# not configured

For the first problem, when I try to restart networking service with the commands :

sudo /etc/init.d/networking restart


sudo service networking restart

I got this message :

stop: Job failed while stopping
start: Job is already running: networking

Solution is we can restart with force by using command (# : the number of network interface) :

sudo ifdown eth# && sudo ifup eth#

The second problem is following by the first, when typing the solution command, another error message came out :

ifdown: interface eth# not configured

The solution is to add the interface into its configuration file (I used vim here) :

sudo vim /etc/network/interfaces

by adding something like (if your ip address is distributed by DHCP):

auto eth#
iface eth# inet dhcp

Active your network interface that u just added :

sudo ifup eth#

Check your work by using ifconfig, u will see the result.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s