how to debug NetworkManager ?

JB jb.1234abcd at gmail.com
Mon Oct 11 08:19:34 UTC 2010


cornel panceac <cpanceac <at> gmail.com> writes:

> 
> what's the best way to debug nm? i tried to connect to an dsl modem and nm is
not setting the gateway. to check if is is modem's fault, i disabled nm, and
used dhclient to get the address. this way i have gateway set up. -- When one
door is closed, another is open.(Robert Nesta Marley)
> 

Hi,
nm will use dhclient if configured.
So, first enable nm and configure your interface (DSL, I assume):
Right click panel nm icon, select Edit Connections ...
Select DSL, select interface, Edit...
check off Automatically ...
select tab IPv4 Settings
Method: Automatic (DHCP)
check off Require IPv4...
leave Routes... empty and unchecked
check off Available to all users
select tab IPv6 Settings
Method: Ignore
click Apply to finish

and best would be to reboot and back to your desktop (with nm).

At this point you should see some processes and data to verify and work with:
note: this is my machine. 
# ps aux |grep -i dhc
root      2761  0.0  0.1   8708  3408 ?        S    05:59   0:00 /sbin/dhclient
-d -4 -sf /usr/libexec/nm-dhcp-client.action -pf /var/run/dhclient-eth0.pid -lf
/var/lib/dhclient/dhclient-5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03-eth0.lease -cf
/var/run/nm-dhclient-eth0.conf eth0

Look at your nm config data (find your DSL interface ...):
Example for my eth0:
# less /etc/sysconfig/networking/devices/ifcfg-eth0 

Take a look at what you got from your DHCP server at ISP:
# less /var/lib/dhclient/dhclient-5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03-eth0.lease

# route -n
Kernel IP routing table
...

# cat /etc/resolv.conf
...

# cat /etc/hosts
...

$ man dhclient.conf
$ man dhcp-options

You should have enuf to think about.

JB




More information about the test mailing list