I have found the origin of why my mobile broad band connection not always works. It is about the DNS.
Here are two connection attempts. The first one doesn't succeed, but the second does. Both times the log says that the DNS is configured, but the first time it is not. The problem is that network manager not always writes the name servers to /etc/resolv.conf The only text that appear in the file in this case is: ---begin--- # Generated by NetworkManager ---end--- If you manually write the name servers to resolv.conf (sudo gedit /etc/resolv.conf ) as below ---begin--- # Generated by NetworkManager nameserver 80.251.201.177 nameserver 80.251.201.178 ---end--- is works connecting to the mobile gsm broadband, even when nm-tool says no name servers. So, in short when the network-manager log says: --- NetworkManager: <info> Policy set '3 Bredband' (ppp0) as default for routing and DNS. --- The routing is configured as expected, but not always the DNS. nm-tool does not report the DNS, but if you know the DNS you can write it to /etc/resolv.conf and you can still use the Internet connection. pat...@ubuntu:~$ export NM_PPP_DEBUG=1 pat...@ubuntu:~$ pat...@ubuntu:~$ # start networkmanager and put log in /tmp/nm.log.txt pat...@ubuntu:~$ sudo NetworkManager --no-daemon 2>&1 | tee /tmp/nm.log.txt [sudo] password for patrik: NetworkManager: <info> starting... NetworkManager: <info> modem-manager is now available NetworkManager: SCPlugin-Ifupdown: init! NetworkManager: SCPlugin-Ifupdown: update_system_hostname NetworkManager: SCPluginIfupdown: management mode: unmanaged NetworkManager: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/net/eth0, iface: eth0) NetworkManager: SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/net/eth0, iface: eth0): no ifupdown configuration found. NetworkManager: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1c.3/0000:01:00.0/net/wlan0, iface: wlan0) NetworkManager: SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:1c.3/0000:01:00.0/net/wlan0, iface: wlan0): no ifupdown configuration found. NetworkManager: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1c.3/0000:01:00.0/net/wmaster0, iface: wmaster0) NetworkManager: SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:1c.3/0000:01:00.0/net/wmaster0, iface: wmaster0): no ifupdown configuration found. NetworkManager: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/lo, iface: lo) NetworkManager: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/lo, iface: lo): no ifupdown configuration found. NetworkManager: SCPlugin-Ifupdown: end _init. NetworkManager: Loaded plugin ifupdown: (C) 2008 Canonical Ltd. To report bugs please use the NetworkManager mailing list. NetworkManager: Loaded plugin keyfile: (c) 2007 - 2008 Red Hat, Inc. To report bugs please use the NetworkManager mailing list. NetworkManager: <info> Found radio killswitch rfkill3 (at /sys/devices/pci0000:00/0000:00:1c.3/0000:01:00.0/ieee80211/phy0/rfkill3) (driver <unknown>) NetworkManager: <info> Found radio killswitch rfkill0 (at /sys/devices/platform/eeepc/rfkill/rfkill0) (driver eeepc) NetworkManager: <info> Wireless now enabled by radio killswitch NetworkManager: SCPlugin-Ifupdown: (158018848) ... get_connections. NetworkManager: SCPlugin-Ifupdown: (158018848) ... get_connections (managed=false): return empty list. NetworkManager: Ifupdown: get unmanaged devices count: 0 NetworkManager: <info> (eth0): carrier is OFF NetworkManager: <info> (eth0): new Ethernet device (driver: 'ATL1E') NetworkManager: <info> (eth0): exported as /org/freedesktop/NetworkManager/Devices/0 NetworkManager: <info> (eth0): now managed NetworkManager: <info> (eth0): device state change: 1 -> 2 (reason 2) NetworkManager: <info> (eth0): bringing up device. NetworkManager: <info> (eth0): preparing device. NetworkManager: <info> (eth0): deactivating device (reason: 2). NetworkManager: Added default wired connection 'Auto eth0' for /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/net/eth0 NetworkManager: <info> (wlan0): driver supports SSID scans (scan_capa 0x01). NetworkManager: <info> (wlan0): new 802.11 WiFi device (driver: 'ath5k') NetworkManager: <info> (wlan0): exported as /org/freedesktop/NetworkManager/Devices/1 NetworkManager: <info> (wlan0): now managed NetworkManager: <info> (wlan0): device state change: 1 -> 2 (reason 2) NetworkManager: <info> (wlan0): bringing up device. NetworkManager: <info> (wlan0): preparing device. NetworkManager: <info> (wlan0): deactivating device (reason: 2). NetworkManager: <info> (ttyUSB0): new GSM device (driver: 'option1') NetworkManager: <info> (ttyUSB0): exported as /org/freedesktop/NetworkManager/Devices/2 NetworkManager: <info> (ttyUSB0): now managed NetworkManager: <info> (ttyUSB0): device state change: 1 -> 2 (reason 2) NetworkManager: <info> (ttyUSB0): deactivating device (reason: 2). NetworkManager: flush_routes: assertion `iface_idx >= 0' failed NetworkManager: flush_addresses: assertion `iface_idx >= 0' failed NetworkManager: <WARN> default_adapter_cb(): bluez error getting default adapter: The name org.bluez was not provided by any .service files NetworkManager: <info> (ttyUSB0): device state change: 2 -> 3 (reason 0) NetworkManager: <info> (wlan0): supplicant interface state: starting -> ready NetworkManager: <info> (wlan0): device state change: 2 -> 3 (reason 42) NetworkManager: Tried to set deprecated property gsm/band NetworkManager: <info> Activation (ttyUSB0) starting connection '3 Bredband' NetworkManager: <info> (ttyUSB0): device state change: 3 -> 4 (reason 0) NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled... NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started... NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete. NetworkManager: <info> Activation (ttyUSB0) Stage 2 of 5 (Device Configure) scheduled... NetworkManager: <info> Activation (ttyUSB0) Stage 2 of 5 (Device Configure) starting... NetworkManager: <info> (ttyUSB0): device state change: 4 -> 5 (reason 0) NetworkManager: <info> Activation (ttyUSB0) Stage 2 of 5 (Device Configure) successful. NetworkManager: <info> Activation (ttyUSB0) Stage 3 of 5 (IP Configure Start) scheduled. NetworkManager: <info> Activation (ttyUSB0) Stage 2 of 5 (Device Configure) complete. NetworkManager: <info> Activation (ttyUSB0) Stage 3 of 5 (IP Configure Start) started... NetworkManager: <info> (ttyUSB0): device state change: 5 -> 7 (reason 0) NetworkManager: <info> Starting pppd connection NetworkManager: <debug> [1261221402.044817] nm_ppp_manager_start(): Command line: /usr/sbin/pppd nodetach lock nodefaultroute ttyUSB0 noipdefault noauth usepeerdns lcp-echo-failure 0 lcp-echo-interval 0 ipparam /org/freedesktop/NetworkManager/PPP/0 plugin /usr/lib/pppd/2.4.4 /nm-pppd-plugin.so NetworkManager: <debug> [1261221402.055088] nm_ppp_manager_start(): ppp started with pid 2820 NetworkManager: <info> Activation (ttyUSB0) Stage 4 of 5 (IP6 Configure Get) scheduled... NetworkManager: <info> Activation (ttyUSB0) Stage 3 of 5 (IP Configure Start) complete. NetworkManager: <info> Activation (ttyUSB0) Stage 4 of 5 (IP6 Configure Get) started... NetworkManager: <info> Activation (ttyUSB0) Stage 4 of 5 (IP6 Configure Get) complete. Plugin /usr/lib/pppd/2.4.4/nm-pppd-plugin.so loaded. ** Message: nm-ppp-plugin: (plugin_init): initializing ** Message: nm-ppp-plugin: (nm_phasechange): status 3 / phase 'serial connection' Using interface ppp0 Connect: ppp0 <--> /dev/ttyUSB0 ** Message: nm-ppp-plugin: (nm_phasechange): status 5 / phase 'establish' NetworkManager: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0) NetworkManager: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found. ** Message: nm-ppp-plugin: (nm_phasechange): status 6 / phase 'authenticate' ** Message: nm-ppp-plugin: (get_credentials): passwd-hook, requesting credentials... ** Message: nm-ppp-plugin: (get_credentials): got credentials from NetworkManager CHAP authentication succeeded CHAP authentication succeeded ** Message: nm-ppp-plugin: (nm_phasechange): status 8 / phase 'network' Could not determine remote IP address: defaulting to 10.64.64.64 Cannot determine ethernet address for proxy ARP local IP address 95.209.83.239 remote IP address 10.64.64.64 ** Message: nm-ppp-plugin: (nm_phasechange): status 9 / phase 'running' ** Message: nm-ppp-plugin: (nm_ip_up): ip-up event ** Message: nm-ppp-plugin: (nm_ip_up): sending Ip4Config to NetworkManager... NetworkManager: <info> PPP manager(IP Config Get) reply received. NetworkManager: <info> Activation (ttyUSB0) Stage 4 of 5 (IP4 Configure Get) scheduled... NetworkManager: <info> Activation (ttyUSB0) Stage 4 of 5 (IP4 Configure Get) started... NetworkManager: <info> Activation (ttyUSB0) Stage 5 of 5 (IP Configure Commit) scheduled... NetworkManager: <info> Activation (ttyUSB0) Stage 4 of 5 (IP4 Configure Get) complete. NetworkManager: <info> Activation (ttyUSB0) Stage 5 of 5 (IP Configure Commit) started... NetworkManager: <info> (ttyUSB0): device state change: 7 -> 8 (reason 0) NetworkManager: <info> Policy set '3 Bredband' (ppp0) as default for routing and DNS. NetworkManager: <info> Activation (ttyUSB0) successful, device activated. NetworkManager: <info> Activation (ttyUSB0) Stage 5 of 5 (IP Configure Commit) complete. NetworkManager: Tried to set deprecated property gsm/band NetworkManager: Tried to set deprecated property gsm/band NetworkManager: Tried to set deprecated property gsm/band NetworkManager: Tried to set deprecated property gsm/band NetworkManager: Tried to set deprecated property gsm/band NetworkManager: Tried to set deprecated property gsm/band NetworkManager: <info> (ttyUSB0): device state change: 8 -> 3 (reason 39) NetworkManager: <info> (ttyUSB0): deactivating device (reason: 39). -- Error received: Numerical result out of range -- Original message: type=0x19 length=56 flags=<REQUEST,ACK> sequence- nr=1261221410 pid=4197112 NetworkManager: <WARN> check_one_route(): (ppp0) error -34 returned from rtnl_route_del(): Sucess Terminating on signal 15 ** Message: nm-ppp-plugin: (nm_phasechange): status 10 / phase 'terminate' ** Message: nm-ppp-plugin: (nm_phasechange): status 8 / phase 'network' Connect time 2.3 minutes. Sent 0 bytes, received 0 bytes. ** Message: nm-ppp-plugin: (nm_phasechange): status 5 / phase 'establish' ** Message: nm-ppp-plugin: (nm_phasechange): status 11 / phase 'disconnect' Connection terminated. NetworkManager: SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0) ** Message: nm-ppp-plugin: (nm_phasechange): status 1 / phase 'dead' ** Message: nm-ppp-plugin: (nm_exit_notify): cleaning up NetworkManager: <debug> [1261221549.001697] ensure_killed(): waiting for ppp pid 2820 to exit NetworkManager: <debug> [1261221549.002078] ensure_killed(): ppp pid 2820 cleaned up NetworkManager: <info> Activation (ttyUSB0) starting connection '3 Bredband' NetworkManager: <info> (ttyUSB0): device state change: 3 -> 4 (reason 0) NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled... NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started... NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete. NetworkManager: <info> Activation (ttyUSB0) Stage 2 of 5 (Device Configure) scheduled... NetworkManager: <info> Activation (ttyUSB0) Stage 2 of 5 (Device Configure) starting... NetworkManager: <info> (ttyUSB0): device state change: 4 -> 5 (reason 0) NetworkManager: <info> Activation (ttyUSB0) Stage 2 of 5 (Device Configure) successful. NetworkManager: <info> Activation (ttyUSB0) Stage 3 of 5 (IP Configure Start) scheduled. NetworkManager: <info> Activation (ttyUSB0) Stage 2 of 5 (Device Configure) complete. NetworkManager: <info> Activation (ttyUSB0) Stage 3 of 5 (IP Configure Start) started... NetworkManager: <info> (ttyUSB0): device state change: 5 -> 7 (reason 0) NetworkManager: <info> Starting pppd connection NetworkManager: <debug> [1261221564.753815] nm_ppp_manager_start(): Command line: /usr/sbin/pppd nodetach lock nodefaultroute ttyUSB0 noipdefault noauth usepeerdns lcp-echo-failure 0 lcp-echo-interval 0 ipparam /org/freedesktop/NetworkManager/PPP/1 plugin /usr/lib/pppd/2.4.4 /nm-pppd-plugin.so NetworkManager: <debug> [1261221564.780963] nm_ppp_manager_start(): ppp started with pid 2923 NetworkManager: <info> Activation (ttyUSB0) Stage 4 of 5 (IP6 Configure Get) scheduled... NetworkManager: <info> Activation (ttyUSB0) Stage 3 of 5 (IP Configure Start) complete. NetworkManager: <info> Activation (ttyUSB0) Stage 4 of 5 (IP6 Configure Get) started... NetworkManager: <info> Activation (ttyUSB0) Stage 4 of 5 (IP6 Configure Get) complete. Plugin /usr/lib/pppd/2.4.4/nm-pppd-plugin.so loaded. ** Message: nm-ppp-plugin: (plugin_init): initializing ** Message: nm-ppp-plugin: (nm_phasechange): status 3 / phase 'serial connection' Using interface ppp0 Connect: ppp0 <--> /dev/ttyUSB0 ** Message: nm-ppp-plugin: (nm_phasechange): status 5 / phase 'establish' ** Message: nm-ppp-plugin: (nm_phasechange): status 6 / phase 'authenticate' ** Message: nm-ppp-plugin: (get_credentials): passwd-hook, requesting credentials... NetworkManager: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0) NetworkManager: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found. ** Message: nm-ppp-plugin: (get_credentials): got credentials from NetworkManager CHAP authentication succeeded CHAP authentication succeeded ** Message: nm-ppp-plugin: (nm_phasechange): status 8 / phase 'network' Could not determine remote IP address: defaulting to 10.64.64.64 Cannot determine ethernet address for proxy ARP local IP address 95.209.204.226 remote IP address 10.64.64.64 primary DNS address 80.251.201.177 secondary DNS address 80.251.201.178 ** Message: nm-ppp-plugin: (nm_phasechange): status 9 / phase 'running' ** Message: nm-ppp-plugin: (nm_ip_up): ip-up event ** Message: nm-ppp-plugin: (nm_ip_up): sending Ip4Config to NetworkManager... NetworkManager: <info> PPP manager(IP Config Get) reply received. NetworkManager: <info> Activation (ttyUSB0) Stage 4 of 5 (IP4 Configure Get) scheduled... NetworkManager: <info> Activation (ttyUSB0) Stage 4 of 5 (IP4 Configure Get) started... NetworkManager: <info> Activation (ttyUSB0) Stage 5 of 5 (IP Configure Commit) scheduled... NetworkManager: <info> Activation (ttyUSB0) Stage 4 of 5 (IP4 Configure Get) complete. NetworkManager: <info> Activation (ttyUSB0) Stage 5 of 5 (IP Configure Commit) started... NetworkManager: <info> (ttyUSB0): device state change: 7 -> 8 (reason 0) NetworkManager: <info> Policy set '3 Bredband' (ppp0) as default for routing and DNS. NetworkManager: <info> Activation (ttyUSB0) successful, device activated. NetworkManager: <info> Activation (ttyUSB0) Stage 5 of 5 (IP Configure Commit) complete. NetworkManager: Tried to set deprecated property gsm/band NetworkManager: Tried to set deprecated property gsm/band NetworkManager: Tried to set deprecated property gsm/band NetworkManager: Tried to set deprecated property gsm/band NetworkManager: Tried to set deprecated property gsm/band NetworkManager: Tried to set deprecated property gsm/band ** Changed in: network-manager-applet (Ubuntu) Status: Invalid => New -- mobile broadband does not work when REconnected https://bugs.launchpad.net/bugs/478530 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs