09 junio 2016

Reiniciar el servicio de red en Ubuntu/Debian.

Sin entorno gráfico:

sudo /etc/init.d/networking restart

Con entorno gráfico:

sudo service network-manager restart

Otra opción:

ifconfig eth0 down
ifconfig eth1 up

En Ubuntu 14.04 lo hacemos de esa forma ya que tiene un bug y no  funciona el servicio networking. Para solucionarlo podemos hacer lo siguiente:

$ sudo apt-get install git 
$ sudo git clone https://github.com/metral/restore_networking.git 
$ cd restore_networking/ 
$ sudo ./restore_networking.sh 

Ahora sí que debería funcionar haciendo lo siguiente:

$ sudo service networking restart