pppd Troubles – what to dododoo?
Home › Forums › MultiConnect OCG › pppd Troubles – what to dododoo?
- This topic has 5 replies, 3 voices, and was last updated 12 years, 5 months ago by Lonny Knudson.
-
AuthorPosts
-
June 19, 2012 at 3:19 pm #2749Conrad LjungströmParticipant
I can’t seem to establish a connection using pppd. My interface goes up only for a short time before it disappears again. Here’s what it looks like if I do “ip a”
18: ppp0: <POINTOPOINT,MULTICAST,NOARP> mtu 1500 qdisc noop state DOWN qlen 3 link/ppp
And this is what it says in /var/log/messages:
Jun 19 16:58:59 mtcdp daemon.info pppd[11342]: Serial connection established.
Jun 19 16:58:59 mtcdp daemon.info pppd[11342]: Using interface ppp0
Jun 19 16:58:59 mtcdp daemon.notice pppd[11342]: Connect: ppp0 <–> /dev/ttyUSB3
Jun 19 16:59:19 mtcdp daemon.info pppd[11342]: CHAP authentication succeeded
Jun 19 16:59:19 mtcdp daemon.notice pppd[11342]: CHAP authentication succeeded
Jun 19 16:59:19 mtcdp daemon.warn pppd[11342]: kernel does not support PPP filtering
Jun 19 16:59:21 mtcdp daemon.info pppd[11342]: Hangup (SIGHUP)
Jun 19 16:59:21 mtcdp daemon.notice pppd[11342]: Modem hangup
Jun 19 16:59:21 mtcdp daemon.notice pppd[11342]: Connection terminated.
Jun 19 16:59:22 mtcdp daemon.info pppd[11342]: Exit.
Here’s my “3g” file (equivalent to gsm or cdma)
/dev/ttyUSB3
230400
idle 7200
lock
crtscts
modem
noauth
replacedefaultroute
defaultroute
user Anyname
password Anypassword
connect “/usr/sbin/chat -V -f /etc/ppp/telenor.chat”
connect-delay 20000
noipdefault
usepeerdns
nobsdcomp
novj
persist
And here’s my “telenor.chat”
ABORT BUSY
ABORT “NO CARRIER”
ABORT ERROR
REPORT CONNECT
TIMEOUT 10
“” “AT&F”
OK “ATE1”
OK “AT+CGDCONT=1,42IP42,42internet.telenor.se42”
SAY “Calling Telenorn”
TIMEOUT 60
OK “ATD*99***1#”
CONNECT c
The only reason I can think of as to why it’s not connecting properly is that there is something wrong with the connection settings. Will continue looking but if someone has any ideas that would be lovely ^_^
June 19, 2012 at 3:40 pm #3990Lonny KnudsonBlockedHi Conrad,
Try using this chat script:
ABORT BUSY
ABORT “NO CARRIER”
ABORT ERROR
REPORT CONNECT
TIMEOUT 10
“” “ATE1”
OK ‘AT+CGDCONT=1,”IP”,”internet.telenor.se”‘
SAY “Calling Telenorn”
TIMEOUT 60
OK “ATD*99***1#”
CONNECT c
Please let us know if it corrects the problem.
June 19, 2012 at 4:59 pm #3991Conrad LjungströmParticipantHi!
I exchanged my telenor.chat for the one your provided. I got no feedback in the console (am i supposed to?) but ip a gives:
ppp0: <POINTOPOINT,MULTICAST,NOARP> mtu 1500 qdisc noop state DOWN qlen 3 link/ppp
like before. So no change there. excerpt from /var/log/messages
Jun 19 18:58:00 mtcdp daemon.info pppd[15605]: Serial connection established.
Jun 19 18:58:00 mtcdp daemon.info pppd[15605]: Using interface ppp0
Jun 19 18:58:00 mtcdp daemon.notice pppd[15605]: Connect: ppp0 <–> /dev/ttyUSB3
Jun 19 18:58:20 mtcdp daemon.info pppd[15605]: CHAP authentication succeeded
Jun 19 18:58:20 mtcdp daemon.notice pppd[15605]: CHAP authentication succeeded
Jun 19 18:58:20 mtcdp daemon.warn pppd[15605]: kernel does not support PPP filtering
Jun 19 18:58:22 mtcdp daemon.info pppd[15605]: Hangup (SIGHUP)
Jun 19 18:58:22 mtcdp daemon.notice pppd[15605]: Modem hangup
Jun 19 18:58:22 mtcdp daemon.notice pppd[15605]: Connection terminated.
The SIM I have is Telenor connexion, I don’t know for sure but could they be a separate provider and have a different address?
June 19, 2012 at 5:15 pm #3992Bryan TranModeratorHi ConRad,
Can you try to dial the number as follow:
*99#
If it is still not working, try this number:
*99*1#
And see if it helps
Regards,
BT
June 19, 2012 at 6:10 pm #3993Conrad LjungströmParticipantHiya Bryan!
Sorry it didn’t work with either of those.. I’m assuming I was to switch out
OK “ATD*99***1#” for
OK “ATD*99#” and
OK “ATD*99*1#”
same thing logged in messages. :/
June 19, 2012 at 6:37 pm #3994Lonny KnudsonBlockedHi Conrad,
When we see the connection hang up shortly after the authentication phase, the most common cause is incorrect APN/username/password. Have you verified that your account has access to the “internet.telenor.se” APN ? Do you know if this APN requires a username and password? I’m assuming that the username and password referenced in your peer file are just placeholders, this shouldn’t cause a problem if the APN doesn’t require a specific username and password. However, if this APN does require specific credentials you need to configure pppd to use them. Please let us know if this helps.
-
AuthorPosts
- You must be logged in to reply to this topic.