suse 7.0
mgetty 1.1.21
ppp 2.4.1
в ядро вкомпилированна поддержка ppp
/etc/inittab
3:123:respawn:/usr/sbin/mgetty ttyS0
/etc/mgetty+sendfax/mgetty.config
port ttyS0
init-chat "" AT&FE0V1&C1&D2S95=47L0=0S0=3w2 OK
(это инит от модема eline)
data-only y
speed 57600
(делал и 38400 - разницы никакой)
/etc/mgetty+sendfax/login.config
/AutoPPP/ - a_ppp /usr/sbin/pppd -chap +pap
/etc/ppp/options
debug
kdebug 4
noauth
crtscts
lock
modem
asyncmap 0
nodetach
/etc/ppp/options.ttyS0
login
auth
modem
crtscts
refuse-chap
require-pap
mtu 576
mru 576
proxyarp
OUT_IP:MODEM_INTERNAL_NETWORK_IP
md-dns DNS_IP
(специально стёр файл chap-secrets)
/etc/ppp/pap-secrets
vasia * pupkin *
по идее всё?
при коннекте,
моедмы шипят, договариваются,
и на аторизации происходит дисконнект
а по идее должен произойти коннект
и выдаться апишник: MODEM_INTERNAL_NETWORK_IP
помогите разобраться, уж неделю туплю...
лог со стороный суси:
wfr: waiting for ``RING''
got: [0a][0d][0a]RING[0d]
CND: RING
wfr: rc=0, drn=0
send: ATA[0d]
waiting for ``CONNECT''
got: [0d]
CND: OK[0a]CONNECT ** found **
send:
waiting for ``_''
got: 16800[0d]
CND: CONNECT 16800
CND: found: 16800[0a] ** found **
waiting for line to clear (VTIME), read: ~[ff]}#[c0]!}!} } !}"}&} } } } }%}&`[b8]Y}<}'}"}(}"}1}$}&N}3})}#} P[f
looking for utmp entry... (my PID: 3277)
utmp + wtmp entry made
tio_set_flow_control( HARD )
print welcome banner (/etc/issue)
getlogname (AUTO_PPP), read:~[ff]}#[c0]!
input finished with '\r', setting ICRNL ONLCR
tio_get_rs232_lines: status: RTS CTS DSR DTR DCD
login: use login config file /etc/mgetty+sendfax/login.config
match: user='/AutoPPP/', key=''
match: user='/AutoPPP/', key=''
match: user='/AutoPPP/', key='/AutoPPP/'*** hit!
login: utmp entry: a_ppp
looking for utmp entry... (my PID: 3277)
utmp + wtmp entry made
calling login: cmd='/usr/sbin/pppd', argv[]='pppd -chap +pap'
data dev=ttyS0, pid=3277, caller='none', conn='16800', name='', cmd='/usr/sbin/pppd', user='/AutoPPP/'
setenv: 'CALLER_ID=none'
setenv: 'CALLED_ID='
setenv: 'CONNECT=16800'
mgetty: experimental test release 1.1.21-Jul24
check for lockfiles
checklock: no active process has lock, will remove
locking the line
makelock(ttyS0) called
do_makelock: lock='/var/lock/LCK..ttyS0'
lock made
tio_get_rs232_lines: status: RTS CTS DSR DTR
lowering DTR to reset Modem
tss: set speed to 57600 (10001)
tio_set_flow_control( HARD )
waiting for line to clear (VTIME), read: [0a][0a]OK[0a][0a]
send: AT&FE0V1&C1&D2S95=47L0=0S0=3w2[0d]
waiting for ``OK''
got: [0d][0a]OK ** found **
waiting for line to clear (VTIME), read: [0d][0a]
removing lock file
waiting...