LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-20-2017, 11:23 AM   #1
mr.simo
Member
 
Registered: Feb 2010
Posts: 69

Rep: Reputation: 0
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.
 
Old 03-20-2017, 11:45 AM   #2
mr.simo
Member
 
Registered: Feb 2010
Posts: 69

Original Poster
Rep: Reputation: 0
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.

Last edited by mr.simo; 03-21-2017 at 06:15 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I set up Slackware 9.1 to use DHCP with a static DNS? h00chman Linux - Newbie 2 12-18-2012 09:30 AM
how to get IP is configured in Static or DHCP mode using C program ashok449 Linux - Kernel 1 01-15-2010 05:14 PM
KNetworkManager applying DHCP to static configured Interface Casket Linux - Software 1 10-23-2007 05:50 PM
How to tell whether IP is set as static or DHCP? loadedmind Fedora 6 11-09-2006 11:08 PM
FC2 Overriding static if in favor of dhcp system set for static pkraus109 Linux - Networking 8 09-21-2004 11:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration