Additional information - Again Debian 9.6 Fresh Install without graphical interface:
cat /etc/network/interfaces: # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug enp0s3 iface enp0s3 inet static address 10.5.0.2/24 gateway 10.5.0.1 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 8.8.8.8 dns-search neoconsig.local Just changed 10.5.0.2 to 10.5.0.3 #ifdown enp0s3 #ifup enp0s3 Results in two ips configured instead of changing it: #ip a 2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 08:00:27:7a:16:16 brd ff:ff:ff:ff:ff:ff inet 10.5.0.2/24 brd 10.5.0.255 scope global enp0s3 valid_lft forever preferred_lft forever inet 10.5.0.3/24 brd 10.5.0.255 scope global secondary enp0s3 valid_lft forever preferred_lft forever inet6 fe80::a00:27ff:fe7a:1616/64 scope link valid_lft forever preferred_lft forever Now lets restart the system and try it again but now using systemctl restart networking: After the full reboot the ip changed to 10.5.0.3, respecting /etc/network/interfaces. So, Lets try to change it again from 10.5.0.3 to 10.5.0.2 #systemctl restart networking (connection just disconnected instead of changing the ip) #ping 8.8.8.8 (eternally waiting...) #ip address Still shows the correct information (the ip did not change) Em sex, 23 de nov de 2018 às 11:10, Luciano Andress Martini <analistau...@gmail.com> escreveu: > > If i am phisically logged the behavior are like to be the same. > Em sex, 23 de nov de 2018 às 11:09, Luciano Andress Martini > <analistau...@gmail.com> escreveu: > > > > Thank you Greg i would not like to use NetworkManager, i just tried it > > because all the other ways that i tried did not worked in new Debian > > Versions, after a fresh install so i am searching for a correct way of > > doing things.. (i read documentation, but maybe i am missing > > something) > > > > ifdown and ifup work partially instead of changing the ip, and it is > > adding a new ip to the interface. > > > > service networking restart - just brokes the network connection. > > Em sex, 23 de nov de 2018 às 11:02, Greg Wooledge > > <wool...@eeg.ccf.org> escreveu: > > > > > > On Fri, Nov 23, 2018 at 10:31:28AM -0200, Luciano Andress Martini wrote: > > > > Then I edited /etc/network/interfaces and restart the system, to see > > > > if the ip was changed. And yes, it worked. So this file is still being > > > > used in some way - humm that seems to be the correct place to > > > > configure my interface isn't? > > > > > > /etc/network/interfaces is the primary, supported means of configuring > > > network interfaces in Debian. It's the best choice for standard server > > > and workstation setups. > > > > > > Network-Manager may also be installed (it's optional). As you've already > > > seen, it is installed when choosing a "desktop environment" during the > > > Debian installation, and skipped if no DE is chosen. N-M is apparently > > > the tool of choice for configuring wireless interfaces on laptops. > > > > > > Interfaces that are configured in /e/n/i are skipped by N-M. Thus, > > > you could think of it as "/e/n/i has priority, and N-M gets whatever > > > /e/n/i didn't get". > > > > > > Then there's some bizarre systemd network interface thing. It's not > > > used by default in Debian. I can't imagine anyone ever using it. > > > You can simply ignore it. > > > > > > > > > -- > > Luciano Andress Martini - Analista UNIX > > > > -- > Luciano Andress Martini - Analista UNIX -- Luciano Andress Martini - Analista UNIX