From owner-FreeBSD-users-jp@jp.freebsd.org  Wed Mar 27 22:05:24 1996
Received: by mail.jp.freebsd.org (8.7.3+2.6Wbeta5/8.7.3) id WAA20982
	Wed, 27 Mar 1996 22:05:24 +0900 (JST)
Received: by mail.jp.freebsd.org (8.7.3+2.6Wbeta5/8.7.3) with SMTP id WAA20977
	for <FreeBSD-users-jp@jp.freebsd.org>; Wed, 27 Mar 1996 22:05:14 +0900 (JST)
Received: from sannet.or.jp (root@localhost [127.0.0.1]) by Jennifer.smm.sanyo.co.jp (8.6.12+2.4W/3.3W9) with ESMTP id WAA00179 for <FreeBSD-users-jp@jp.freebsd.org>; Wed, 27 Mar 1996 22:05:31 +0900
Message-Id: <199603271305.WAA00179@Jennifer.smm.sanyo.co.jp>
To: FreeBSD-users-jp@jp.freebsd.org
Date: Wed, 27 Mar 1996 22:05:30 +0900
From: "Masashi Ueno(mueno@sannet.or.jp)" <root@sannet.or.jp>
Reply-To: FreeBSD-users-jp@jp.freebsd.org
X-Distribute: distribute [version 2.1 (Alpha) patchlevel=19]
X-Sequence: FreeBSD-users-jp 872
Subject: [FreeBSD-users-jp 872] How to setup the 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!"(B
	$B>eLn!w;0MN$H?=$7$^$9!#(B

 $B$$$^$^$G!"(BMS-DOS$B$r$:$C$H$d$C$F$-$F!"(BUnix$B$K4X$7$F$O=i?4<T$G$9$,$h$m$7$/$*4j$$CW$7$^$9!#(B
$B$H$3$m$G!"AaB.$G$9$,(BFreeBSD2.1$B$N(BCD-ROM$B$r9XF~$7!"%f!<%6!<%W%m%;%9$N(BPPP$B$K$h$k%@%$%"%k%"%C%W@\B3$N@_Dj$r$7$?$H$3$m!"(BPING$B$N%l%9%]%s%9$,JV$C$F$3$J$$$N$GG:$s$G$*$j$^$9!#(B
$B$*<j?t$G$9$,2?$,LdBj$J$N$+!"C/$+65$($FD:$1$^$;$s$G$7$g$&$+!#(B
PPP$B$H%M%C%H%o!<%/$K4X$9$k@_Dj$N%U%!%$%k$r0J2<$KE:IUCW$7$^$9!#(B

$B#1(B. PPP$B$G$N%m%0(B
jackie# ppp
User Process PPP. Written by Toshiharu OHNO.
Log level is 09
can't open /etc/ppp/ppp.secret.
Warning: No password entry for this host in ppp.secret
Warning: All manipulation is allowed by anyone in the world
Using interface: tun0
Interactive mode
ppp ON jackie> display
Current configuration option settings..

Name            My Side         His Side
----------------------------------------
vjcomp          enable          accept
lqr             disable         deny
chap            disable         deny
pap             disable         accept
acfcomp         enable          accept
protocomp       enable          accept
pred1           disable         deny
proxy           disable         deny

ppp ON jackie> show modem
device: /dev/cuaa1  speed: 38400
cs8, none parity
connect count: 0
outq: 72
outqlen: 0
DialScript  = ABORT BUSY ABORT NO\sCARRIER TIMEOUT 20 "" ATZE1Q0X03 OK-AT-OK \dATDP\T TIMEOUT 40 CONNECT
LoginScript = TIMEOUT 25 gin: \U word: \P
PhoneNumber = 0,XXXXXX
ppp ON jackie> dial
dial OK!
login OK!
ppp ON jackie> Packet mode. 

PPP ON jackie> show ipcp
IPCP [Opend]
 his side: 134.180.246.2, 2d0f01
 my  side: 134.180.245.9, 2d0f00
connected: 5 secs, idle: 5 secs

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

PPP ON jackie> show route
default          134.180.246.2      ffffffff  UG     (5)
127.0.0.1        127.0.0.1          ffffffff  UH     (2)
134.180.246.2    134.180.245.9      ffffffff  UH     (5)
224.0.0.0        127.0.0.1          00000000  U      (2)

PPP ON jackie> show ccp
CCP [Closed]
myproto = OUI, hisproto = OUI
Input: 0 --> 0,  Output: 0 --> 0
PPP ON jackie> show compress
Out:  0 (compress) / 0 (total)  0 (miss) / 0 (search)
In:  0 (compress), 0 (uncompress)  0 (error),  0 (tossed)
PPP ON jackie> show hdlc
HDLC level errors

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

PPP ON jackie> show lcp
LCP [Opend]
 his side: MRU 1524, ACCMAP 000a0000, PROTOCOMP 1, ACFCOMP 1 MAGIC 00000000
 my  side: MRU 1500, ACCMAP 00000000, PROTOCOMP 1, ACFCOMP 1 MAGIC c121395a

Defaults:   MRU = 1500, ACCMAP = 00000000       Open Mode: active

PPP ON jackie> show proto
    Protocol     in        out      Protocol      in       out
   IP       :        0,        0   VJ_UNCOMP:        0,        0
   VJ_COMP  :        0,        0   COMPD    :        0,        0
   LCP      :        3,        3   IPCP     :        3,        3
   CCP      :        1,        1   PAP      :        0,        0
   LQR      :        0,        0   CHAP     :        0,        0
   Others   :        0,        0


PPP ON jackie> !
jackie# ifconfig -a
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000 
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1524
        inet 134.180.245.9 --> 134.180.246.2 netmask 0xffff0000 
tun1: flags=8010<POINTOPOINT,MULTICAST> mtu 1500

jackie# netstat -rn
Routing tables

Internet:
Destination      Gateway            Flags     Refs     Use     Netif Expire
default          134.180.246.2      UGc         0        0      tun0
127.0.0.1        127.0.0.1          UH          1        0       lo0
134.180.245.9    127.0.0.1          UH          0        0       lo0
134.180.246.2    134.180.245.9      UH          2        0      tun0
224              127.0.0.1          US          0        0       lo0
jackie# ping 134.180.49.3
PING 134.180.49.3 (134.180.49.3): 56 data bytes
^C
--- 134.180.49.3 ping statistics ---
5 packets transmitted, 0 packets received, 100% packet loss
jackie#


$B#2(B. /etc$B$N%M%C%H%o!<%/$K4X$9$k3F<o@_Dj%U%!%$%k$O0J2<$N$h$&$K$J$C$F$$$^$9!#(B

1) /etc/host.conf
# $Id: host.conf,v 1.2 1993/11/07 01:02:57 wollman Exp $
# Default is to use the nameserver first
hosts
bind
# If that doesn't work, then try the /etc/hosts file
# If you have YP/NIS configured, uncomment the next line
# nis

2) /etc/hosts
# $Id: hosts,v 1.5 1995/04/09 09:54:39 rgrimes Exp $
#
127.0.0.1		localhost jackie.sannet.or.jp 

3) /etc/resolv.conf
domain	sannet.or.jp
nameserver	134.180.49.3

4) /etc/sysconfig$B%U%!%$%k$N%M%C%H%o!<%/4X78ItJ,(B

######################### Start Of Netconfig Section #######################

# Set to the name of your host - this is pretty important!
hostname="jackie.sannet.or.jp"

# 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

#
# 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"
#
network_interfaces="cuaa1 lo0"
ifconfig_cuaa1="inet 0.0.0.0  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.
#
static_routes="multicast loopback"
route_multicast="224.0.0.0 -netmask 0xf0000000 -interface ${hostname}"
route_loopback="${hostname} localhost"

# Set to the host you'd like set as your default router, or NO for none.
defaultrouter=NO

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

# 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 syncronize 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

# 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
amdflags="NO"

# 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=NO

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

# Set to host to ypset to if you need to do that
nis_ypsetflags="NO"

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

# Set to appropriate flags for yppasswdd, if you wish to run it.
# Typical flags might be "-m /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 run PC-NFSD (see /usr/ports/net/pcnfsd) for
# sharing filesystems with DOS/Windows PCs.
pcnfsd=NO

# Set to YES if you have the Apache WEB server (see /usr/ports/net/apache)
# installed and want to run it at system startup time (this is better than
# running it from inetd if you're running a dedicated WWW server).
apache_httpd=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=NO

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

# Set to YES if you wish to check quotas.  NOTE:  For now this probably
# doesn't work and should be left disabled.
check_quotas=NO

# Set to YES to turn on accounting.  NOTE: For now this probably
# doesn't work and should be left disabled.
accounting=NO

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

######################### Start Of Misc Section #######################

# Set to YES if you want ibcs2 (SCO) emulation loaded at startup
ibcs2=NO



$B#3(B. PPP$B$N@_Dj$O<!$N$h$&$K$J$C$F$$$^$9!#(B
1) /etc/ppp/ppp.config
#################################################################
#
#  	PPP  Sample Configuration File
#
#################################################################
default:
 set device /dev/cuaa1
 set speed 38400
 disable lqr
 deny lqr
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 20 \"\" ATZE1Q0X03 OK-AT-OK \\dATDP\\T TIMEOUT 40 CONNECT"
 set phone 0,XXXXXX
 set login "TIMEOUT 25 gin: \\U word: \\P"
 deny chap
 accept pap
 set authname YYYYYYYYYY
 set authkey  ZZZZZ
 set timeout 180
 set ifaddr 0 0
 set openmode active
 deny pred1
 disable pred1

2) /etc/ppp/ppp.linkup
#########################################################################
#
#          Example of ppp.linkup file
#
#########################################################################
MYADDR:
 delete ALL
 add 0 0 HISADDR

-------------------------------------------------------------------------
$B59$7$/$*4j$$CW$7$^$9!#(B
$B>eLn(B <mueno@sannet.or.jp>













