DUN from WINDOWS2000 to redhat linux 7.2

Discussion in 'Linux Networking' started by ahaideb, Jun 24, 2003.

  1. ahaideb

    ahaideb Guest

    I am trying to connect my Windows 2000 pc to a Redhat linux 7.2 in a
    way that Win2000 is client and Linux as the server, I used a direct
    cable connection.
    connecting to linux with with terminal emulation was OK. but what I
    need is to connect using PPP
    I've compiled mgetty with Auto_PPP enabled:
    -------
    downloaded mgetty-1.1.28 source RPM
    changed line 110 of mgetty makefile to:
    CFLAGS=-O2 -Wall -pipe -DAUTO_PPP

    compiled mgetty with the command
    rpm -bc mgetty.spec
    upgrade mgetty using package manager
    -----------

    Win2000 DUN connection is setup as follow:
    -----------
    Type of dialup server: PPP:Windows 95/98/NT4/2000,Internet
    Security option: Allow unsecured password
    PPP setting:Enable LCP extensions I tried to disable also
    Enable software compression I tried to disable also
    disable negotiate multilink

    when connecting I entered username: root password:root_password
    the connection will time out and give the following error:
    Error 777: the connection attemp failed because the modem on the
    remote computer is out of order.
    And it will never connect
    but I have found a way to connect as
    -choosing to ENABLE show terminal window
    -logon with my root user_name and password in the terminal windows
    -start ppp manualy by issuing the command (pppd)
    -closing the connection
    -DISABLING show terminal window
    -connect again
    -now the connection will authnicate and the connection is established
    instantly

    what I need is to be able connect directly with out the need to start
    ppp manualy.
    I have read through so many postings for three weeks but I have found
    some clews but no one worked for me.

    here excerpts from the log files and the optoins files

    =======
    log/mgetty.log.ttyS0
    ********************
    06/23 01:09:37 yS0 mgetty: experimental test release 1.1.28-Jan10
    06/23 01:09:37 yS0 mgetty.c compiled at Jun 20 2003, 14:43:19
    06/23 01:09:37 yS0 user id: 0, parent pid: 1
    06/23 01:09:37 yS0 reading configuration data for port 'ttyS0'
    06/23 01:09:37 yS0 reading /etc/mgetty+sendfax/mgetty.config...
    ..
    ..
    ..
    06/23 01:09:39 yS0 waiting...
    06/23 01:09:39 yS0 checking lockfiles, locking the line
    06/23 01:09:39 yS0 makelock(ttyS0) called
    06/23 01:09:39 yS0 do_makelock: lock='/var/lock/LCK..ttyS0'
    06/23 01:09:39 yS0 lock made
    06/23 01:09:39 yS0 waiting for line to clear (VTIME), read: CLIENT
    06/23 01:09:40 yS0 utmp + wtmp entry made
    06/23 01:09:40 yS0 tio_set_flow_control( HARD )
    06/23 01:09:40 yS0 print welcome banner (/etc/issue)
    06/23 01:09:40 yS0 getlogname (AUTO_PPP), read:[0d]
    06/23 01:09:40 yS0 input finished with '\r', setting ICRNL ONLCR
    06/23 01:09:40 yS0 tio_set_flow_control( HARD )
    06/23 01:09:40 yS0 print welcome banner (/etc/issue)
    06/23 01:09:40 yS0 getlogname (AUTO_PPP),
    read:CLIENTCLIENTCLIENTCLIENTCLIENTCLIENT
    06/23 01:13:40 yS0 getlogname: timeout[15]
    06/23 01:13:40 yS0 getlogname (AUTO_PPP), read:
    06/23 01:14:40 yS0 getlogname: timeout
    06/23 01:14:43 ##### failed dev=ttyS0, pid=6017, login time out
    =================================

    log/messages
    *****************
    ..
    ..
    ..
    Jun 23 01:08:32 localhost mgetty[6013]: data dev=ttyS0, pid=6013,
    caller='none', conn='DIRECT', name='', cmd='/bin/login',
    user='CLIENTCLIENTCLIENT'
    Jun 23 01:14:43 localhost mgetty[6017]: failed dev=ttyS0, pid=6017,
    login time out
    Jun 23 01:37:25 localhost xinetd[6109]: warning: can't get client
    address: Transport endpoint is not connected
    =====================

    ppp.log
    **********
    ..
    ..
    ..
    Jun 23 01:30:22 localhost gnome-name-server[6033]: server_is_alive:
    cnx[IDL:GNOME/Terminal/TerminalFactory:1.0] = 0x80562f0
    Jun 23 01:37:25 localhost xinetd[6109]: warning: can't get client
    address: Transport endpoint is not connected
    ====================================

    mgetty+sendfax/login.config
    ***************************
    #U* uucp @ /usr/lib/uucp/uucico -l -u @

    #/FIDO/ uucp fido /usr/local/lib/fnet/ifcico @

    /AutoPPP/ - - /usr/sbin/pppd

    * - - /bin/login @
    ==========================================

    ppp/options
    **************
    lock
    auth
    -chap
    +pap
    login
    debug
    ms-dns 190.120.192.40
    =======================

    ppp/options.ttyS0
    *******************
    local
    connect 'chat -v -f /etc/ppp/scripts/winclient.chat'
    190.120.192.3:190.120.192.46
    ==============================

    ppp/scripts/winclient.chat
    ************************
    TIMEOUT 360
    CLIENT CLIENTSERVER\c
    ======================

    ppp/pap-secrets
    **************
    # 13941394 is the root password
    # client server secret IP addresses
    * * 13941394 190.120.192.46
    ==========================5:2345:respawn:/sbin/mingetty tty5

    etc/inittab
    ************
    ..
    ..
    ..
    # Run mgetty
    d1:2345:respawn:/sbin/mgetty -r -D -x 5 /dev/ttyS0 -s 115200
    ..
    ..
    ..
    =============================
     
    ahaideb, Jun 24, 2003
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.