N
N
Nikolai Konyukhov2016-08-08 12:14:32
ubuntu
Nikolai Konyukhov, 2016-08-08 12:14:32

How to apply changes to /etc/network/interfaces?

There is a live-cd built on the basis of ubuntu server 16.04
After booting, you need to change the network settings from DHCP to static ip
A dialog is displayed to fill in the settings, the result of which is written /etc/network/interfaces, the result looks like this

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
gateway 192.168.0.254

Next, sudo service networking stop/start is executed, but the changes are not applied.
At the same time, if you deliberately make a mistake in intrtfaces, the service will not start, that is, the configuration file is used, but the changes are not applied.
PS NetworkingManager missing
PSS
Helped ip addr flush eth0

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2016-08-08
@sim3x

sudo systemctl restart networking.service

sudo ifdown -a
sudo ifup -a

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question