Bug 9960 - Mobile Broadband issue, connection configured but cannot resolve hostname
Summary: Mobile Broadband issue, connection configured but cannot resolve hostname
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2013-05-03 10:26 CEST by jorna j
Modified: 2015-03-31 03:51 CEST (History)
5 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description jorna j 2013-05-03 10:26:58 CEST

    
Comment 1 jorna j 2013-05-03 10:31:03 CEST
USB modem used was Huawei EC176-2.
Location was Indonesia.
ISP was listed during connection setup and auto-configured the connection.
Comment 2 Sander Lepik 2013-05-03 10:40:13 CEST
What did you use to configure the connection? NetworkManager or Mageia's tools?

Keywords: (none) => NEEDINFO
CC: (none) => sander.lepik
Component: Release (media or process) => RPM Packages

Comment 3 jorna j 2013-05-03 15:12:36 CEST
(In reply to Sander Lepik from comment #2)
> What did you use to configure the connection? NetworkManager or Mageia's
> tools?

I used to one on the top-right of the screen, on the bar (taskbar?). I'm not sure what that is (Mageia's or NetworkManager) but that is the only one that I used.
Comment 4 Sander Lepik 2013-05-03 15:30:13 CEST
Top-right of the screen sounds like Gnome, so it's probably NetworkManager and the problem is in firewall.

As root check with command ifconfig, what is the device identifier for your USB modem? I'm guessing usb0 or something similar.

Then remember this and edit (again, as root) this file: /etc/shorewall/interfaces

Add your device after other devices like this:

net     usb0    detect

If there are no other devices listed then add the above line after this line:

#ZONE   INTERFACE       BROADCAST       OPTIONS

Save the file and run this command as root: service shorewall reload

This should enable network with USB modem.
Comment 5 jorna j 2013-05-05 12:53:58 CEST
With my very limited knowledge in terminal commands I tried my best to no avail.

Here's the breakdown:

# su

# ifconfig
eth0      Link encap:Ethernet  HWaddr 1C:6F:65:33:A8:A6  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:45 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:24 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1440 (1.4 KiB)  TX bytes:1440 (1.4 KiB)

I assume that my device is lo?

So I have to add:
net   lo   detect

to /etc/shorewall/interfaces

Correct?

But when I tried to run gedit to edit the file I got some errors that I don't understand.

# gedit /etc/shorewall/interfaces

(process:2951): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.

(gedit:2951): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported


** (gedit:2951): WARNING **: Could not connect to session bus

And it ends there.
Comment 6 Sander Lepik 2013-05-05 13:04:20 CEST
Was the USB modem connected? I don't think it was. lo is local loopback.

On the command line you can use vim to edit:

vim /etc/shorewall/interfaces

to edit text in vim you have to press I (as insert) first, then do your changes and press ESC to get out of edit mode, then type :x and press enter to save the file. But lo is not the device you are looking for. I would try with usb0, even if it doesn't show up in ifconfig.
Sander Lepik 2013-05-05 13:04:38 CEST

CC: sysadmin-bugs => (none)

Comment 7 jorna j 2013-05-08 15:40:54 CEST
I connected the USB modem to the laptop myself prior running ifconfig. I did that several times. And yes after I plugged it in I ran ifconfig and the output was the same.

So I edited /etc/shorewall/interfaces adding usb0.

To validate:

# cat /etc/shorewall/interfaces
net	wwan0	detect
net	eth0	detect
net	usb0	detect

Then I ran service shorewall reload, here's the output:

# service shorewall reload
/etc/sysconfig/i18n: line 5: warning: setlocale: LC_NUMERIC: cannot change locale (id_ID.UTF-8): No such file or directory
Redirecting to /bin/systemctl reload shorewall.service
Failed to issue method call: Job type reload is not applicable for unit shorewall.service.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_US.UTF-8:en_US:en",
	LC_ALL = (unset),
	LC_PAPER = "id_ID.UTF-8",
	LC_ADDRESS = "id_ID.UTF-8",
	LC_MONETARY = "id_ID.UTF-8",
	LC_SOURCED = "1",
	LC_NUMERIC = "id_ID.UTF-8",
	LC_TELEPHONE = "id_ID.UTF-8",
	LC_MESSAGES = "en_US.UTF-8",
	LC_COLLATE = "en_US.UTF-8",
	LC_IDENTIFICATION = "id_ID.UTF-8",
	LC_MEASUREMENT = "id_ID.UTF-8",
	LC_CTYPE = "en_US.UTF-8",
	LC_TIME = "en_US.UTF-8",
	LC_NAME = "id_ID.UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

I did all this as ROOT btw.

I then retried the connection but the same, no connection ever made.
I did a reboot the retry, still the same.
Comment 8 Sander Lepik 2013-05-08 15:44:46 CEST
After setting up connection, what do you see in /etc/resolv.conf ?
Comment 9 jorna j 2013-05-08 16:39:19 CEST
Here it is:

# cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_US.UTF-8:en_US:en",
	LC_ALL = (unset),
	LC_PAPER = "id_ID.UTF-8",
	LC_ADDRESS = "id_ID.UTF-8",
	LC_MONETARY = "id_ID.UTF-8",
	LC_SOURCED = "1",
	LC_NUMERIC = "id_ID.UTF-8",
	LC_TELEPHONE = "id_ID.UTF-8",
	LC_MESSAGES = "en_US.UTF-8",
	LC_IDENTIFICATION = "id_ID.UTF-8",
	LC_COLLATE = "en_US.UTF-8",
	LC_MEASUREMENT = "id_ID.UTF-8",
	LC_CTYPE = "en_US.UTF-8",
	LC_TIME = "en_US.UTF-8",
	LC_NAME = "id_ID.UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Comment 10 Sander Lepik 2013-05-08 16:41:31 CEST
It seems you are missing nameservers. Can you reconfigure your connection and add some nameservers? For example nameservers from Google: 8.8.8.8 and 8.8.4.4
Comment 11 jorna j 2013-05-09 15:14:15 CEST
I added the nameservers:

# cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN

search .
nameserver 8.8.4.4
nameserver 8.8.8.8


Then I tried the connection, still no go. The same problem persists.

Although, this time I noticed that my modem blinks intermittently, it should blink consistently whenever connection successfully made.

I tried my modem in Windows just in case but it works fine.

Perhaps Mageia does not support my modem after all?
Comment 12 Pablo Saratxaga 2013-06-06 15:34:59 CEST
ifconfig will only show network interfaces that are already up.

to see all network hardware (supported or not) on your computer run this:
   lspcidrake -v | grep NETWORK

(and to end those annoying locale error messages, install locales-id: urpmi locales-id, or search and install locales-id in rpmdrake)

it's possible you network card needs some special firmware.
If the mageia tools are aware of that, they will either install it, or tell you; you can try running drakhardware (or mageai control center -> hardware) and search for your card.

CC: (none) => pablo

Comment 13 Frank Griffin 2013-06-06 15:54:20 CEST
Open a terminal window, switch to root, and issue "journalctl -a -f".  Then plug in your modem and take note of the messages generated.  They should at least contain the "/dev/xxx" name assigned to the device, as well as any errors encountered.

Now open another terminal, switch to root, and issue "drakconnect".  Select "wireless", and see whether any devices get displayed.  If so, MGA recognizes your device's PCI signature.  If not, it does not.  Let us know which.

CC: (none) => ftg

Comment 14 jorna j 2013-07-06 15:04:23 CEST
I'm sorry that it took me a long time to reply.

Here's my "journalctl -a -f" output when I plug in the modem:
Jul 06 13:32:18 localhost kernel: usb 3-2: new full-speed USB device number 3 using uhci_hcd
Jul 06 13:32:18 localhost kernel: usb 3-2: New USB device found, idVendor=12d1, idProduct=1505
Jul 06 13:32:18 localhost kernel: usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=4
Jul 06 13:32:18 localhost kernel: usb 3-2: Product: HUAWEI Mobile
Jul 06 13:32:18 localhost kernel: usb 3-2: Manufacturer: HUAÿWEI TECHNOLOGIES
Jul 06 13:32:18 localhost kernel: usb 3-2: SerialNumber: ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
Jul 06 13:32:18 localhost mtp-probe[3014]: checking bus 3, device 3: "/sys/devices/pci0000:00/0000:00:1d.2/usb3/3-2"
Jul 06 13:32:18 localhost mtp-probe[3014]: bus: 3, device: 3 was not an MTP device
Jul 06 13:32:18 localhost kernel: Initializing USB Mass Storage driver...
Jul 06 13:32:18 localhost kernel: scsi2 : usb-storage 3-2:1.0
Jul 06 13:32:18 localhost kernel: usbcore: registered new interface driver usb-storage
Jul 06 13:32:18 localhost kernel: USB Mass Storage support registered.
Jul 06 13:32:19 localhost usb_modeswitch[3027]: switching device 12d1:1505 on 003/003
Jul 06 13:32:19 localhost kernel: usb 3-2: USB disconnect, device number 3
Jul 06 13:32:22 localhost kernel: usb 3-2: new full-speed USB device number 4 using uhci_hcd
Jul 06 13:32:23 localhost kernel: usb 3-2: New USB device found, idVendor=12d1, idProduct=140c
Jul 06 13:32:23 localhost kernel: usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=4
Jul 06 13:32:23 localhost kernel: usb 3-2: Product: HUAWEI Mobile
Jul 06 13:32:23 localhost kernel: usb 3-2: Manufacturer: HUAÿWEI TECHNOLOGIES
Jul 06 13:32:23 localhost kernel: usb 3-2: SerialNumber: ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
Jul 06 13:32:23 localhost kernel: option 3-2:1.0: GSM modem (1-port) converter detected
Jul 06 13:32:23 localhost kernel: usb 3-2: GSM modem (1-port) converter now attached to ttyUSB0
Jul 06 13:32:23 localhost kernel: option 3-2:1.2: GSM modem (1-port) converter detected
Jul 06 13:32:23 localhost kernel: usb 3-2: GSM modem (1-port) converter now attached to ttyUSB1
Jul 06 13:32:23 localhost kernel: option 3-2:1.3: GSM modem (1-port) converter detected
Jul 06 13:32:23 localhost kernel: usb 3-2: GSM modem (1-port) converter now attached to ttyUSB2
Jul 06 13:32:23 localhost kernel: scsi4 : usb-storage 3-2:1.4
Jul 06 13:32:23 localhost mtp-probe[3034]: checking bus 3, device 4: "/sys/devices/pci0000:00/0000:00:1d.2/usb3/3-2"
Jul 06 13:32:23 localhost mtp-probe[3034]: bus: 3, device: 4 was not an MTP device
Jul 06 13:32:23 localhost kernel: usbcore: registered new interface driver cdc_wdm
Jul 06 13:32:23 localhost kernel: qmi_wwan 3-2:1.1: cdc-wdm0: USB WDM device
Jul 06 13:32:23 localhost kernel: qmi_wwan 3-2:1.1 wwan0: register 'qmi_wwan' at usb-0000:00:1d.2-2, WWAN/QMI device, 2a:b3:19:d5:8b:4a
Jul 06 13:32:23 localhost kernel: usbcore: registered new interface driver qmi_wwan
Jul 06 13:32:23 localhost ifplugd(wwan0)[3091]: ifplugd 0.28 initializing.
Jul 06 13:32:23 localhost ifplugd(wwan0)[3091]: Using interface wwan0/2A:B3:19:D5:8B:4A with driver <qmi_wwan> (version: 22-Aug-2005)
Jul 06 13:32:23 localhost ifplugd(wwan0)[3091]: Using detection mode: SIOCETHTOOL
Jul 06 13:32:23 localhost ifplugd(wwan0)[3091]: Initialization complete, link beat detected.
Jul 06 13:32:23 localhost ifplugd(wwan0)[3091]: Executing '/etc/ifplugd/ifplugd.action wwan0 up'.
Jul 06 13:32:24 localhost kernel: scsi 4:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 0
Jul 06 13:32:24 localhost kernel: scsi 4:0:0:1: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
Jul 06 13:32:24 localhost kernel: sr0: scsi-1 drive
Jul 06 13:32:24 localhost kernel: cdrom: Uniform CD-ROM driver Revision: 3.20
Jul 06 13:32:24 localhost kernel: sr 4:0:0:0: Attached scsi CD-ROM sr0
Jul 06 13:32:24 localhost kernel: sd 4:0:0:1: [sdb] Attached SCSI removable disk
Jul 06 13:32:24 localhost kernel: NET: Registered protocol family 17
Jul 06 13:32:24 localhost dhclient[3125]: DHCPDISCOVER on wwan0 to 255.255.255.255 port 67 interval 4
Jul 06 13:32:25 localhost avahi-daemon[724]: Registering new address record for fe80::28b3:19ff:fed5:8b4a on wwan0.*.
Jul 06 13:35:04 localhost mgaapplet[2726]: Checking Network: seems disabled


Then I proceed with drakconnect > Wireless (WiFi), it seems the modem is not detected, since all I got is this option:

Select the network interface to configure:
: Use a Windows driver (with ndiswrapper)

No other option is available.
Comment 15 Florian Hubold 2014-02-07 22:26:55 CET
(In reply to jorna j from comment #14)
> I'm sorry that it took me a long time to reply.
> Then I proceed with drakconnect > Wireless (WiFi), it seems the modem is not
> detected, since all I got is this option:

Probably a typo from Frank, you should try for a 3G modem via drakconnect -> GPRS/Edge/3G.

Does that work?

CC: (none) => doktor5000

Comment 16 Nic Baxter 2015-03-31 03:51:36 CEST
Since there are insufficient details provided in this report for us to investigate the issue further, and we have not received feedback to the information we have requested above, we will assume the problem was not reproducible, or has been fixed in one of the updates we have released for the reporter's distribution.

Users who have experienced this problem are encouraged to upgrade to the latest update of their distribution, and if this issue turns out to still be reproducible in the latest update, please reopen this bug with additional information.

Closing as OLD.

Status: NEW => RESOLVED
CC: (none) => nic
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.