This file is indexed.

/usr/share/doc/HOWTO/ja-html/Dial-On-Demand-6.html is in doc-linux-ja-html 2006.05.25-1.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
 <TITLE>Dial-On-Demand mini-HOWTO: pppÀßÄê</TITLE>
 <LINK HREF="Dial-On-Demand-7.html" REL=next>
 <LINK HREF="Dial-On-Demand-5.html" REL=previous>
 <LINK HREF="Dial-On-Demand.html#toc6" REL=contents>
</HEAD>
<BODY>
<A HREF="Dial-On-Demand-7.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Dial-On-Demand-5.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Dial-On-Demand.html#toc6">Ìܼ¡¤Ø</A>
<HR>
<H2><A NAME="s6">6. pppÀßÄê</A></H2>

<P>pppd¤Ï/etc/ppp¤Ç¥¹¥¯¥ê¥×¥È¤òõ¤·¤Þ¤¹¡£
<P>/etc/ppp/options:
<HR>
<PRE>
/dev/modem 38400 crtscts modem noipdefault defaultroute idle-disconnect
120
</PRE>
<HR>
<P>°ÕÌ£¡§
<P>
<UL>
<LI>/dev/modem      
¥Ç¥Ð¥¤¥¹¤Ï/dev/cua1¤Ë¥ê¥ó¥¯¤ò¤Ï¤Ã¤Æ¤¤¤Þ¤¹¡£</LI>
<LI>38400           (/etc/rc.d/rc.serial¥Õ¥¡¥¤¥ë¤Î<CODE>spd_vhi</CODE>¥Ñ¥é¥á¡¼¥¿¤Ç)115200¤Ë
ÃÖ¤­´¹¤¨¤é¤ì¤Þ¤¹¡£</LI>
<LI>crtscts         ¥Ï¡¼¥É¥Õ¥í¡¼À©¸æ(hardware handshake)¡¢rts/cts¡£
Xon-Xoff¥Õ¥í¡¼À©¸æ ¤Ï»È¤ï¤Ê¤¤¤Ç²¼¤µ¤¤¡£</LI>
<LI>noipdefault     
¼«Æ°Åª¤ËIP¥¢¥É¥ì¥¹¤ò¥¢¥µ¥¤¥ó¤¹¤ë(PPP¥Í¥´¥·¥¨¡¼¥·¥ç¥ó¤ÇIP¤ò·èÄê)¡£</LI>
<LI>defaultroute    ¤³¤ì¤Ï¥ê¥ó¥¯¤¬³ÎΩ¤·¤¿¤È¤­¥Ç¥Õ¥©¥ë¥È¥ë¡¼¥È¤òppp¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤Ë¥»¥Ã¥È
¤·¤Þ¤¹¡£</LI>
<LI>idle-disconnect
120Éøå¤Ë¥¢¥¤¥É¥ë¥ê¥ó¥¯¤ò¼«Æ°Åª¤ËÀÚÃÇ(PPP-2.2.0f)¡£</LI>
</UL>

¼¡¤Ë¥¹¥¯¥ê¥×¥È'default'(Ä̾ï»È¤¦¥×¥í¥Ð¥¤¥ÀISP)¤ò½ñ¤­¤Þ¤¹¡£
¾¤ÎÀܳ¤â¹Ô¤¦¾ì¹ç¤Ï¡¤³Æ¥µ¥¤¥ÈÍѤΥ¹¥¯¥ê¥×¥È¤òÊÌ¡¹¤Ëºî¤ê¤Þ¤¹¡£
<P>
<P>/etc/ppp/default:
<PRE>
"" ats11=55dtXXXXXXXX CONNECT "" rname: UUUUU sword: PPPPP > ppp
</PRE>

°ÕÌ£¡§
<UL>
<LI>ats11=55        
¥À¥¤¥¢¥ë¥È¡¼¥ó¤È¥À¥¤¥¢¥ë¥¹¥Ô¡¼¥É¤Î»ØÄê¡£</LI>
<LI>XXXXXXXX        
¥×¥í¥Ð¥¤¥À¤ÎÅÅÏÃÈÖ¹æ¤òÆþÎÏ¡£</LI>
<LI>CONNECT         
chat¤Ï¥â¥Ç¥à¤«¤é'CONNECT'¤¬Ê֤äƤ¯¤ë¤Î¤òÂÔ¤Á¤Þ¤¹¡£</LI>
<LI>rname:          
chat¤Ï'rname'¤òÂÔ¤Á¡¢'UUUUU'¤òÆþÎϤ·¤Þ¤¹¡£</LI>
<LI>sword:          
chat¤Ï'sword'¤òÂÔ¤Á¡¢'PPPPP'¤òÆþÎϤ·¤Þ¤¹¡£</LI>
</UL>

'UUUUU' ¤È 'PPPPP'¤ò¤½¤ì¤¾¤ì¥æ¡¼¥¶Ì¾¤È¥Ñ¥¹¥ï¡¼¥É¤ËÃÖ¤­´¹¤¨¤Æ¤ª¤¤¤Æ²¼¤µ¤¤¡£
¤³¤³¤Ç¤Ï 'rname'¤È'sword'¤ò»È¤¤¤Þ¤¹¡£¤Ï¤¸¤á¤Îʸ»ú¤¬·çÍ¤¿¤êÂçʸ»ú/¾®Ê¸»ú
¤À¤Ã¤¿¤ê¸À¸ì¤Ë¤è¤Ã¤Æ°ã¤¦¤Î¤Ç¤³¤Î¤è¤¦¤Ë¤·¤Þ¤¹(<EM>ÌõÃí</EM>¡§³Æ¼«¤Î¥×¥í¥Ð¥¤¥À¤Ë¹ç
¤ï¤»¤ÆÊѹ¹¤·¤Þ¤¹¡£'rname'¤Ç¤Ï¤Ê¤¯'ogin:'¤Ê¤É¤Î¾ì¹ç¤â¤¢¤ê¤Þ¤¹)¡£
¥×¥í¥Ð¥¤¥À¤Ë¤è¤Ã¤Æ¥æ¡¼¥¶¡¼Ì¾¤È¥Ñ¥¹¥ï¡¼¥É¤òÆþÎϤ·¤¿¤é'ppp'ÆþÎϤòɬÍפȤ¹¤ë
¤È¤³¤í¤â¤¢¤ê¤Þ¤¹¡£¤½¤³¤Ç¥ë¡¼¥¿¥×¥í¥ó¥×¥È('>')¤Î¥é¥¹¥È¥­¥ã¥é¥¯¥¿ÂÔ¤Á¤Ë¤·¤Þ¤¹¡£
&quot;serial line looped back&quot;¤ä&quot;serial line not 8-bit clean
&quot;¤È¤¤¤Ã¤¿¥¨¥é¡¼¤¬½Ð¤¿¤é¡¢¤Þ¤ÀPPP¥â¡¼¥É¤Ë¤Ï¤Ê¤Ã¤Æ¤¤¤Þ¤»¤ó¡£
<P>
<P>/etc/ppp/ppp:
<HR>
<PRE>
#!/bin/sh
/usr/sbin/pppd connect '/usr/sbin/chat -v -f /etc/ppp/default'
</PRE>
<HR>

¤³¤Î¥³¥Þ¥ó¥É¤Ïû¤¤¥¹¥¯¥ê¥×¥È¤Ë½ñ¤±¤ëÄøÅÙ¤ÎŤµ¤Ç¤¹¡£
¤³¤ì¤Ç¥×¥í¥Ð¥¤¥À¤ËÀܳ¤Ç¤­¤Þ¤¹¡£<CODE>/etc/ppp/options</CODE>¤Ë¥Ç¥Ð¥Ã¥°¥Ñ¥é¥á¡¼¥¿
'debug'¤òÄɲ乤ì¤Ðpppd¤¬¹Ô¤Ã¤Æ¤¤¤ë¤³¤È¤ò´Æ»ë¤¹¤ësyslogd¤Î¥í¥°¥ì¥Ù¥ë¤òÁý¤ä¤¹
¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£
<P>/etc/syslog.conf
<PRE>
*.debug                                 /var/log/messages
</PRE>

syslog.conf¤òÊÔ½¸¤·¤¿¤é¤³¤ÎÊѹ¹¤òsyslogd(syslog¥Ç¡¼¥â¥ó)¤Ëǧ¼±¤µ¤»¤Þ¤¹¡£
PID¥Õ¥¡¥¤¥ë¤Î°ÌÃÖ¤ÏŬÅö¤Ê¥Ç¥£¥ì¥¯¥È¥ê¤ò½ñ¤¤¤Æ²¼¤µ¤¤¡£
<PRE>
kill -1 `cat /var/run/syslog.pid`
</PRE>

¤¢¤ë¤¤¤Ï
<PRE>
kill -1 `cat /etc/syslog.pid`
</PRE>

Àܳ¸å'ppp0'¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤¬¤¢¤ë¤«¤ò'<CODE>ifconfig</CODE>'¤Ç¡¢¤Þ¤¿¥Ç¥Õ¥©¥ë¥È¥ë¡¼¥È
¤ò '<CODE>netstat -r</CODE>'¤Ç¥Á¥§¥Ã¥¯¤·¤Þ¤¹(¥×¥í¥Ð¥¤¥À¤ËÀܳ¤·¤Æ¤¤¤Þ¤¹)¡£
¥ê¥â¡¼¥È¥µ¡¼¥Ð¤Ëping¤ò¤·¤Æ¤ß¤Þ¤¹(Î㤨¤Ð¥×¥í¥Ð¥¤¥À¤Î¥Í¡¼¥à¥µ¡¼¥Ð¤Ë)¡£
°Ê¾å¤ÇÌäÂ꤬¤Ê¤±¤ì¤Ð¡¢¥Í¡¼¥à¥µ¡¼¥Ð¤ò<CODE>/etc/resolv.conf</CODE>¤ËÅÐÏ¿¤·¤Þ¤¹¡£
<PRE>
search your.isp.domain
nameserver x.x.x.x
</PRE>

(<EM>ÌõÃí¡§</EM>£±¹ÔÌܤϥɥᥤ¥ó̾¤ÎÊä´°ÍѤΥ¢¥É¥ì¥¹¤Ç¡¢£²¹ÔÌܤϥ͡¼¥à¥µ¡¼¥Ð
¤ÎIP¥¢¥É¥ì¥¹¤Ç¤¹)¡£
<P>
<P>
<HR>
<A HREF="Dial-On-Demand-7.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Dial-On-Demand-5.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Dial-On-Demand.html#toc6">Ìܼ¡¤Ø</A>
</BODY>
</HTML>