Manage 3G modem with ModemManager through Network Manager
Dan Williams
dcbw at redhat.com
Thu Mar 30 16:48:50 UTC 2017
On Thu, 2017-03-30 at 11:39 +0200, Francesco Andrisani wrote:
> This is my NetworkManager Log in debug mode...i don't see anything
> about
> ModemManager
I'm a bit late to the party here, and I see you've solved it already,
but from these logs it doesn't look like the WWAN device plugin is
built or installed. Otherwise you'd see a message like:
NetworkManager[29785]: <info> [1490866215.7743] Loaded device plugin:
NMWwanFactory (/usr/lib/NetworkManager/libnm-device-plugin-wwan.so)
Dan
> NetworkManager --debug
> NetworkManager[29785]: <info> [1490866215.3670] NetworkManager
> (version
> 1.2.6-1.fc24) is starting...
> NetworkManager[29785]: <info> [1490866215.3717] Read config:
> /etc/NetworkManager/NetworkManager.conf
> NetworkManager[29785]: <info> [1490866215.3966] manager[0xab3010e8]:
> monitoring kernel firmware directory '/lib/firmware'.
> NetworkManager[29785]: <info> [1490866215.4118] dns-mgr[0xab2f3520]:
> init:
> dns=default, rc-manager=symlink
> NetworkManager[29785]: <info> [1490866215.4346] rfkill1: found WiFi
> radio
> killswitch (at
> /sys/devices/platform/c0000000.soc/c0068000.dw_mmc/mmc_host/mmc1/mmc1
> :0001/mmc1:0001:2/ieee80211/phy0/rfkill1)
> (driver bcmsdh_sdmmc)
> NetworkManager[29785]: <info> [1490866215.4383] rfkill2: found WiFi
> radio
> killswitch (at
> /sys/devices/platform/c0000000.soc/c0068000.dw_mmc/mmc_host/mmc1/mmc1
> :0001/mmc1:0001:2/rfkill/rfkill2)
> (driver bcmsdh_sdmmc)
> NetworkManager[29785]: <info> [1490866215.4435] manager[0xab3010e8]:
> WiFi
> hardware radio set enabled
> NetworkManager[29785]: <info> [1490866215.4456] manager[0xab3010e8]:
> WWAN
> hardware radio set enabled
> NetworkManager[29785]: <info> [1490866215.6148] settings: loaded
> plugin
> ifcfg-rh: (c) 2007 - 2015 Red Hat, Inc. To report bugs please use
> the
> NetworkManager mailing list.
> (/usr/lib/NetworkManager/libnm-settings-plugin-ifcfg-rh.so)
> NetworkManager[29785]: <info> [1490866215.6181] settings: loaded
> plugin
> iBFT: (c) 2014 Red Hat, Inc. To report bugs please use the
> NetworkManager
> mailing list. (/usr/lib/NetworkManager/libnm-settings-plugin-ibft.so)
> NetworkManager[29785]: <info> [1490866215.6203] settings: loaded
> plugin
> keyfile: (c) 2007 - 2015 Red Hat, Inc. To report bugs please use the
> NetworkManager mailing list.
> NetworkManager[29785]: <info> [1490866215.6303] ifcfg-rh: new
> connection
> /etc/sysconfig/network-scripts/ifcfg-eth0
> (5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03,"System eth0")
> NetworkManager[29785]: <warn> [1490866215.6444] keyfile: error
> loading
> connection from file /etc/NetworkManager/system-connections/Modem:
> File
> permissions (100644) were insecure
> NetworkManager[29785]: <info> [1490866215.7639] settings: hostname:
> using
> hostnamed
> NetworkManager[29785]: <info> [1490866215.7641] settings: hostname
> changed
> from (none) to ""
> NetworkManager[29785]: <info> [1490866215.7648] manager: WiFi
> enabled by
> radio killswitch; enabled by state file
> NetworkManager[29785]: <info> [1490866215.7650] manager: WWAN
> enabled by
> radio killswitch; enabled by state file
> NetworkManager[29785]: <info> [1490866215.7651] manager: Networking
> is
> enabled by state file
> NetworkManager[29785]: <info> [1490866215.7654] Loaded device
> plugin:
> NMVxlanFactory (internal)
> NetworkManager[29785]: <info> [1490866215.7655] Loaded device
> plugin:
> NMVlanFactory (internal)
> NetworkManager[29785]: <info> [1490866215.7656] Loaded device
> plugin:
> NMVethFactory (internal)
> NetworkManager[29785]: <info> [1490866215.7657] Loaded device
> plugin:
> NMTunFactory (internal)
> NetworkManager[29785]: <info> [1490866215.7657] Loaded device
> plugin:
> NMMacvlanFactory (internal)
> NetworkManager[29785]: <info> [1490866215.7658] Loaded device
> plugin:
> NMIPTunnelFactory (internal)
> NetworkManager[29785]: <info> [1490866215.7659] Loaded device
> plugin:
> NMInfinibandFactory (internal)
> NetworkManager[29785]: <info> [1490866215.7660] Loaded device
> plugin:
> NMEthernetFactory (internal)
> NetworkManager[29785]: <info> [1490866215.7661] Loaded device
> plugin:
> NMBridgeFactory (internal)
> NetworkManager[29785]: <info> [1490866215.7662] Loaded device
> plugin:
> NMBondFactory (internal)
> NetworkManager[29785]: <info> [1490866215.7743] Loaded device
> plugin:
> NMWifiFactory (/usr/lib/NetworkManager/libnm-device-plugin-wifi.so)
> NetworkManager[29785]: <info> [1490866215.7771] device (br-lan):
> link
> connected
> NetworkManager[29785]: <info> [1490866215.7808] manager: (br-lan):
> new
> Bridge device (/org/freedesktop/NetworkManager/Devices/0)
> NetworkManager[29785]: <info> [1490866215.8260] ifcfg-rh: add
> connection
> in-memory (93994c24-e9b4-4c24-b245-3cbb6b5b5ee1,"br-lan")
> NetworkManager[29785]: <info> [1490866215.8307] device (br-lan):
> state
> change: unmanaged -> unavailable (reason 'connection-assumed') [10 20
> 41]
> NetworkManager[29785]: <info> [1490866215.8440] device (br-lan):
> state
> change: unavailable -> disconnected (reason 'connection-assumed') [20
> 30 41]
> NetworkManager[29785]: <info> [1490866215.8638] device (br-lan):
> Activation: starting connection 'br-lan'
> (93994c24-e9b4-4c24-b245-3cbb6b5b5ee1)
> NetworkManager[29785]: <info> [1490866215.8674] device (p2p0):
> driver
> '(null)' does not support carrier detection.
> NetworkManager[29785]: <info> [1490866215.8702] device (p2p0):
> driver
> 'p2p' does not support carrier detection.
> NetworkManager[29785]: <info> [1490866215.8767] manager: (p2p0): new
> Ethernet device (/org/freedesktop/NetworkManager/Devices/1)
> NetworkManager[29785]: <info> [1490866215.8951] ifcfg-rh: add
> connection
> in-memory (3a672292-822f-3af1-976e-a959b5b6e90e,"Wired connection 1")
> NetworkManager[29785]: <info> [1490866215.9012] settings: (p2p0):
> created
> default wired connection 'Wired connection 1'
> NetworkManager[29785]: <info> [1490866215.9203] device (p2p0): state
> change: unmanaged -> unavailable (reason 'managed') [10 20 2]
> NetworkManager[29785]: <info> [1490866215.9435] device (lo): link
> connected
> NetworkManager[29785]: <info> [1490866215.9499] manager: (lo): new
> Generic
> device (/org/freedesktop/NetworkManager/Devices/2)
> NetworkManager[29785]: <info> [1490866215.9595] manager: (tap0): new
> Tun
> device (/org/freedesktop/NetworkManager/Devices/3)
> NetworkManager[29785]: <info> [1490866215.9927] keyfile: add
> connection
> in-memory (09b1f5d5-11ee-451d-8c13-0284d047c4ce,"tap0")
> NetworkManager[29785]: <info> [1490866215.9986] device (tap0): state
> change: unmanaged -> unavailable (reason 'connection-assumed') [10 20
> 41]
> NetworkManager[29785]: <info> [1490866216.0134] device (tap0): state
> change: unavailable -> disconnected (reason 'connection-assumed') [20
> 30 41]
> NetworkManager[29785]: <info> [1490866216.0210] device (tap0):
> Activation:
> starting connection 'tap0' (09b1f5d5-11ee-451d-8c13-0284d047c4ce)
> NetworkManager[29785]: <info> [1490866216.0334] (wlan0): using
> nl80211 for
> WiFi device control
> NetworkManager[29785]: <info> [1490866216.0399] device (wlan0):
> driver
> supports Access Point (AP) mode
> NetworkManager[29785]: <info> [1490866216.0461] manager: (wlan0):
> new
> 802.11 WiFi device (/org/freedesktop/NetworkManager/Devices/4)
> NetworkManager[29785]: <info> [1490866216.0590] device (wlan0):
> state
> change: unmanaged -> unavailable (reason 'managed') [10 20 2]
> NetworkManager[29785]: <info> [1490866216.1243] device (eth0): link
> connected
> NetworkManager[29785]: <info> [1490866216.1298] manager: (eth0): new
> Ethernet device (/org/freedesktop/NetworkManager/Devices/5)
> NetworkManager[29785]: <info> [1490866216.1369] ifcfg-rh: add
> connection
> in-memory (e406481f-e24d-4864-bf29-34ddfafac2f8,"eth0")
> NetworkManager[29785]: <info> [1490866216.1400] device (eth0): state
> change: unmanaged -> unavailable (reason 'connection-assumed') [10 20
> 41]
> NetworkManager[29785]: <info> [1490866216.1457] device (eth0): state
> change: unavailable -> disconnected (reason 'connection-assumed') [20
> 30 41]
> NetworkManager[29785]: <info> [1490866216.1531] device (eth0):
> Activation:
> starting connection 'eth0' (e406481f-e24d-4864-bf29-34ddfafac2f8)
> NetworkManager[29785]: <info> [1490866216.1673] device (br-lan):
> state
> change: disconnected -> prepare (reason 'none') [30 40 0]
> NetworkManager[29785]: <info> [1490866216.1824] policy: set 'br-lan'
> (br-lan) as default for IPv4 routing and DNS
> NetworkManager[29785]: <info> [1490866216.1932] device (tap0): state
> change: disconnected -> prepare (reason 'none') [30 40 0]
> NetworkManager[29785]: <info> [1490866216.1980] device (eth0): state
> change: disconnected -> prepare (reason 'none') [30 40 0]
> NetworkManager[29785]: <info> [1490866216.2056] device (br-lan):
> state
> change: prepare -> config (reason 'none') [40 50 0]
> NetworkManager[29785]: <info> [1490866216.2090] device (p2p0): state
> change: unavailable -> disconnected (reason 'none') [20 30 0]
> NetworkManager[29785]: <info> [1490866216.2160] device (tap0): state
> change: prepare -> config (reason 'none') [40 50 0]
> NetworkManager[29785]: <info> [1490866216.2194] device (eth0): state
> change: prepare -> config (reason 'none') [40 50 0]
> NetworkManager[29785]: <info> [1490866216.2325] device (br-lan):
> state
> change: config -> ip-config (reason 'none') [50 70 0]
> NetworkManager[29785]: <info> [1490866216.2350] device (br-lan):
> IPv4
> config waiting until slaves are ready
> NetworkManager[29785]: <info> [1490866216.2367] device (br-lan):
> IPv6
> config waiting until slaves are ready
> NetworkManager[29785]: <info> [1490866216.2385] device (tap0): state
> change: config -> ip-config (reason 'none') [50 70 0]
> NetworkManager[29785]: <info> [1490866216.2489] device (eth0): state
> change: config -> ip-config (reason 'none') [50 70 0]
> NetworkManager[29785]: <info> [1490866216.2521] device (br-lan):
> bridge
> port eth0 was attached
> NetworkManager[29785]: <info> [1490866216.2539] device (eth0):
> Activation:
> connection 'eth0' enslaved, continuing activation
> NetworkManager[29785]: <info> [1490866216.2591] dhcp-init: Using
> DHCP
> client 'dhclient'
> NetworkManager[29785]: <info> [1490866216.2634] dhcp4 (br-lan):
> activation: beginning transaction (timeout in 45 seconds)
> NetworkManager[29785]: <info> [1490866216.2863] dhcp4 (br-lan):
> dhclient
> started with pid 29808
> NetworkManager[29785]: <info> [1490866216.2889] device (br-lan):
> state
> change: ip-config -> ip-check (reason 'none') [70 80 0]
> NetworkManager[29785]: <info> [1490866216.3062] supplicant:
> wpa_supplicant
> running
> NetworkManager[29785]: <info> [1490866216.3091] device (wlan0):
> supplicant
> interface state: init -> starting
> NetworkManager[29785]: <info> [1490866216.3342] device (eth0): state
> change: ip-config -> secondaries (reason 'none') [70 90 0]
> NetworkManager[29785]: <info> [1490866216.3373] device (eth0): state
> change: secondaries -> activated (reason 'none') [90 100 0]
> NetworkManager[29785]: <info> [1490866216.3390] manager:
> NetworkManager
> state is now CONNECTED_LOCAL
> NetworkManager[29785]: <info> [1490866216.3758] device (eth0):
> Activation:
> successful, device activated.
> NetworkManager[29785]: <info> [1490866216.3805] device (br-lan):
> state
> change: ip-check -> secondaries (reason 'none') [80 90 0]
> NetworkManager[29785]: <info> [1490866216.3843] device (br-lan):
> state
> change: secondaries -> activated (reason 'none') [90 100 0]
> NetworkManager[29785]: <info> [1490866216.3853] manager:
> NetworkManager
> state is now CONNECTED_GLOBAL
> NetworkManager[29785]: <info> [1490866216.4310] device (br-lan):
> Activation: successful, device activated.
> NetworkManager[29785]: <info> [1490866216.5919] device (tap0): state
> change: ip-config -> ip-check (reason 'none') [70 80 0]
> NetworkManager[29785]: <info> [1490866216.6355]
> sup-iface[0xab3128c0,wlan0]: supports 5 scan SSIDs
> NetworkManager[29785]: <info> [1490866216.6416] device (wlan0):
> supplicant
> interface state: starting -> ready
> NetworkManager[29785]: <info> [1490866216.6422] device (wlan0):
> state
> change: unavailable -> disconnected (reason 'supplicant-available')
> [20 30
> 42]
> NetworkManager[29785]: <info> [1490866216.6793] device (tap0): state
> change: ip-check -> secondaries (reason 'none') [80 90 0]
> NetworkManager[29785]: <info> [1490866216.6806] device (tap0): state
> change: secondaries -> activated (reason 'none') [90 100 0]
> NetworkManager[29785]: <info> [1490866216.6948] device (tap0):
> Activation:
> successful, device activated.
> NetworkManager[29785]: <info> [1490866216.7788] dhcp4 (br-
> lan): address
> 192.168.1.148
> NetworkManager[29785]: <info> [1490866216.7797] dhcp4 (br-
> lan): plen 24
> (255.255.255.0)
> NetworkManager[29785]: <info> [1490866216.7800] dhcp4 (br-
> lan): gateway
> 192.168.1.1
> NetworkManager[29785]: <info> [1490866216.7802] dhcp4 (br-
> lan): server
> identifier 192.168.1.1
> NetworkManager[29785]: <info> [1490866216.7803] dhcp4 (br-
> lan): lease
> time 43200
> NetworkManager[29785]: <info> [1490866216.7805] dhcp4 (br-lan):
> nameserver '192.168.1.1'
> NetworkManager[29785]: <info> [1490866216.7807] dhcp4 (br-
> lan): domain
> name 'lan'
> NetworkManager[29785]: <info> [1490866216.7809] dhcp4 (br-lan):
> state
> changed unknown -> bound
> NetworkManager[29785]: <info> [1490866216.7940] manager: startup
> complete
> NetworkManager[29785]: <info> [1490866220.5347] device (wlan0):
> supplicant
> interface state: ready -> inactive
>
> On Thu, Mar 30, 2017 at 11:24 AM, Aleksander Morgado <
> aleksander at aleksander.es> wrote:
>
> > On Thu, Mar 30, 2017 at 11:09 AM, Francesco Andrisani
> > <francesco.andrisani at acotel.com> wrote:
> > > I install Network Manager from Fedora repository....i don't know
> > > if it is
> > > compiled with --with-modem-manager-1.
> > >
> >
> > I hope it is! :)
> >
> > > # nmcli dev
> > > DEVICE TYPE STATE CONNECTI
> > > ON
> > > eth0 ethernet connected eth0
> > > p2p0 ethernet connected p2p0
> > > tap0 tun connected tap0
> > > br-lan bridge connecting (getting IP configuration) br-lan
> > > wlan0 wifi disconnected --
> > > lo loopback unmanaged
> > >
> > >
> > > # mmcli -L
> > >
> > > Found 1 modems:
> > > /org/freedesktop/ModemManager1/Modem/0 [u-blox] SARA-U270
> >
> > That is weird, I believe you should have seen it in the NM dev
> > list.
> > Is there any NetworkManager log saying anything about ModemManager?
> >
> >
> > --
> > Aleksander
> > https://aleksander.es
> >
>
>
>
> _______________________________________________
> ModemManager-devel mailing list
> ModemManager-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel
More information about the ModemManager-devel
mailing list