QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1754|回复: 0

关于ppp拨入的问题!谢谢!

[复制链接]
发表于 2006-12-4 14:29:39 | 显示全部楼层 |阅读模式
--------------------------------------------------------------------------------
  我在目标板上配置ppp拨入,从一台windows拨号到目标板.在目标板上运行:
/sbin/mgetty -s -x0 115200 /dev/ttyS1
测试过程中能听到modem握手的声音,但是最后失败。windows那边一直就停留在“核对用户名和密码”(当然了,目标板已经建立过帐户和密码了),所我觉得失败的原因应该不是用户名和密码的问题。
我的配置脚本如下:
/etc/mgetty/mgetty.config
##################################################
#
# mgetty configuration file
#
# this is a sample configuration file, see mgetty.info for details
#
# comment lines start with a "#", empty lines are ignored


# ----- global section -----
#
# In this section, you put the global defaults, per-port stuff is below


# set the global debug level to "4" (default from policy.h)
#debug 4

# set the local fax station id
#fax-id

# access the modem(s) with 38400 bps
#speed 38400

# use an alternate issue file, to avoid being bitten by linuxlogo
#issue-file /etc/issue.mgetty

#  use these options to make the /dev/tty-device owned by "uucp.uucp"
#  and mode "rw-rw-r--" (0664). *LEADING ZERO NEEDED!*
#port-owner uucp
#port-group uucp
#port-mode 0664

#  use these options to make incoming faxes owned by "root.uucp"
#  and mode "rw-r-----" (0640). *LEADING ZERO NEEDED!*
#fax-owner root
#fax-group uucp
#fax-mode 0640


# ----- port specific section -----
#
# Here you can put things that are valid only for one line, not the others
#

# Zoom V.FX 28.8, connected to ttyS0: don't do fax, less logging
#
#port ttyS0
#  debug 3
#  data-only y

# some other Rockwell modem, needs "switchbd 19200" to receive faxes
# properly (otherwise it will fail with "timeout").
#
#port ttyS1
#  speed 38400
#  switchbd 19200

# ZyXEL 2864, connected to ttyS2: maximum debugging, grab statistics
#
#port ttyS2
#  debug 8
#  init-chat "" \d\d\d+++\d\d\dAT&FS2=255 OK ATN3S0=0S13.2=1 OK
#  statistics-chat "" AT OK ATI2 OK
#  statistics-file /var/log/statistics.ttyS2
#  modem-type cls2
#statistics-chat "" ATM0 OK
# direct connection of a VT100 terminal which doesn't like DTR drops
#
#port ttyS3
#  direct y
#  speed 19200
#  toggle-dtr n
port ttyS1
data-only y
speed 115200
statistics-chat "" ATM0 OK


/etc/mgetty/login.config
###############################
# login.config
#
# This is a sample "login dispatcher" configuration file for mgetty
#
# format:
#username userid utmp_entry login_program [arguments]
#
# Meaning:
#       for a "username" entered at mgettys login: prompt, call
#"login_program" with [arguments], with the uid set to "userid",
#and a USER_PROCESS utmp entry with ut_user = "utmp_entry"
#
# username may be prefixed / suffixed by "*" (wildcard)
#
# userid is a valid user name from /etc/passwd, or "-" to not set
#  a login user id and keep the uid/euid root (needed for /bin/login)
#
# utmp_entry is what will appear in the "who" listing. Use "-" to not
#  set an utmp entry (a must for /bin/login), use "@" to set it to the
#  username entered. Maximum length is 8 characters.
#
# login_program is the program that will be exec()ed, with the arguments
#  passed in [arguments]. A "@" in the arguments will be replaced with the
#  username entered. Warning: if no "@" is given, the login_program has
#  no way to know what user name the user entered.
#
#
# SAMPLES:
# Use this one with my Taylor-UUCP and Taylor-UUCP passwd files.
#  (Big advantage: tuucp can use the same passwd file for serial dial-in
#   and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up.
#
#U*uucp@/usr/sbin/uucico -l -u @
#
# Use this one for fido calls (login name /FIDO/ is handled specially)
#
# You need Eugene Crosser's "ifmail" package for this to work.
#  mgetty has to be compiled with "-DFIDO", otherwise a fido call won't
#  be detected.
#
#/FIDO/uucpfido/usr/lib/fnet/ifcico @
#
# Automatic PPP startup on receipt of LCP configure request (AutoPPP).
#  mgetty has to be compiled with "-DAUTO_PPP" for this to work.
#  Warning: Case is significant, AUTOPPP or autoppp won't work!
#  Consult the "pppd" man page to find pppd options that work for you.
#
#  NOTE: for *some* users, the "-detach" option has been necessary, for
#        others, not at all. If your pppd doesn't die after hangup, try it.
#
#  NOTE2: "debug" creates lots of debugging info.  LOOK AT IT if things
#         do not work out of the box, most likely it's a ppp problem!
#
#  NOTE3: "man pppd" is your friend!
#
#  NOTE4: max. 9 arguments allowed.
#

/AutoPPP/ -a_ppp /usr/sbin/pppd auth -chap +pap login file /etc/ppp/options.ser
#/AutoPPP/ -a_ppp /usr/sbin/pppd auth -chap +pap login debug logfile /opt/ppplog2
#/AutoPPP/ -a_ppp/usr/sbin/pppd file /etc/ppp/options.server logfile /opt/ppplog2
#
#
# An example where no login name in the argument list is desired:
#  automatically telnetting to machine "smarty" for a given login name
#
#telnet-smartygasttelnet/usr/bin/telnet -8 smarty
#
# This is the "standard" behaviour - *dont* set a userid or utmp
#  entry here, otherwise /bin/login will fail!
#  This entry isn't really necessary: if it's missing, the built-in
#  default will do exactly this.
#
#*--/bin/login @


/etc/ppp/options.ser
######################
lock
nodefaultroute
modem
/dev/ttyS1
115200
crtscts
debug
passive
asyncmap 0
name "test"
remotename "unknown.com"
199.199.1.112:199.199.1.212


我的问题:
请问拨入失败的原因是什么?

十分感谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-25 06:20 , Processed in 0.073003 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表