A
A
aphazel2019-01-14 13:32:00
linux
aphazel, 2019-01-14 13:32:00

How to make Debian 9.6 listen to /etc/network/interfaces config?

Hi guys! Faced with the inexplicable. They installed the new Debian 9.6 in the DC, I configured the network interface there:

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#allow-hotplug ens192
auto ens192
iface ens192 inet static
        address 192.168.72.152
        netmask 255.255.255.0
        gateway 192.168.72.1
post-up route add -net 192.168.24.0 netmask 255.255.254.0 gw 192.168.72.101
pre-down route del -net 192.168.24.0 netmask 255.255.254.0 gw 192.168.72.101

It seems that everything is set up correctly, but nothing happens on reboot, the interface does not listen to the config - it does not receive an address and does not set routes. At a command dhclientthe address successfully clings. What to do, where to dig?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Cheremisin, 2019-01-14
@leahch

I can’t speak for debian, but in the new ubuntu they switched to https://netplan.io/ and now everything is in /etc/netplan
Also look in the direction of NetworkManager, what if it happens to you and changes the picture of the world? nmcli in your hands

F
Fixid, 2019-01-14
@Fixid

What does he say
service networking restart

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question