How to restart the networking after changing the network configuration?
Tom H
tomh0665 at gmail.com
Fri May 13 22:03:22 UTC 2016
On Fri, May 13, 2016 at 3:51 PM, Stephen P. Molnar
<s.molnar at sbcglobal.net>> wrote:
>
> as root dhclient eth0
>
> ------ Original Message ------
> From: "Zhengyu Guo" <zhengyuguobuaa at gmail.com>>
> To: ubuntu-users at lists.ubuntu.com
> Sent: 5/13/2016 9:15:22 AM
> Subject: How to restart the networking after changing the network
> configuration?
>>
>> 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.
If you're using dhcp and not using "/etc/network/interfaces", you'd
have to run "dhclient -r <physical_nic>", set up the bridge manually,
"dhclient <bridge>".
More information about the ubuntu-users
mailing list