Answer the question
In order to leave comments, you need to log in
How to properly restart the network on the server?
I edited /etc/network/interfaces from initial to view
auto lo
iface lo inet loopback
# The primary network interface
auto enp1s0f0
iface enp1s0f0 inet manual
auto br0
iface br0 inet dhcp
bridge_ports enp1s0f0
bridge_stp off
bridge_fd 0
bridge_maxwait 0
service network restart
Answer the question
In order to leave comments, you need to log in
If I do not confuse anything, then
Sequential execution:
sudo ifdown br0; ifup br0
Sequentially dependent execution
sudo ifdown br0 && ifup br0
It is better to use the first method, because the second one works only if the execution was completed successfully (as if, in reality, the interface can go down but return an execution error). Of course, you need to check it either if you have IPMI or in a virtual machine, or if you have the opportunity to restart.
SSH ceases to respond after the rise, because the tcp session is broken, you need to reconnect.
UPD but to say exactly what is wrong, you need to see the original file. The scale of the changes is not clear. Perhaps your network will not rise at all without a restart (for example, if you rebuild bridges)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question