LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Help internet modem key TIM Alice ONDA MT503HS on Slackware 14.0 (http://www.linuxquestions.org/questions/slackware-14/help-internet-modem-key-tim-alice-onda-mt503hs-on-slackware-14-0-a-4175483996/)

giorgik 11-09-2013 07:12 AM

Help internet modem key TIM Alice ONDA MT503HS on Slackware 14.0
 
Hello everyone,
I have a Slackware 14.0 32-bit and I have a TIM internet key Alice ONDA MT503HS I work very well in graphics mode using KDE and kppp.
Now I want to use this key in Slackware started in text mode (not KDE).
What should I install to run the key, what program to use ?
Using wvdial:
wvdial.conf
Code:

[Dialer Defaults]
Modem = /dev/ttyUSB0
Baud = 460800
Init1 = ATZ
Init2 = AT+CGDCONT=1,"IP","ibox.tim.it"
Stupid Mode = 1
Dial Command = ATDT
ISDN = 0
Modem Type = Analog Modem
Carrier Check = no
Phone = *99#
Ask Password = off

the file /etc/resolv.conf
Code:

search .
nameserver 10.206.56.132        #kppp temp entry
nameserver 10.207.43.46        #kppp temp entry

If I:
Code:

    bash-4.2# wvdial
    --> WvDial: Internet dialer version 1.61
    --> Initializing modem.
    --> Sending: ATZ
    OK
    --> Sending: AT+CGDCONT=1,"IP","ibox.tim.it"
    AT+CGDCONT=1,"IP","ibox.tim.it"
    OK
    --> Modem initialized.
    --> Sending: ATDT*99#
    --> Waiting for carrier.
    ATDT*99#
    CONNECT
    --> Carrier detected.  Starting PPP immediately.
    --> Starting pppd at Fri Nov  8 18:23:49 2013
    --> Pid of pppd: 8444
    --> Using interface ppp0
    --> pppd: `8 6
    --> pppd: `8 6
    --> pppd: `8 6
    --> pppd: `8 6
    --> pppd: `8 6
    --> pppd: `8 6
    --> local  IP address z.uuu.nn.mmm
    --> pppd: `8 6
    --> remote IP address x.y.y.y
    --> pppd: `8 6
    --> primary  DNS address 10.206.56.132
    --> pppd: `8 6
    --> secondary DNS address 10.207.43.46
    --> pppd: `8 6

but with ping -c3 www.google.com is wrong.

allend 11-09-2013 08:56 AM

It looks as though wvdial is connecting successfully. After connecting with wvdial, check the contents of /etc/resolv.conf. You will probably see that the temporary nameserver entries placed there by kppp have been deleted.
Then check the contents of /etc/ppp/resolv.conf. When you connect using pppd, the supplied DNS information is stored there. You will need to 'mv /etc/resolv.conf /etc/resolv.conf.orig; cp /etc/ppp/resolv.conf /etc/resolv.conf'.

When you have finished a session, I suggest doing 'mv /etc/resolv.conf.orig /etc/resolv.conf', otherwise the old information will be retained which can then upset the settings temporarily added by kppp.
This can become a pain if you switch a lot between using kppp in the GUI and pppd at the CLI.

An alternative would be to dump using kppp and wvdial, and starting using NetworkManager via nm-applet in the GUI and nmcli at the CLI.


All times are GMT -5. The time now is 03:41 PM.