How to restart the networking after changing the network configuration?

Tom H tomh0665 at gmail.com
Fri May 13 21:59:42 UTC 2016


On Fri, May 13, 2016 at 3:15 PM, Zhengyu Guo <zhengyuguobuaa at gmail.com> wrote:
>
> My question is how to restart the networking after changing the network
> configuration?
>
> I setup a bridge in my machine and I need to restart the network to make it
> work. However, If I use the following command it will not work.
>
> ~~~
> /etc/network$ sudo service networking restart
> Job for networking.service failed because the control process exited with
> error code. See "systemctl status networking.service" and "journalctl -xe"
> for details.
> ~~~
> But if I reboot the machine, the configuration will take effect without any
> problem.
>
> Therefore, I want to know if there are any alternative way that I can use
> for restart the networking without the need for rebooting.

ifdown <physical_nic>

change "/etc/network/interfaces"

ifup <bridge>




More information about the ubuntu-users mailing list