LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   IP configured as static but connmand set it to dhcp... (https://www.linuxquestions.org/questions/linux-networking-3/ip-configured-as-static-but-connmand-set-it-to-dhcp-4175602199/)

mr.simo 03-20-2017 11:23 AM

IP configured as static but connmand set it to dhcp...
 
Hi all,

I am facing an IP assignment problem for the eth0 interface on my Debian distro: even if I configure the /etc/network/interfaces to have a static IP address on eth0, after booting the IP assigned is different from the static one..

Here is the content of the /etc/network/interfaces file:

Code:

auto eth0
iface eth0 inet static
address 192.168.16.168
netmask 255.255.224.0
network 192.168.16.0
dns-nameservers 8.8.8.8 8.8.4.4
iface usb0 inet static
address 192.168.7.2
netmask 255.255.255.252
network 192.168.7.0
gateway 192.168.7.1
auto ppp0
iface ppp0 inet wvdial

After looking at the logs and executing journactl I noticed that connmand seems to be the responsable for this:

Code:

Mar 20 16:11:45 myhostname connmand[646]: Skipping disconnect of carrier, network is connecting.
Mar 20 16:11:45 myhostname connmand[646]: eth0 {add} route fe80:: gw :: scope 0 <UNIVERSE>
Mar 20 16:11:45 myhostname connmand[646]: eth0 {add} address 192.168.0.160/19 label eth0 family 2
Mar 20 16:11:45 myhostname connmand[646]: eth0 {add} route 192.168.0.0 gw 0.0.0.0 scope 253 <LINK>
Mar 20 16:11:45 myhostname connmand[646]: eth0 {add} route 192.168.0.253 gw 0.0.0.0 scope 253 <LINK>
Mar 20 16:11:45 myhostname connmand[646]: eth0 {add} route 4.4.4.4 gw 192.168.0.253 scope 0 <UNIVERSE>
Mar 20 16:11:45 myhostname connmand[646]: eth0 {add} route 8.8.8.8 gw 192.168.0.253 scope 0 <UNIVERSE>
Mar 20 16:11:45 myhostname connmand[646]: eth0 {add} route 0.0.0.0 gw 192.168.0.253 scope 0 <UNIVERSE>

Initially I thought the problem was related with IPv6 and avahi-daemon, and after disabling both, the problem persists.

How do I get rid of this connmand behaviour and leave the IP as static ?
Thanks in advance.
Regards,
S.

mr.simo 03-20-2017 11:45 AM

Well, disabling connman.service and unistalling connman seems to resolve my problems.
I already read somewhere that I am not the only one annoyed by it..

S.


All times are GMT -5. The time now is 04:35 AM.