From owner-FreeBSD-users-jp@jp.freebsd.org  Mon Oct 14 02:57:53 1996
Received: by mail.jp.freebsd.org (8.7.3+2.6Wbeta5/8.7.3) id CAA26620
	Mon, 14 Oct 1996 02:57:53 +0900 (JST)
Received: by mail.jp.freebsd.org (8.7.3+2.6Wbeta5/8.7.3) with ESMTP id CAA26615
	for <FreeBSD-users-jp@jp.freebsd.org>; Mon, 14 Oct 1996 02:57:51 +0900 (JST)
Received: from sh0.po.iijnet.or.jp (sh0.po.iijnet.or.jp [192.244.177.1]) by mf00.iij.ad.jp (8.7.5+2.6Wbeta7/3.5Wbeta-mf1.0) with SMTP id CAA29048 for <FreeBSD-users-jp@jp.freebsd.org>; Mon, 14 Oct 1996 02:57:49 +0900 (JST)
Received: from sapphire (port1s14.sanmedia.or.jp [202.230.195.75]) by sh0.po.iijnet.or.jp (8.6.12+2.5Wb7/3.5Wbeta-nomx) with SMTP id CAA02628 for <FreeBSD-users-jp@jp.freebsd.org>; Mon, 14 Oct 1996 02:57:47 +0900
Message-Id: <199610131757.CAA02628@sh0.po.iijnet.or.jp>
X-Sender: miha@sh0.po.iijnet.or.jp
X-Mailer: Windows Eudora Pro Version 2.2-Jr1 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-2022-JP"
Date: Mon, 14 Oct 1996 02:58:57 +0900
To: FreeBSD-users-jp@jp.freebsd.org
From: Masaya Mihara <miha@po.iijnet.or.jp>
Reply-To: FreeBSD-users-jp@jp.freebsd.org
X-Distribute: distribute [version 2.1 (Alpha) patchlevel=19]
X-Sequence: FreeBSD-users-jp 5230
Subject: [FreeBSD-users-jp 5230] I can't connect ISP with IIJ-PPP
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org

$B$O$8$a$^$7$F!"0JA0$+$i$3$N(JML$B$KF~2q$O$7$F$$$?$N$G$9$,(J
$B:G6a$h$&$d$/(JPC UNIX$B$r9x$r?x$($F$$$8$j$@$7$??H86$G$9!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200
 disable lqr
 deny lqr
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATZ OK-ATZ-OK
 ($BB3$-$G$9(J) \\dATD\\T TIMEOUT 40 CONNECT"
isp:
# set ifaddr 0 0
 set phone xx-xxxx
 accept pap
 set openmode active
 set authname xxxxx
 set authkey  xxxxx
 dial

--- ppp.linkup ---
isp:
 delete ALL
 add 0 0 HISADDR
#
# Otherwise, simply add peer as default gateway.
#
MYADDR:
 add 0 0 HISADDR

--- sysconfig --- network$B$N$H$3$m$G$9(J
######################### Start Of Netconfig Section #######################

# Set to the name of your host - this is pretty important!
hostname="diamond"

# Set to the NIS domainname of your host, or NO if none
defaultdomainname=NO

#
# Some broken implementations can't handle the RFC 1323 and RFC 1644
# TCP options.  If TCP connections randomly hang, try disabling this,
# and bug the vendor of the losing equipment.
#
tcp_extensions=YES

# If you're running PCNFSD or anything else which requires mountd to allow
# non-root requests for NFS mounts, set this to YES.
weak_mountd_authentication=NO

#
# Set to the list of network devices on this host.  You must have an
# ifconfig_${network_interface} line for each interface listed here.
# for example:
#
#       network_interfaces="ed0 sl0 lo0"
#
#       ifconfig_ed0="inet 10.0.0.1 netmask 0xffffff00"
#       ifconfig_sl0="inet 10.0.1.0 netmask 0xffffff00"
#       ifconfig_lo0="inet localhost"
#
network_interfaces="ppp0 de0 lo0"
#ifconfig_ppp0="inet 0.0.0.0  netmask 255.255.255.0"
ifconfig_ppp0="inet 0.0.0.0  netmask 255.255.255.0"
ifconfig_de0="inet 192.168.0.1  netmask 255.255.255.0"

ifconfig_lo0="inet localhost"

#
# Set to the list of route add lines for this host.  You must have a
# route_${static_routes} line for each static route listed here (unless
# static_routes is set to "" - do NOT use ``NO'' to denote a lack of static
# routes!).
#
#static_routes="foo multicast"
#route_foo="woofo woofo-gw"
#route_multicast="224.0.0.0 -netmask 0xf0000000 -interface 10.0.0.1"
static_routes=""

# Set to the host you'd like set as your default router, or NO for none.
# This is the same as adding a ``default'' entry to static_routes.
defaultrouter=NO

# This is the routing daemon you want to use.  Possible options are
# currently NO (for none), `routed' and `gated'.  Also see `routerflags'
# for startup flags.
router=routed

# These are the flags you'd like to start the routing daemon with
routerflags=-q

# mrouted flags, or NO if you don't want to start mrouted. Needs kernel
# options enabled before it will work.
mrouted=NO

# timed flags, or NO if you don't want to start the time daemon
timedflags=NO

# xntpd flags, or NO if you don't want to start the xntpd daemon
xntpdflags="NO"

# this is inoperative unless xntpd is enabled; NO to disable
tickadjflags="-Aq"

# Set to the site you'd like to synchronize your clock from (gatekeeper.dec.com,
# for example) or NO for no such site.
ntpdate="NO"

# Set to YES if you want to run rwhod
rwhod=NO

# Set to NO if don't want to run lpd
lpd=YES

# Default sendmail flags.  -bd is pretty mandatory, -q<n>m sets the queue scan
# time in minutes.  If set to NO, don't start sendmail at all.
sendmail_flags="-bd -q30m"

# Set to appropriate flags if you want to use AMD.  The commented-out entry
# provides a reasonable default, using the sample amd.map config file from the
# /usr/src/etc directory.
amdflags="NO"
#amdflags="-a /net -c 1800 -k i386 -d my.domain -l syslog /host /etc/amd.map"

# Set to YES if this machine will be an NFS client
nfs_client=NO

# Set to YES if this machine will be an NFS server
nfs_server="YES"

# Set to appropriate flags if you want to start NIS for a client
nis_clientflags="NO"

# Name of host to ypset to, if no YP server on this wire
nis_ypsetflags="NO"

# Set to appropriate flags if you want to start NIS for a server
nis_serverflags="NO"

# Set to appropriate flags for rpc.yppasswdd, if you wish to run it.
# Typical flags might be "-t /var/yp/master.passwd -s -f"
yppasswddflags="NO"

# Set to appropriate flags for named, if you have a full-time
# connection to the Internet.
# For most hosts, flags should be "-b /etc/namedb/named.boot"
namedflags="NO"

# Set to YES if you want to run the X-10 power controller daemon
xtend=NO

# Set to the name of the device for kernel crashdumps, or `off' to
# disable any statically configured dumpdev, or NO for no change.
# The device should normally be one of the swap devices specified
# in /etc/fstab.
dumpdev=NO

# Set to YES if you want kernel crashdumps to be saved for debugging
savecore=NO

# Set to YES if you want to run Kerberos authentication
kerberos_server=NO

# If you want this host to be a gateway, set to YES.
gateway=YES

# If you want this host to be a firewall or otherwise filter IP, set to YES.
firewall=NO

# Set to YES if you wish to check quotas.
check_quotas=NO

# Set to YES to turn on accounting.
accounting=NO

######################### End Of Netconfig Section #######################

--- show ipcp ---
IPCP [Opend]
 his side: hhh.hhh.hhh.69, 2d0f00
 my  side: hhh.hhh.hhh.75, 2d0f00
connected: 2 secs, idle: 2 secs

Defaults:
 My Address:  192.168.0.1/0
 His Address: 0.0.0.0/0
 Negotiation: 0.0.0.0/0

--- show route ---
default          hhh.hhh.hhh.69     ffffffff  UG     (4)
127.0.0.1        127.0.0.1          ffffffff  UH     (2)
192.168.0.0      6.0.0.0            00000000  U      (1)
192.168.0.1      6.0.6.0            ffffffff  UH     (2)
192.168.0.13     6.0.6.0            ffffffff  UH     (1)
hhh.hhh.hhh.69   hhh.hhh.hhh.75     ffffffff  UH     (4)

--- show hdlc ---
HDLC level errors

FCS: 1  ADDR: 0  COMMAND: 0  PROTO: 0

--- show log ---
10-14 02:41:05 [583]  ACCMAP [6] 00000000
10-14 02:41:05 [583]  MRU [4] 1500
10-14 02:41:05 [583]  MAGICNUM [6] 90086221
10-14 02:41:05 [583] LCP: state change Closed --> Req-Sent
10-14 02:41:05 [583] PPP Started.
10-14 02:41:08 [583] LCP: SendConfigReq
10-14 02:41:08 [583]  ACFCOMP
10-14 02:41:08 [583]  PROTOCOMP
10-14 02:41:08 [583]  ACCMAP [6] 00000000
10-14 02:41:08 [583]  MRU [4] 1500
10-14 02:41:08 [583]  MAGICNUM [6] 90086221
10-14 02:41:08 [583] LCP: Received Configure Request (1) state = Req-Sent (6)
10-14 02:41:08 [583]  ACCMAP 00000000
10-14 02:41:08 [583]  MAGICNUM 8d4c76dd
10-14 02:41:08 [583]  PROTOCOMP
10-14 02:41:08 [583]  ACFCOMP
10-14 02:41:08 [583]  AUTHPROTO proto = c023
10-14 02:41:08 [583] LCP:  SendConfigAck(Req-Sent)
10-14 02:41:08 [583]  ACCMAP 00000000
10-14 02:41:08 [583]  MAGICNUM 8d4c76dd
10-14 02:41:08 [583]  PROTOCOMP
10-14 02:41:08 [583]  ACFCOMP
10-14 02:41:08 [583]  AUTHPROTO proto = c023
10-14 02:41:08 [583] LCP: state change Req-Sent --> Ack-Sent
10-14 02:41:11 [583] LCP: SendConfigReq
10-14 02:41:11 [583]  ACFCOMP
10-14 02:41:11 [583]  PROTOCOMP
10-14 02:41:11 [583]  ACCMAP [6] 00000000
10-14 02:41:11 [583]  MRU [4] 1500
10-14 02:41:11 [583]  MAGICNUM [6] 90086221
10-14 02:41:11 [583] LCP: Received Configure Ack (3) state = Ack-Sent (8)
10-14 02:41:11 [583] LCP: state change Ack-Sent --> Opend
10-14 02:41:11 [583] LCP: LayerUp
10-14 02:41:11 [583] Phase: Authenticate
10-14 02:41:11 [583]  his = c023, mine = 0
10-14 02:41:11 [583] PAP: xxxxx (xxxxx)
10-14 02:41:12 [583] PapInput: ACK
10-14 02:41:12 [583] Received PAP_ACK (Login Succeeded)
10-14 02:41:12 [583] Phase: Network
10-14 02:41:12 [583] IPCP: state change Initial --> Closed
10-14 02:41:12 [583] IPCP Up event!!
10-14 02:41:12 [583] IPCP: SendConfigReq
10-14 02:41:12 [583]  IPADDR [6] 192.168.0.1
10-14 02:41:12 [583]  COMPPROTO [6] 002d0f00
10-14 02:41:12 [583] IPCP: state change Closed --> Req-Sent
10-14 02:41:12 [583] CCP: state change Initial --> Closed
10-14 02:41:12 [583] CCP Up event!!
10-14 02:41:12 [583] CCP: SendConfigReq
10-14 02:41:12 [583] CCP: state change Closed --> Req-Sent
10-14 02:41:12 [583] IPCP: Received Configure Request (1) state = Req-Sent (6)
10-14 02:41:12 [583]  COMPPROTO[6]  002d0f00
10-14 02:41:12 [583]  IPADDR[6]  hhh.hhh.hhh.69
10-14 02:41:12 [583] IPCP:  SendConfigAck(Req-Sent)
10-14 02:41:12 [583]  COMPPROTO[6]  002d0f00
10-14 02:41:12 [583]  IPADDR[6]  hhh.hhh.hhh.69
10-14 02:41:12 [583] IPCP: state change Req-Sent --> Ack-Sent
10-14 02:41:12 [583] IPCP: Received Configure Nak (1) state = Ack-Sent (8)
10-14 02:41:12 [583]  IPADDR[6]  hhh.hhh.hhh.75
10-14 02:41:12 [583]  IPADDR[6]  changing address: 192.168.0.1  --> hhh.hhh.hhh.
75
10-14 02:41:12 [583] IPCP: SendConfigReq
10-14 02:41:12 [583]  IPADDR [6] hhh.hhh.hhh.75
10-14 02:41:12 [583]  COMPPROTO [6] 002d0f00
10-14 02:41:12 [583] LCP: Received Protocol Reject (2) state = Opend (9)
10-14 02:41:12 [583] -- Protocol (80fd) was rejected.
10-14 02:41:12 [583] CCP: LayerFinish.
10-14 02:41:12 [583] CCP: state change Req-Sent --> Stopped
10-14 02:41:12 [583] IPCP: Received Configure Ack (2) state = Ack-Sent (8)
10-14 02:41:12 [583] IPCP: state change Ack-Sent --> Opend
10-14 02:41:12 [583] IPCP: LayerUp.
10-14 02:41:12 [583]  myaddr = hhh.hhh.hhh.75  hisaddr = hhh.hhh.hhh.69
10-14 02:41:12 [583] OsLinkup: hhh.hhh.hhh.69

--- netstat -rn ---
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use     Netif Expire
default            hhh.hhh.hhh.69     UGc         0        0      tun0
127.0.0.1          127.0.0.1          UH          0       10       lo0
192.168            link#1             UC          0        0
192.168.0.1        0:40:c7:94:f:51    UHLW        1       16       lo0
192.168.0.13       0:0:c0:5b:d2:d     UHLW        1     2523       de0   1146
hhh.hhh.hhh.69     hhh.hhh.hhh.75     UH          1        0      tun0

--- netstat -in ---
Name  Mtu   Network       Address            Ipkts Ierrs    Opkts Oerrs  Coll
de0   1500  <Link>00.40.c7.94.0f.51           6812     0     2547     0     0
de0   1500  192.168       192.168.0.1         6812     0     2547     0     0
lo0   16384 <Link>                              28     0       28     0     0
lo0   16384 127           127.0.0.1             28     0       28     0     0
sl0*  552   <Link>                               0     0        0     0     0
tun0  1500  <Link>                              40     0       52     0     0
tun0  1500  hhh.hhh.hhh   hhh.hhh.hhh.75        40     0       52     0     0
tun1* 1500  <Link>                               0     0        0     0     0
tun2* 1500  <Link>                               0     0        0     0     0

--- ifconfig tun0 ---
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
        inet hhh.hhh.hhh.75 --> hhh.hhh.hhh.69 netmask 0xffffff00

    Masaya Mihara                             miha@po.iijnet.or.jp
        from Japan                            miha@mihara.com
                                          MAF02277@niftyserve.or.jp
                                        71050,2277@compuserve.com

