Newsgroups: fj.unix,fj.question.unix
Path: galaxy.trc.rwcp.or.jp!coconuts.jaist!wnoc-tyo-news!wnoc-sfc-news!venus.sun.com!nntp-hub2.barrnet.net!newsfeed.internetmci.com!news.dacom.co.kr!usenet.seri.re.kr!news.imnet.ad.jp!news.join.ad.jp!news!ykamada
From: ykamada@cosmos.tamagawa.ac.jp (YUUICHI KAMADA)
Subject: Routing on PPP
Sender: news@news.tamagawa.ac.jp
Message-ID: <DHpsn7.FHv@news.tamagawa.ac.jp>
Date: Wed, 8 Nov 1995 07:54:42 GMT
Lines: 108
Nntp-Posting-Host: cosmos.tamagawa.ac.jp
Organization: Tamagawa University
X-Newsreader: mnews [version 1.17] 1994-01/27(Thu)
Xref: galaxy.trc.rwcp.or.jp fj.unix:5176 fj.question.unix:20
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.unix&nb=5176&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

$B6L@nBg3X$N3yED$H?=$7$^$9!#(B

PPP$B$r;HMQ$7$?>l9g$N(Brouting$B$N@_DjJ}K!$,$o$+$i$:!":$$C$F$$$^$9!#(B
$B$I$&$+!"$*NO$r$*B_$72<$5$$!#(B

$B8=:_!"(BPPP$B$r;HMQ$7$F0J2<$NMM$J%M%C%H%o!<%/$r9=@.$7$h$&$H9M$($F$$$^$9!#(B

       ---------------------+----------------- BackBorn 
                            |       ClassC **.**.197.0
                     -------+-------
                     |SPARC Classic| $B%^%7%s(BA
                     |Solaris1.1.1 | **.**.197.236
                     --+---------+--
                       M         M                M = modem
                       :         :                : = Telephone line
           $B%^%7%s(BB     M         M      $B%^%7%s(B C
             ----------+-       -+-----------
**.**.192.93 |NeXStep3.2|       |NeXTSTEP3.2|  **.**.192.129
             -----+------       -----+-------
                  |                  |
     -------------+----             -+-----------------
    ClassC Subnet **.**.192.64    Subnet **.**.192.128 

$B0J2<@_Dj$,B3$-$^$9!#>/!9D9$/$J$C$F$7$^$$$^$7$?!#(B


$B%^%7%s(BA$B$G$N%M%C%H%o!<%/>u67$O(B
[/etc/ppp/options]
    -pap -chap modem crtscts netmask 255.255.255.0    
[ifconfig -a]
   ppp0: flags=51<UP,POINTOPOINT,RUNNING>
           inet **.**.197.236 --> **.**.192.129 netmask ffffff00   
   ppp1: flags=55<UP,POINTOPOINT,RUNNING>
           inet **.**.197.236 --> **.**.192.93  netmask ffffff00   
[netstat -rn]
   **.**.192.129  **.**.197.236  UH       0      411    ppp0
   **.**.192.128  **.**.192.129  UG       1      785    ppp0   
   **.**.192.93   **.**.197.236  UH       0      263    ppp1
   **.**.192.64   **.** 192.93   UG       1      523    ppp1
[/usr/local/etc/P$B%^%7%sL>(B]
   #! /bin/sh
   /usr/bin/mesg n
   stty pass8 -tostop -tandem
   exec /usr/local/etc/pppd **.**.197.236:**.**.192.129($BKt$O!"(B93)  
[ps -ax | grep routed]
      387 ?  S     0:07 /usr/etc/in.routed -s   

$B%^%7%s(BB,C$B$G$N%M%C%H%o!<%/>u67$O(B
[/etc/ppp/options]
   passive -detach netmask 255.255.255.192   
[/etc/ppp/pppup]
   exec /usr/local/ppp/bin/pppd bsdcomp 10,10 lcp-echo-interval 15 \
   lcp-echo-failure 5 crtscts defaultroute debug modem -pap -chap \
   connect '/usr/local/ppp/bin/chat -v ABORT ERROR ABORT BUSY ABORT "NO CARRIER" ""
    "ATZ" OK "ATDT****" TIMEOUT 80 CONNECT "" ogin: "P$B%^%7%sL>(B" assword: "*****"' \
/dev/cudfb 38400 lock      
[ifconfig -a]
   $B%^%7%s(BB$B$O(B
      en0: flags=63<UP,BROADCAST,NOTRAILERS,RUNNING>
              inet **.**.192.93  netmask ffffffc0 broadcast **.**.192.127
      ppp0: flags=51<UP,POINTOPOINT,RUNNING>
              inet **.**.192.93  --> **.**.197.236 netmask ffffffc0
   $B%^%7%s(BC$B$O(B
      en0: flags=63<UP,BROADCAST,NOTRAILERS,RUNNING>
              inet **.**.192.129 netmask ffffffc0 broadcast **.**.192.191
      ppp0: flags=51<UP,POINTOPOINT,RUNNING>
              inet **.**.192.129 --> **.**.197.236 netmask ffffffc0
[netstat -rn]
   $B%^%7%s(BB$B$O(B
      Destination    Gateway        Flags Refs   Use  Interface
      **.**.197.236  **.**.192.93   UH    1      229  ppp0
      default        **.**.197.236  UG    1     1029  ppp0
      **.**.192.64   **.**.192.93   U     4     3847  en0   
   $B%^%7%s(BC$B$O(B
      Destination    Gateway        Flags Refs   Use  Interface
      **.**.197.236  **.**.192.129  UH    1      643  ppp0
      default        **.**.197.236  UG    1     5369  ppp0
      **.**.192.128  **.**.192.129  U     4    12356  en0   
[ps -ax | grep routed]
     100 ?  S     0:00 /usr/etc/routed -s  

$B$H$J$C$F$$$^$9!#@_Dj>u67$O$3$3$^$G$G$9!#(B
$B$3$N>u67$G(BRouting$B$NLdBj$,5/$3$C$F$$$^$9!#(B

$B>I>u$O!"(B**.**.197$B$N%M%C%H%o!<%/>e$N%^%7%s$+$i$=$l$>$l0J2<$N%^%7%s$K(B
Ping$B$rBG$C$?;~$K!"0J2<$NMM$K$J$C$F$7$^$&$3$H$G$9!#(B

1: $B%^%7%s(BB
   $B%^%7%s(BB is alive
2: $B%^%7%s(BC 
   $B%^%7%s(BC is alive
3: Subnet **.**.192.64$B>e$N%^%7%s(B
   $B%[%9%HL>(B is alive
4: Subnet **.**.192.128$B>e$N%^%7%s(B
   ICMP Net redirect from gateway $B%^%7%s(BA (**.**.197.236)
   to $B%^%7%s(BB (**.**.192.93) for $B%[%9%HL>(B (**.**.192.131)

$B%^%7%s(BA$B$O!"%M%C%H%o!<%/HV9f(B**.**.192$B$N%5%V%M%C%H$N$=$l$>$l$,!"$I$A$i$N%^%7%s(B
$B$rDL$l$PNI$$$N$+CN$C$F$$$kMM$J(Brouting$B%F!<%V%k$r;}$C$F$$$k$N$K!"(B
$B$I$&$7$F!"JRJ}$N(BSubnet$B>e$N%^%7%s7P$N7PO)$r!"JL$N(BSubnet$B$N%^%7%s$XN.$7$F(B
$B$7$^$&$N$G$7$g$&$+!)(B

$B%^%7%s(BB,C$B$,(Brouted$B$G(BRIP$B$rN.$7$F$7$^$C$F$$$k$N$,!"$d$O$jLdBj$J$N$G$7$g$&$+!)(B
$B%^%7%s(BB,C$B$,N.$9(BRIP$B$O!"!V(B**.**.192.0$B$O;d$rDL$C$F!W$H$$$&>pJs$r%^%7%s(BA
(**.**.197.236)$B$KEO$9$3$H$K$J$k$H;W$&$N$G$9$,!"%^%7%s(BA(**.**.197.236)$B$N(B
$B$N(Brouting table$B$O0l8~$KJQ$o$j$^$;$s!#(B

$BBgJQ!"D9!9$H$J$j$^$7$?$,!"$I$&$+CN<1$r8f65<x2<$5$$!#$h$m$7$/$*4j$$CW$7$^$9!#(B
-----------------------------------
194 $BEl5~ETD.ED;T6L@n3X1`(B6-1-1
$B6L@nBg3X(B $B%3%s%T%e!<%?%;%s%?!<=`Hw<<(B
         $B3yED(B $BM40l(B   E-mail: ykamada@cosmos.tamagawa.ac.jp
                     Tel   : 0427-39-8687
                     FAX   : 0427-39-8689
