Система: freebsd 8.2-release
Модем: ZTE mf112
Перепробовал кучу вариантов /etc/ppp/ppp.conf, результат один и тот же.
Итак:
/etc/ppp/ppp.conf
Код: Выделить всё
default:
set log Phase Chat LCP IPCP CCP tun command
ident user-ppp VERSION (built COMPILATIONDATE)
set device /dev/cuaU0.1
set speed 57600
set timeout 0
enable dns
disable pred1
deny pred1
disable lqr
deny lqr
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
\"\" AT OK-AT-OK ATE1Q0 OK \
AT+CGDCONT=1,\\\"IP\\\",\\\"internet.mts.ru\\\",\\\"0.0.0.0\\\",0,0 OK \\ AT+CGATT=1 OK \\dATDT\\T TIMEOUT 40 CONNECT"
mts:
set logout "ABORT BUSY ABORT ERROR TIMEOUT 30 \ \"\" +++ATH OK-ATH-OK AT+CGATT=0 OK"
set openmode active 15
set phone "*99#"
set authname "mts"
set authkey "mts"
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR # Add a (sticky) default route
Код: Выделить всё
Nov 3 23:46:37 newsyslog[714]: logfile first created
Nov 3 23:47:09 ppp[1112]: Phase: Using interface: tun0
Nov 3 23:47:09 ppp[1112]: Phase: deflink: Created in closed state
Nov 3 23:47:09 ppp[1112]: tun0: Command: default: ident user-ppp VERSION (built COMPILATIONDATE)
Nov 3 23:47:09 ppp[1112]: tun0: Command: default: set device /dev/ttyU0.0
Nov 3 23:47:09 ppp[1112]: tun0: Command: default: set speed 57600
Nov 3 23:47:09 ppp[1112]: tun0: Command: default: set timeout 0
Nov 3 23:47:09 ppp[1112]: tun0: Command: default: enable dns
Nov 3 23:47:09 ppp[1112]: tun0: Command: default: disable pred1
Nov 3 23:47:09 ppp[1112]: tun0: Command: default: deny pred1
Nov 3 23:47:09 ppp[1112]: tun0: Command: default: disable lqr
Nov 3 23:47:09 ppp[1112]: tun0: Command: default: deny lqr
Nov 3 23:47:09 ppp[1112]: tun0: Command: default: set dial ABORT BUSY ABORT NO\sCARRIER TIMEOUT 5 "" AT OK-AT-OK ATE1Q0 OK AT+CGDCONT=1,\"IP\",\"internet.mts.ru\",\"0.0.0.0\",0,0 OK \ AT+CGATT=1 OK \dATDT\T TIMEOUT 40 CONNECT
Nov 3 23:47:09 ppp[1112]: tun0: Command: mts: set logout ABORT BUSY ABORT ERROR TIMEOUT 30 "" +++ATH OK-ATH-OK AT+CGATT=0 OK
Nov 3 23:47:09 ppp[1112]: tun0: Command: mts: set openmode active 15
Nov 3 23:47:09 ppp[1112]: tun0: Command: mts: set phone *99#
Nov 3 23:47:09 ppp[1112]: tun0: Command: mts: set authname mts
Nov 3 23:47:09 ppp[1112]: tun0: Command: mts: set authkey ********
Nov 3 23:47:09 ppp[1112]: tun0: Command: mts: set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
Nov 3 23:47:09 ppp[1112]: tun0: Command: mts: add default HISADDR
Nov 3 23:47:09 ppp[1118]: tun0: Phase: PPP Started (auto mode).
Nov 3 23:47:09 ppp[1118]: tun0: Phase: bundle: Establish
Nov 3 23:47:09 ppp[1118]: tun0: Phase: deflink: closed -> opening
Nov 3 23:47:09 ppp[1118]: tun0: Phase: deflink: Connected!
Nov 3 23:47:09 ppp[1118]: tun0: Phase: deflink: opening -> dial
Nov 3 23:47:09 ppp[1118]: tun0: Chat: Phone: *99#
Nov 3 23:47:09 ppp[1118]: tun0: Chat: deflink: Dial attempt 1 of 1
Nov 3 23:47:09 ppp[1118]: tun0: Chat: Send: AT^M
Nov 3 23:47:09 ppp[1118]: tun0: Chat: Expect(5): OK
Nov 3 23:47:14 ppp[1118]: tun0: Chat: Expect timeout
Nov 3 23:47:14 ppp[1118]: tun0: Chat: Send: AT^M
Nov 3 23:47:14 ppp[1118]: tun0: Chat: Expect(5): OK
Nov 3 23:47:19 ppp[1118]: tun0: Chat: Expect timeout
Nov 3 23:47:19 ppp[1118]: tun0: Warning: Chat script failed
Nov 3 23:47:19 ppp[1118]: tun0: Phase: deflink: dial -> hangup
Nov 3 23:47:19 ppp[1118]: tun0: Phase: deflink: Disconnected!
Nov 3 23:47:19 ppp[1118]: tun0: Phase: deflink: Connect time: 10 secs: 0 octets in, 0 octets out
Nov 3 23:47:19 ppp[1118]: tun0: Phase: deflink: 0 packets in, 0 packets out
Nov 3 23:47:19 ppp[1118]: tun0: Phase: total 0 bytes/sec, peak 0 bytes/sec on Thu Nov 3 23:47:09 2011
Nov 3 23:47:19 ppp[1118]: tun0: Phase: deflink: hangup -> closed
Nov 3 23:47:19 ppp[1118]: tun0: Phase: bundle: Dead
Код: Выделить всё
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1500
options=80000<LINKSTATE>
inet 10.0.0.1 --> 10.0.0.2 netmask 0xffffff00
Opened by PID 1118
Модем определяется:
cat /var/log/message
Код: Выделить всё
kernel: ugen1.3: <ZTE,Incorporated> at usbus1
kernel: u3g0: <ZTE,Incorporated ZTE WCDMA Technologies MSM, class 0/0, rev 2.00/0.00, addr 3> on usbus1
kernel: u3g0: Found 3 ports.
Код: Выделить всё
cuaU0.0
cuaU0.0.init
cuaU0.0.lock
cuaU0.1
cuaU0.1.init
cuaU0.1.lock
cuaU0.2
cuaU0.2.init
cuaU0.2.lock
ttyU0.0
ttyU0.0.init
ttyU0.0.lock
ttyU0.1
ttyU0.1.init
ttyU0.1.lock
ttyU0.2
ttyU0.2.init
ttyU0.2.lock
ugen1.3
Есть ли у кого соображения на этот счет.