Having difficulties to connect to the internet with a USB-UMTS-Modem
Hello,
I've bought an UMTS-Modem Huawei 3G which works with Windows. I've tried to connect to the internet via this device with Slackware-Linux, I'm running Slackware64-current. The Modem is recognized by the system, dmesg shows the expected output and the devicenodes in /dev are created automatically. I've configured ppp. Code:
# /etc/ppp/peers/umts Code:
and the chatscript: Code:
pppd call umts debug nodetach Code:
samsung:~# ifconfig Code:
sent [IPCP ConfReq id=0x4 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>] Code:
samsung:/etc/ppp/peers# tail /var/log/syslog I suppose the message above Code:
Aug 3 13:55:08 samsung pppd[2655]: Could not determine remote IP address: defaulting to 10.64.64.64 Can please anyone give me a hint what's wrong? Thanks in advance. Markus |
I would be tempted to grab WVDIAL and use that. It's available via sbopkg.
|
Quote:
BTW: I used your tutorial in the tutorial-section here at LQ, but the workaround with usb_modeswitch is no longer necessary, at least with current. But thanks anyway, it helped me to find my so far. Markus |
|
Cannot edit my last post, also check:
http://www.linuxquestions.org/questi...huawei-762157/ So make sure you have a valid resolv.conf. Try to ping a known IP. |
Quote:
I think it is a problem with the gateway. I'll read the tutorial from your above post, thanks for the link. Markus |
I've also had success with KPPP (included with kdenetwork) and network manager. Just preferred wvdial.
|
Does your firewall only allow one specified interface to access net, say before it was eth0, but now it's ppp0?
|
I have used wvdial in the past with an internet key with success: if you want to build wvstreams on -current, have a look at the modifications I have done to the build script (click on the "plain" links on the right to download the files).
In /etc/resolv.conf you can also use the public nameservers of your choice, like google's one Code:
nameserver 8.8.8.8 Code:
netstat -rn | grep UG |
i'm using wvdial on 13.37, but some time ago i got it working using only pppd and chat.
Code:
Could not determine remote IP address: defaulting to 10.64.64.64 your /etc/ppp/peers/umts looks quite bloated, i have a rather old modem (huawei e220), so maybe yours needs those features. one thing you could try is following a step-by-step instruction like this one (in german ;) ) this was the one that i used with only the stock-slackware tools available. look at the command-line starting with "jetzt wird's ernst". please note that most umts-modems (i had experiences with huawei, option, and zte) need ATZ instead of AT&F1 in order to initialize correctly, if this does not help, add ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 you will need a resolv.conf, nameserver 8.8.8.8 is a good choice. |
Well, it's still not running, I've only an internet-connection with Windows but Windows sucks..... I had to download wvstreams and wvdial with Windows and using ponce's patches it worked, I've no installed wvstreams and wvdial.
I'll try to find a valid configuration for wvdial. Thanks also to san for the link. @cod liver Oil: I have yet no firewall installed. Also DNS is not yet the problem because I have yet no connection. Thanks to H_TeXMeX_H for the provided link. I'll follow up when I've got it running BTW: I was considering if I should post this issue in the Slackware-forum or in the Network-forum of LQ. I think it was a good idea to post it here in the Slackware-forum. Very knowledgeable and helpful people here :) Markus |
Unfortunately there's a bug in wvstreams. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=674006
I get the errormessage which is mentioned in the link above. So I will try to configure pppd correctly to establish the internet-connection. Markus |
Two things...
Firstly, the modern USB modems have the bad habit to work in two modes, and to need to switch the modem in the working mode with usb_modeswitch. IF your modem is still not supported by usb_modeswitch, you should create a new configuration file in /etc/usb_modeswitch.d. For populating that new configuration file with right info, you should know the exact type of your modem and to do a little google; is it almost impossible to be unique Linux user of it and with that problem. Secondly, I strongly suggest you to use the NetworkManager interface. That thingy is much more powerfully than "to be used for WiFi networks", and it have an excellent modem support. Then, add support for your modem (if it doesn't exists) to usb_modeswitch and go to NetworkManager and configure the new connection. |
Quote:
Code:
minicom /dev/gsmmodem The modem is recognized by the system correctly (as far as I know). Quote:
Markus |
Still, how about to show me the complete dump of dmesg?
I'm curious if the modem is really switched from "installation" mode to "working mode"... Idea is if your modem have an builtin software presented for installation, is very posible to have two working modes. |
All times are GMT -5. The time now is 04:58 AM. |