[ create a new paste ] login | about

Link: http://codepad.org/lIz5xz2Y    [ raw code | fork | 3 comments ]

Plain Text, pasted on Oct 16:
[0] % sudo ls -l /dev/ttyU* 
crw-rw---- 1 root dialout 188, 0 Oct 16 12:47 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 Oct 16 12:47 /dev/ttyUSB1

====================================================================

[0] % cat /etc/ppp/resolv.conf
nameserver 196.207.40.167
nameserver 196.207.40.165

=====================================================================

[0] % cat /etc/chatscripts/e220v
TIMEOUT 10
ABORT 'BUSY'
ABORT 'NO ANSWER'
ABORT 'ERROR'
ABORT 'NO CARRIER'
 
'' 'ATZ'
'OK' 'ATE1'
'OK' 'AT+CGDCONT=1,"IP","internet"'
'OK' 'ATDT*99#'
'CONNECT' '\c'

==========================================================

[0] % cat /etc/chatscripts/e220v.original 
TIMEOUT 10
ABORT 'BUSY'
ABORT 'NO ANSWER'
ABORT 'ERROR'
ABORT 'NO CARRIER'
 
'' 'ATZ'
'OK' 'ATE1'
'OK' 'AT+CGDCONT=1,"IP","internet","0.0.0.0",0,0'
'OK' 'ATDT*99#'
'CONNECT' '\c'


================================================================

[0] % cat /etc/ppp/peers/e220v
hide-password 
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/e220v"
debug
#also tried /dev/ttyUSB1
/dev/ttyUSB0
115200
defaultroute
replacedefaultroute
noipdefault
#=====================================================
#next line can be "usepeerdns" or "ipparam google"
#-----------------------------------
#example /etc/ppp/resolve/google
#nameserver 8.8.8.8
#nameserver 8.8.4.4
#----------------------------------
usepeerdns
#====================================================
crtscts
lock
local
 
# Redial and interval
persist
holdoff 5
 
# No compression
novj
novjccomp
nopcomp
nodeflate
 
# PAP authentication
# commented out next 2 lines, not using authentication
# user "bob"
# remotename e220v
#refuse whatever you don't want. in this case allowing ppp
#refuse-chap
refuse-mschap
refuse-mschap-v2
refuse-eap
#also tried commenting out all refuse lines
 
# LCP echo messages settings
lcp-echo-failure 4
lcp-echo-interval 65535



Create a new paste based on this one


Comments:
posted by Lope on Oct 16
[0] % lsusb | grep 'E220'
Bus 003 Device 002: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E230/E270/E870 HSDPA/HSUPA Modem

reply
posted by Lope on Oct 16
Oct 16 14:29:05 bob-pc pppd[12815]: sent [PAP AuthReq id=0x3 user="bob-pc" password=<hidden>]
Oct 16 14:29:05 bob-pc pppd[12815]: rcvd [LCP DiscReq id=0xa8 magic=0x12abfea]
Oct 16 14:29:05 bob-pc pppd[12815]: rcvd [LCP EchoRep id=0x0 magic=0x12abfea b6 03 c3 38]
Oct 16 14:29:05 bob-pc pppd[12815]: rcvd [PAP AuthAck id=0x3 ""]
Oct 16 14:29:05 bob-pc pppd[12815]: PAP authentication succeeded
Oct 16 14:29:05 bob-pc pppd[12815]: sent [CCP ConfReq id=0x3 <bsd v1 15>]
Oct 16 14:29:05 bob-pc pppd[12815]: sent [IPCP ConfReq id=0x3 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
Oct 16 14:29:05 bob-pc pppd[12815]: rcvd [LCP ProtRej id=0xa9 80 fd 01 03 00 07 15 03 2f]
Oct 16 14:29:05 bob-pc pppd[12815]: Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
Oct 16 14:29:08 bob-pc pppd[12815]: sent [IPCP ConfReq id=0x3 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]

reply
posted by Lope on Oct 16
the above plog output ends with
Oct 16 14:57:30 pppd[13702]: last message repeated 4 times
Oct 16 14:57:30 bob-pc pppd[13702]: IPCP: timeout sending Config-Requests
Oct 16 14:57:30 bob-pc pppd[13702]: sent [LCP TermReq id=0x1d "No network protocols running"]
Oct 16 14:57:33 bob-pc pppd[13702]: sent [LCP TermReq id=0x1e "No network protocols running"]
Oct 16 14:57:36 bob-pc pppd[13702]: Connection terminated.
Oct 16 14:57:36 bob-pc pppd[13702]: Modem hangup
Oct 16 14:57:36 bob-pc pppd[13702]: Exit.
reply