RE: ppp confusion

From: fbsd_user (fbsd_user_at_a1poweruser.com)
Date: 10/08/03

  • Next message: mkes_at_ra.rockwell.com: "CVS pserver and pam_ldap"
    To: "nevle" <brucen@ansonic.com.au>, <freebsd-questions@freebsd.org>
    Date: Wed, 8 Oct 2003 10:20:53 -0400
    
    

    You have problem with your ppp.conf. The ppp.log shows that you have
    an error
    tun0: Command: default: papchap:
    tun0: Warning: papchap:: Invalid command
    tun0: Warning: papchap:: Failed 1

    But the most enlightening info from the log is
    Oct 8 15:34:19 nevsbsd ppp[527]: tun0: Chat: deflink: Dial attempt
    1 of 1
    Oct 8 15:34:19 nevsbsd ppp[527]: tun0: Chat: Send: AT^M
    Oct 8 15:34:20 nevsbsd ppp[527]: tun0: Chat: Expect(5): OK
    Oct 8 15:34:20 nevsbsd ppp[527]: tun0: Chat: Received: AT^M^M
    Oct 8 15:34:20 nevsbsd ppp[527]: tun0: Chat: Received: OK^M
    Oct 8 15:34:20 nevsbsd ppp[527]: tun0: Chat: Send: ATE1Q0^M
    Oct 8 15:34:20 nevsbsd ppp[527]: tun0: Chat: Expect(5): OK
    Oct 8 15:34:20 nevsbsd ppp[527]: tun0: Chat: Received: ATE1Q0^M^M
    Oct 8 15:34:20 nevsbsd ppp[527]: tun0: Chat: Received: OK^M
    Oct 8 15:34:20 nevsbsd ppp[527]: tun0: Chat: Send: ATDT^M
    Oct 8 15:34:22 nevsbsd ppp[527]: tun0: Chat: Expect(40): CONNECT
    Oct 8 15:34:33 nevsbsd ppp[527]: tun0: Chat: Received: ATDT^M^M
    Oct 8 15:34:33 nevsbsd ppp[527]: tun0: Chat: Received: BUSY^M
    Oct 8 15:34:33 nevsbsd ppp[527]: tun0: Warning: Chat script failed
    Oct 8 15:34:33 nevsbsd ppp[527]: tun0: Phase: deflink: dial ->
    hangup

    This shown the modem being connected to FBSD but no phone number is
    being dialed.
    Change you ppp.conf to look like this

    default:
     set log Phase Chat LCP IPCP CCP tun command

     #ident user-ppp VERSION (built COMPILATIONDATE) this is useless
    statement so remove

     # Ensure that "device" references the correct serial port
     # for your modem. (cuaa0 = COM1, cuaa1 = COM2)
     #
     set device /dev/cuaa0
     set speed 115200
     set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
               \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
     set timeout 180 # 3 minute idle timer (the
    default)
     enable dns # request DNS info (for
    resolv.conf)

    papchap: # this section header has to start in pos number 1.
    just like default: does

     #
     # edit the next three lines and replace the items in caps with
     # the values which have been assigned by your ISP.
     #

    #ansonic: #remove this statement

     set phone 123456 # be sure this is the dialin phone number for
    your ISP

    # set login remove this statement

     set authname barney
     set authkey bambam

     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

    Use this console command to start user ppp
    "ppp -auto papchap"

    check your ppp.log to see if things work. If not post your updated
    ppp.conf and ppp.log just containing last test.

    -----Original Message-----
    From: owner-freebsd-questions@freebsd.org
    [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of nevle
    Sent: Wednesday, October 08, 2003 7:30 AM
    To: freebsd-questions@freebsd.org
    Subject: re:ppp confusion

    Hi,
    thanks for your reply,dmesg.boot,ppp.conf and ppp.log files are
    below.The man
    ppp seems to be saying that I connect with ppp -ddial myisp, is this
    correct?My modem is Simplecomputing netexpress 56K external
    modem.Hope that
    you can make things a little clearer for me and I appreciate the
    time you
    have spent helping me.
    nevle

    ###dmesg.boot
    Copyright (c) 1992-2003 The FreeBSD Project.
    Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993,
    1994
            The Regents of the University of California. All rights
    reserved.
    FreeBSD 5.1-RELEASE #0: Thu Jun 5 02:55:42 GMT 2003
        root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC
    Preloaded elf kernel "/boot/kernel/kernel" at 0xc06d4000.
    Preloaded elf module "/boot/kernel/acpi.ko" at 0xc06d41f4.
    Timecounter "i8254" frequency 1193182 Hz
    Timecounter "TSC" frequency 1000041953 Hz
    CPU: AMD Duron(tm) processor (1000.04-MHz 686-class CPU)
      Origin = "AuthenticAMD" Id = 0x671 Stepping = 1

    Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,M
    CA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
      AMD Features=0xc0480000<MP,AMIE,DSP,3DNow!>
    real memory = 134152192 (127 MB)
    avail memory = 122933248 (117 MB)
    Pentium Pro MTRR support enabled
    npx0: <math processor> on motherboard
    npx0: INT 16 interface
    acpi0: <VIA694 AWRDACPI> on motherboard
    pcibios: BIOS version 2.10
    Using $PIR table, 7 entries at 0xc00fdd00
    acpi0: power button is handled as a fixed feature programming model.
    Timecounter "ACPI-fast" frequency 3579545 Hz
    acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on
    acpi0
    acpi_cpu0: <CPU> on acpi0
    acpi_button0: <Power Button> on acpi0
    acpi_button1: <Sleep Button> on acpi0
    pcib0: <ACPI Host-PCI bridge> port
    0x6000-0x607f,0x5000-0x500f,0x4080-0x40ff,0x4000-0x407f,0xcf8-0xcff
    on acpi0
    pci0: <ACPI PCI bus> on pcib0
    agp0: <VIA 82C8363 (Apollo KT133A) host to PCI bridge> mem
    0xd0000000-0xd3ffffff at device 0.0 on pci0
    pcib1: <PCI-PCI bridge> at device 1.0 on pci0
    pci1: <PCI bus> on pcib1
    pci1: <display, VGA> at device 0.0 (no driver attached)
    isab0: <PCI-ISA bridge> at device 7.0 on pci0
    isa0: <ISA bus> on isab0
    atapci0: <VIA 82C686B UDMA100 controller> port 0xd000-0xd00f at
    device 7.1 on
    pci0
    atapci0: Correcting VIA config for southbridge data corruption bug
    ata0: at 0x1f0 irq 14 on atapci0
    ata1: at 0x170 irq 15 on atapci0
    uhci0: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 9 at
    device 7.2 on
    pci0
    usb0: <VIA 83C572 USB controller> on uhci0
    usb0: USB revision 1.0
    uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
    uhub0: 2 ports with 2 removable, self powered
    uhci1: <VIA 83C572 USB controller> port 0xd800-0xd81f irq 9 at
    device 7.3 on
    pci0
    usb1: <VIA 83C572 USB controller> on uhci1
    usb1: USB revision 1.0
    uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
    uhub1: 2 ports with 2 removable, self powered
    pci0: <bridge, PCI-unknown> at device 7.4 (no driver attached)
    pci0: <multimedia, audio> at device 11.0 (no driver attached)
    pci0: <input device> at device 11.1 (no driver attached)
    fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port
    0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0
    fdc0: FIFO enabled, 8 bytes threshold
    fd0: <1440-KB 3.5" drive> on fdc0 drive 0
    sio0 port 0x3f8-0x3ff irq 4 on acpi0
    sio0: type 16550A
    sio1 port 0x2f8-0x2ff irq 3 on acpi0
    sio1: type 16550A
    ppc0 port 0x378-0x37f irq 7 on acpi0
    ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
    ppbus0: <Parallel port bus> on ppc0
    plip0: <PLIP network interface> on ppbus0
    lpt0: <Printer> on ppbus0
    lpt0: Interrupt-driven port
    ppi0: <Parallel I/O> on ppbus0
    atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
    atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
    kbd0 at atkbd0
    psm0: <PS/2 Mouse> irq 12 on atkbdc0
    psm0: model IntelliMouse, device ID 3
    orm0: <Option ROM> at iomem 0xc0000-0xca7ff on isa0
    pmtimer0 on isa0
    sc0: <System console> at flags 0x100 on isa0
    sc0: VGA <16 virtual consoles, flags=0x300>
    vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on
    isa0
    Timecounters tick every 10.000 msec
    acpi_cpu: throttling enabled, 2 steps (100% to 50.0%), currently
    100.0%
    ad0: 38172MB <MAXTOR 6L040J2> [77557/16/63] at ata0-master UDMA100
    acd0: CD-RW <LG CD-RW CED-8080B> at ata1-slave PIO4
    Mounting root from ufs:/dev/ad0s3a
     ###ppp.conf
    #################################################################
    # PPP Sample Configuration File
    # Originally written by Toshiharu OHNO
    # Simplified 5/14/1999 by wself@cdrom.com
    #
    # See /usr/share/examples/ppp/ for some examples
    #
    # $FreeBSD: src/etc/ppp/ppp.conf,v 1.8 2001/06/21 15:42:26 brian Exp
    $
    #################################################################

    default:
     set log Phase Chat LCP IPCP CCP tun command
     ident user-ppp VERSION (built COMPILATIONDATE)

     # Ensure that "device" references the correct serial port
     # for your modem. (cuaa0 = COM1, cuaa1 = COM2)
     #
     set device /dev/cuaa0
     set speed 115200
     set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
               \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
     set timeout 180 # 3 minute idle timer (the
    default)
     enable dns # request DNS info (for
    resolv.conf)
     papchap:
     #
     # edit the next three lines and replace the items in caps with
     # the values which have been assigned by your ISP.
     #
    ansonic:
     set phone 123456
     set login
     set authname barney
     set authkey bambam

     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

     #enable dns
    ###ppp.log

    Oct 8 15:29:46 nevsbsd ppp[507]: Phase: Using interface: tun0
    Oct 8 15:29:46 nevsbsd ppp[507]: Phase: deflink: Created in closed
    state
    Oct 8 15:29:46 nevsbsd ppp[507]: tun0: Command: default: ident
    user-ppp
    VERSION (built COMPILATIONDATE)
    Oct 8 15:29:46 nevsbsd ppp[507]: tun0: Command: default: set device
    /dev/cuaa0
    Oct 8 15:29:46 nevsbsd ppp[507]: tun0: Command: default: set speed
    115200
    Oct 8 15:29:46 nevsbsd ppp[507]: tun0: Command: default: set dial
    ABORT BUSY
    ABORT NO\sCARRIER TIMEOUT 5 "" AT OK-AT-OK ATE1Q0 OK
    \dATDT\T
    TIMEOUT 40 CONNECT
    Oct 8 15:29:46 nevsbsd ppp[507]: tun0: Command: default: set
    timeout 180
    Oct 8 15:29:46 nevsbsd ppp[507]: tun0: Command: default: papchap:
    Oct 8 15:29:46 nevsbsd ppp[507]: tun0: Warning: papchap:: Invalid
    command
    Oct 8 15:29:46 nevsbsd ppp[507]: tun0: Warning: papchap:: Failed 1
    Oct 8 15:29:46 nevsbsd ppp[507]: tun0: Phase: PPP Started
    (interactive mode).
    Oct 8 15:29:54 nevsbsd ppp[507]: tun0: Command: /dev/ttyv0: ddial
    Oct 8 15:30:06 nevsbsd ppp[507]: tun0: Command: /dev/ttyv0: ansonic
    Oct 8 15:30:14 nevsbsd ppp[507]: tun0: Command: /dev/ttyv0: dial
    Oct 8 15:30:14 nevsbsd ppp[507]: tun0: Phase: bundle: Establish
    Oct 8 15:30:14 nevsbsd ppp[507]: tun0: Phase: deflink: closed ->
    opening
    Oct 8 15:30:14 nevsbsd ppp[507]: tun0: Phase: deflink: Connected!
    Oct 8 15:30:14 nevsbsd ppp[507]: tun0: Phase: deflink: opening ->
    dial
    Oct 8 15:30:14 nevsbsd ppp[507]: tun0: Chat: deflink: Dial attempt
    1 of 1
    Oct 8 15:30:14 nevsbsd ppp[507]: tun0: Chat: Send: AT^M
    Oct 8 15:30:14 nevsbsd ppp[507]: tun0: Chat: Expect(5): OK
    Oct 8 15:30:14 nevsbsd ppp[507]: tun0: Chat: Received: AT^M^M
    Oct 8 15:30:14 nevsbsd ppp[507]: tun0: Chat: Received: OK^M
    Oct 8 15:30:14 nevsbsd ppp[507]: tun0: Chat: Send: ATE1Q0^M
    Oct 8 15:30:14 nevsbsd ppp[507]: tun0: Chat: Expect(5): OK
    Oct 8 15:30:14 nevsbsd ppp[507]: tun0: Chat: Received: ATE1Q0^M^M
    Oct 8 15:30:14 nevsbsd ppp[507]: tun0: Chat: Received: OK^M
    Oct 8 15:30:14 nevsbsd ppp[507]: tun0: Chat: Send: ATDT^M
    Oct 8 15:30:16 nevsbsd ppp[507]: tun0: Chat: Expect(40): CONNECT
    Oct 8 15:30:28 nevsbsd ppp[507]: tun0: Chat: Received: ATDT^M^M
    Oct 8 15:30:28 nevsbsd ppp[507]: tun0: Chat: Received: BUSY^M
    Oct 8 15:30:28 nevsbsd ppp[507]: tun0: Warning: Chat script failed
    Oct 8 15:30:28 nevsbsd ppp[507]: tun0: Phase: deflink: dial ->
    hangup
    Oct 8 15:30:28 nevsbsd ppp[507]: tun0: Phase: deflink:
    Disconnected!
    Oct 8 15:30:28 nevsbsd ppp[507]: tun0: Phase: deflink: Connect
    time: 14 secs:
    0 octets in, 0 octets out
    Oct 8 15:30:28 nevsbsd ppp[507]: tun0: Phase: deflink: 0 packets
    in, 0
    packets out
    Oct 8 15:30:28 nevsbsd ppp[507]: tun0: Phase: total 0 bytes/sec,
    peak 0
    bytes/sec on Wed Oct 8 15:30:14 2003
    Oct 8 15:30:28 nevsbsd ppp[507]: tun0: Phase: deflink: hangup ->
    closed
    Oct 8 15:30:28 nevsbsd ppp[507]: tun0: Phase: bundle: Dead
    Oct 8 15:31:01 nevsbsd ppp[507]: tun0: Command: /dev/ttyv0: ppp
    ********
    ansonic
    Oct 8 15:31:44 nevsbsd ppp[507]: tun0: Command: /dev/ttyv0: ee
    ppp.log
    Oct 8 15:31:47 nevsbsd ppp[507]: tun0: Command: /dev/ttyv0: q
    Oct 8 15:31:47 nevsbsd ppp[507]: tun0: Phase: PPP Terminated
    (normal).
    Oct 8 15:33:50 nevsbsd ppp[527]: Phase: Using interface: tun0
    Oct 8 15:33:50 nevsbsd ppp[527]: Phase: deflink: Created in closed
    state
    Oct 8 15:33:50 nevsbsd ppp[527]: tun0: Command: default: ident
    user-ppp
    VERSION (built COMPILATIONDATE)
    Oct 8 15:33:50 nevsbsd ppp[527]: tun0: Command: default: set device
    /dev/cuaa0
    Oct 8 15:33:50 nevsbsd ppp[527]: tun0: Command: default: set speed
    115200
    Oct 8 15:33:50 nevsbsd ppp[527]: tun0: Command: default: set dial
    ABORT BUSY
    ABORT NO\sCARRIER TIMEOUT 5 "" AT OK-AT-OK ATE1Q0 OK
    \dATDT\T
    TIMEOUT 40 CONNECT
    Oct 8 15:33:50 nevsbsd ppp[527]: tun0: Command: default: set
    timeout 180
    Oct 8 15:33:50 nevsbsd ppp[527]: tun0: Command: default: papchap:
    Oct 8 15:33:50 nevsbsd ppp[527]: tun0: Warning: papchap:: Invalid
    command
    Oct 8 15:33:50 nevsbsd ppp[527]: tun0: Warning: papchap:: Failed 1
    Oct 8 15:33:50 nevsbsd ppp[527]: tun0: Phase: PPP Started
    (interactive mode).
    Oct 8 15:34:05 nevsbsd ppp[527]: tun0: Command: /dev/ttyv0: ansonic
    Oct 8 15:34:19 nevsbsd ppp[527]: tun0: Command: /dev/ttyv0: dial
    Oct 8 15:34:19 nevsbsd ppp[527]: tun0: Phase: bundle: Establish
    Oct 8 15:34:19 nevsbsd ppp[527]: tun0: Phase: deflink: closed ->
    opening
    Oct 8 15:34:19 nevsbsd ppp[527]: tun0: Phase: deflink: Connected!
    Oct 8 15:34:19 nevsbsd ppp[527]: tun0: Phase: deflink: opening ->
    dial
    Oct 8 15:34:19 nevsbsd ppp[527]: tun0: Chat: deflink: Dial attempt
    1 of 1
    Oct 8 15:34:19 nevsbsd ppp[527]: tun0: Chat: Send: AT^M
    Oct 8 15:34:20 nevsbsd ppp[527]: tun0: Chat: Expect(5): OK
    Oct 8 15:34:20 nevsbsd ppp[527]: tun0: Chat: Received: AT^M^M
    Oct 8 15:34:20 nevsbsd ppp[527]: tun0: Chat: Received: OK^M
    Oct 8 15:34:20 nevsbsd ppp[527]: tun0: Chat: Send: ATE1Q0^M
    Oct 8 15:34:20 nevsbsd ppp[527]: tun0: Chat: Expect(5): OK
    Oct 8 15:34:20 nevsbsd ppp[527]: tun0: Chat: Received: ATE1Q0^M^M
    Oct 8 15:34:20 nevsbsd ppp[527]: tun0: Chat: Received: OK^M
    Oct 8 15:34:20 nevsbsd ppp[527]: tun0: Chat: Send: ATDT^M
    Oct 8 15:34:22 nevsbsd ppp[527]: tun0: Chat: Expect(40): CONNECT
    Oct 8 15:34:33 nevsbsd ppp[527]: tun0: Chat: Received: ATDT^M^M
    Oct 8 15:34:33 nevsbsd ppp[527]: tun0: Chat: Received: BUSY^M
    Oct 8 15:34:33 nevsbsd ppp[527]: tun0: Warning: Chat script failed
    Oct 8 15:34:33 nevsbsd ppp[527]: tun0: Phase: deflink: dial ->
    hangup
    Oct 8 15:34:33 nevsbsd ppp[527]: tun0: Phase: deflink:
    Disconnected!
    Oct 8 15:34:33 nevsbsd ppp[527]: tun0: Phase: deflink: Connect
    time: 14 secs:
    0 octets in, 0 octets out
    Oct 8 15:34:33 nevsbsd ppp[527]: tun0: Phase: deflink: 0 packets
    in, 0
    packets out
    Oct 8 15:34:33 nevsbsd ppp[527]: tun0: Phase: total 0 bytes/sec,
    peak 0
    bytes/sec on Wed Oct 8 15:34:19 2003
    Oct 8 15:34:33 nevsbsd ppp[527]: tun0: Phase: deflink: hangup ->
    closed
    Oct 8 15:34:33 nevsbsd ppp[527]: tun0: Phase: bundle: Dead
    Oct 8 15:34:41 nevsbsd ppp[527]: tun0: Command: /dev/ttyv0: q
    Oct 8 15:34:41 nevsbsd ppp[527]: tun0: Phase: PPP Terminated
    (normal).

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to
    "freebsd-questions-unsubscribe@freebsd.org"

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: mkes_at_ra.rockwell.com: "CVS pserver and pam_ldap"

    Relevant Pages

    • Re: Emails stuck in queue error 451 4.4.0 Primary target IP addres
      ... If you had just said "Siv you forgot to include the port number in the ... Telnet command" in your first response after asking me to carry out the ... I said earlier I am not familiar with telnet, I have probably used it twice ... Connecting To smtp.surfdsl.net...Could not open connection to the host, ...
      (microsoft.public.exchange.misc)
    • Re: Cant read a lonely (char)13 from serialport
      ... > 1) I writea command to the port ... >is sent back in response to the command that I sent. ... remote device might be accepting a command, ... and wait for an *appropriate* response before ...
      (comp.os.linux.development.system)
    • Re: LPT1 Port Prints to Network Printer
      ... Open a Command Prompt and key the command: ... LPT1 Port Prints to Network Printer ...
      (microsoft.public.win2000.printing)
    • Re: WANTED: "BASIC Forum" References
      ... The software used to drive a UART board cassette tape system  is ... Consider  first the problem of writing data to a cassette  tape. ... one a status port, ... use for the WAIT command. ...
      (comp.os.cpm)
    • Misc PPP questions
      ... What are the specific advantages of using a kernel PPP ... I use the command ppp -ddial papchap. ... Want to chat instantly with your online friends? ...
      (freebsd-newbies)