/usr/share/doc/HOWTO/ja-html/KickStart-HOWTO-13.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 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>RedHat Linux KickStart HOWTO: ÉÕÏ¿ A - BOOTP/DHCP ¤È NFS ¤ÎÀßÄê</TITLE>
<LINK HREF="KickStart-HOWTO-14.html" REL=next>
<LINK HREF="KickStart-HOWTO-12.html" REL=previous>
<LINK HREF="KickStart-HOWTO.html#toc13" REL=contents>
</HEAD>
<BODY>
<A HREF="KickStart-HOWTO-14.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="KickStart-HOWTO-12.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="KickStart-HOWTO.html#toc13">Ìܼ¡¤Ø</A>
<HR>
<H2><A NAME="s13">13. ÉÕÏ¿ A - BOOTP/DHCP ¤È NFS ¤ÎÀßÄê</A></H2>
<P>
<P>BOOTP ¤ä DHCP ¤¬°ìÂβ¿¤Î¤³¤È¤À¤«Ê¬¤«¤é¤Ê¤±¤ì¤Ð¡¤
<A HREF="http://www.dhcp.org/">DHCP ¤Î WWW ¥µ¥¤¥È</A> ¤Ë¤¢¤ë¾Ü¤·
¤¤¾ðÊó¤ò¤´Í÷¤¯¤À¤µ¤¤¡¥NFS ¤Ï¤³¤ì¤È¤ÏÊÌ¤Ë NFS HOWTO ¤Ç¾Ü¤·¤¯ÀâÌÀ¤µ¤ì¤Æ
¤¤¤Þ¤¹¡¥DHCP mini-HOWTO ¤â¤¢¤ê¤Þ¤¹¡¥¤³¤³¤Ç¤ÏÆþÌçŪ¤Ê¥ì¥Ù¥ë¤ÎÀâÌÀ¤ò¹Ô¤¦
¤Ä¤â¤ê¤Ç¤¢¤ê¡¤¤½¤ì¤¾¤ì¤ÎÏÃÂê¤Ë´Ø¤¹¤ëÆͤùþ¤ó¤ÀÀâÌÀ¤Ï¹Ô¤¤¤Þ¤»¤ó¡¥Ïäò´Ê
ñ¤Ë¤·¤¹¤®¤À¤È»×¤ï¤ì¤¿¤é¡¤É®¼Ô¤Ë¤ªÃΤ餻¤¯¤À¤µ¤¤¡¥
<P>
<P>¤³¤³¤ÇÀâÌÀ¤¹¤ë BOOTP/DHCP + NFS ¤Î¹½À®¤ò»È¤Ã¤¿¥¤¥ó¥¹¥È¡¼¥ë¤Ë¤ª¤¤¤Æ¤Ï¡¤
KickStart ¤ÎÀßÄê¥Õ¥¡¥¤¥ë¤Ï BOOTP/DHCP ¥µ¡¼¥Ð¾å¤Î
<EM>/kickstart/IPADDR-kickstart</EM> ¤«¤é¥¤¥ó¥¹¥È¡¼¥ëÂоݤΥޥ·¥ó¤Ë
NFS ¤Ç¥Þ¥¦¥ó¥È¤Ç¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡¥¤³¤³¤Ç <EM>IPADDR</EM> ¤Ï¿·¤·¤¤
¥Þ¥·¥ó¤Î IP ¥¢¥É¥ì¥¹¤Ç¤¹¡¥Î㤨¤Ð¡¤
<EM>/kickstart/198.168.254.254-kickstart</EM> ¤Ï¥Þ¥·¥ó
<EM>198.168.254.254</EM> ÍѤÎÀßÄê¥Õ¥¡¥¤¥ë¤Ç¤¹¡¥
<P>
<P>BOOTP/DHCP ¤Î±þÅú¤Ç <CODE>bf</CODE>(boot file)¥Ñ¥é¥á¡¼¥¿¤òÊÖ¤¹¤³¤È¤Ë¤è¤Ã¤Æ
¤³¤Î°ÌÃÖ¤ò¾å½ñ¤¤¹¤ë¤³¤È¤¬¤Ç¤¤ë¤Ï¤º¤Ç¤¹¡¥¤³¤Î¥Õ¥¡¥¤¥ë¤ÏÁ´¤¯Ê̤Υޥ·¥ó
¤«¤é NFS ¥Þ¥¦¥ó¥È¤¹¤ë¤³¤È¤â¤Ç¤¤ë¤È»×¤¤¤Þ¤¹¡¥
<P>
<P>´û¸¤Î Linux ¥Þ¥·¥ó¤«¤é¥Ç¥£¥ì¥¯¥È¥ê¤ò NFS ¥¨¥¯¥¹¥Ý¡¼¥È¤¹¤ë¤Ë¤Ï¡¤°Ê²¼¤Î
¤è¤¦¤ÊÆâÍƤΥե¡¥¤¥ë <EM>/etc/exports</EM> ¤òºîÀ®¤·¤Þ¤¹:
<P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
/kickstart *.swedish-chef.org(ro,no_root_squash)
/mnt/cdrom *.swedish-chef.org(ro,no_root_squash)
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>»È¤¦Í½Äê¤Î IP ¤ò DNS ¤ËÅÐÏ¿¤·¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¤NFS ¥µ¡¼¥Ð¤ä RPC ¥Ý¡¼¥È
¥Þ¥Ã¥Ñ¤«¤é¸«¤¨¤Ê¤¤¤È¸À¤ï¤ì¤ë¤«¤â¤·¤ì¤Ê¤¤¤Î¤ÇÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡¥¤³¤Î¤è¤¦
¤Ê¾ì¹ç¤Ë¤Ï¡¤IP ¥¢¥É¥ì¥¹¤È¥Í¥Ã¥È¥Þ¥¹¥¯¤ÎÁȤòÀßÄê¥Õ¥¡¥¤¥ë¤Ë½ñ¤±¤Ð¤Ê¤ó¤È
¤«¤Ê¤ê¤Þ¤¹¡¥µ½ÒÎã¤ò°Ê²¼¤Ë¼¨¤·¤Þ¤¹:
<P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
/kickstart 198.168.254.0/255.255.255.0(ro,no_root_squash)
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P><EM>/etc/hosts.allow</EM> ¤Ë¤Ï°Ê²¼¤Îµ½Ò¤ò¹Ô¤¤¤Þ¤¹:
<P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
ALL: 194.82.103.0/255.255.255.0: ALLOW
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>¤³¤Î¤è¤¦¤Ê¤³¤È¤¬µ¯¤³¤ë¤Î¤Ï¡¤ÂçÉôʬ¤Î Linux ¥Ç¥£¥¹¥È¥ê¥Ó¥å¡¼¥·¥ç¥ó¤Ï
NFS ´Ø·¸¥Ç¡¼¥â¥ó¤Î°ìÉô¤¢¤ë¤¤¤ÏÁ´¤Æ¤Ë¤ª¤¤¤Æ TCP wrappers ¤ò»È¤Ã¤Æ¥¢¥¯¥»
¥¹À©¸æ¤ò¹Ô¤Ã¤Æ¤¤¤ë¤¿¤á¤Ç¤¹¡¥<EM>/etc/exports</EM> ¤Îʸˡ¤Ï¾¤Î UNIX ·Ï
OS ¤È°Û¤Ê¤ë¤³¤È¤¬Â¿¤¤¤Î¤ÇÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡¥³Æ Linux ¥Ç¥£¥¹¥È¥ê¥Ó¥å¡¼¥·¥ç
¥ó¤ËÆþ¤Ã¤Æ¤¤¤ë NFS ¥µ¡¼¥Ð¤Ï¡¤Â¾¤Î UNIX ¤ËÆþ¤Ã¤Æ¤¤¤ë NFS ¥µ¡¼¥Ð¤è¤ê¤â¹
ÈϰϤËÅϤ륪¥×¥·¥ç¥ó¤ò»ý¤Ã¤Æ¤¤¤ë¤³¤È¤¬¤è¤¯¤¢¤ê¤Þ¤¹¡¥
<P>
<P>KickStart ¤ÎÀßÄê¥Õ¥¡¥¤¥ë¤Ë root ¤Î¥Ñ¥¹¥ï¡¼¥É¤¬½ñ¤«¤ì¤Æ¤¤¤ë¾ì¹ç¤ä¡¤
µ¡Ì©¾ðÊó¤¬Æþ¤Ã¤Æ¤¤¤ë¥Ç¥£¥ì¥¯¥È¥ê¤ò NFS ¤Ç¥¨¥¯¥¹¥Ý¡¼¥È¤¹¤ë¾ì¹ç¤Ë¤Ï¡¤¤³
¤Î¾ðÊó¤ò¸«¤»¤ë¿Í´Ö¤ò¤Ç¤¤ë¤À¤±¾¯¤Ê¤¯¤¹¤Ù¤¤Ç¤¢¤ëÅÀ¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡¥
¤³¤ì¤Ï NFS ¤Î¥¨¥¯¥¹¥Ý¡¼¥Èµö²Ä¤Ç¤¤ë¤À¤±¹Ê¤ê¹þ¤à¤³¤È¤Ë¤è¤Ã¤Æ¹Ô¤¦¤³¤È¤¬
¤Ç¤¤Þ¤¹¡¥Î㤨¤Ð¡¤¥¨¥¯¥¹¥Ý¡¼¥È¤Î»ØÄê¤ò¥É¥á¥¤¥óÁ´ÂΤǤʤ¯ÆÃÄê¤Î¥Û¥¹¥È¤ä
¥µ¥Ö¥Í¥Ã¥È¤ËÂФ·¤Æ¹Ô¤¦Åù¤ÎÊýË¡¤Ç¤¹¡¥KickStart ¤ò»È¤Ã¤¿¥¤¥ó¥¹¥È¡¼¥ëÍѤË
¼«Í³¤Ë»È¤¨¤ë IP ¥¢¥É¥ì¥¹¤¬¤¢¤ì¤Ð¡¤ÌäÂê¤â¤Ê¤¯´Êñ¤Ëºî¶È¤Ç¤¤Þ¤¹¤¬¡¤¸å¤Ç
IP ¥¢¥É¥ì¥¹¤òÊѹ¹¤¹¤ë¤«¡¤¤¢¤ë¤¤¤Ï BOOTP/DCHP ¤ò»È¤Ã¤Æ IP ¥¢¥É¥ì¥¹¤ò»È
¤¦¤è¤¦¤Ë¥Þ¥·¥ó¤ÎÀßÄê¤òÊѹ¹¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¤Ç¤·¤ç¤¦¡¥
<P>
<P>¤Û¤È¤ó¤É¤Î NFS ¥µ¡¼¥Ð¤Ç¤Ï <EM>/etc/exports</EM> ¤òÊѹ¹¤·¤¿¤³¤È¤ò
<CODE>mountd</CODE> ¤È <CODE>nfsd</CODE> (°ìÉô¤Î UNIX ¤Ç¤Ï̾Á°¤ÎÀèƬ¤Ë
"<CODE>rpc.</CODE>" ¤¬ÉÕ¤¤¤Æ¤¤¤Þ¤¹)¤Ë¶µ¤¨¤Æ¤ä¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡¥Êѹ¹¤ÎÄÌÃÎ
¤ÏÉáÄÌ¡¤<CODE>SIGHUP</CODE> ¤òÁ÷¤ë¤³¤È¤Ë¤è¤Ã¤Æ¹Ô¤¤¤Þ¤¹¡¥Êѹ¹¤ÎÄÌÃΤò¹Ô¤¦¤¿
¤á¤Î <CODE>exportfs</CODE> ¤È¸Æ¤Ð¤ì¤ë¥×¥í¥°¥é¥à¤Þ¤¿¤Ï¥¹¥¯¥ê¥×¥È¤¬ÍÑ°Õ¤µ¤ì
¤Æ¤¤¤ë¤³¤È¤â¤¢¤ê¤Þ¤¹¡¥¼Â¹ÔÎã¤ò°Ê²¼¤Ë¼¨¤·¤Þ¤¹:
<P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
# exportfs -a
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>¤³¤Î¥Þ¥·¥ó¤¬µ¯Æ°¤·¤¿»þ¤Ë NFS ¤¬µ¯Æ°¡¤¼Â¹Ô¤µ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¡¤¤³¤Î¥Ç¥£¥ì
¥¯¥È¥ê¤Ï¼«Æ°Åª¤Ë¤Ï¥¨¥¯¥¹¥Ý¡¼¥È¤µ¤ì¤Þ¤»¤ó¡¥»î¤·¤ËºÆµ¯Æ°¤¹¤ë¤«¡¤root ¤Ë
¤Ê¤Ã¤Æ°Ê²¼¤Î¥×¥í¥°¥é¥à¤ò¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤:
<P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
# portmap
# rpc.nfsd
# rpc.mountd
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>Á°¤Ë½ñ¤¤¤¿¤è¤¦¤Ë¡¤°ìÉô¤Î¥·¥¹¥Æ¥à¤Ç¤Ï <CODE>rpc.</CODE> ¤È¤¤¤¦¥×¥ì¥Õ¥£¥Ã¥¯
¥¹¤Ï»È¤ï¤ì¤Þ¤»¤ó¡¥ºÇ¶á¤Î UNIX ¥Ç¥£¥¹¥È¥ê¥Ó¥å¡¼¥·¥ç¥ó¤Î¤Û¤È¤ó¤É¤Ç¤Ï¡¤¤³
¤ì¤é¤Î¥×¥í¥°¥é¥à¤Ï <EM>/usr/sbin</EM> ¥Ç¥£¥ì¥¯¥È¥ê¤Þ¤¿¤Ï
<EM>/usr/libexec</EM> ¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤¢¤ê¤Þ¤¹¡¥¤³¤ì¤é¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ï¥Ñ
¥¹¤Ë¤ÏÆþ¤Ã¤Æ¤¤¤Ê¤¤¤«¤â¤·¤ì¤Þ¤»¤ó(<CODE>su</CODE> ¤ò»È¤Ã¤Æ
<EM>root</EM> ¤Ë¤Ê¤Ã¤¿¾ì¹ç¤Ê¤É)¡¥<CODE>portmap</CODE> ¥×¥í¥°¥é¥à¤Ï
<CODE>rpcbind</CODE> ¤È¤¤¤¦Ì¾Á°¤Î¤³¤È¤â¤¢¤ê¤Þ¤¹¡¥Î㤨¤Ð¡¤Solaris ¤Î°ìÉô¤Î
¥Ð¡¼¥¸¥ç¥ó¤Î <CODE>nfsd</CODE> ¤Ï¼Â¹Ô¤¹¤ë¥µ¡¼¥Ð¤Î¿ô¤ò¥³¥Þ¥ó¥É¥é¥¤¥ó°ú¤¿ô
¤Ç»ØÄꤷ¤Ê¤±¤ì¤Ð¤Ê¤é¤º¡¤<CODE>biod</CODE> ¤È¸Æ¤Ð¤ì¤ëÊ̤Υǡ¼¥â¥ó¤òµ¯Æ°¤·¤Ê
¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¤³¤È¤â¤¢¤ê¤Þ¤¹¡¥°Ê¾å¤ÎÀâÌÀ¤ÇÂçÉôʬ(Á´¤Æ?)¤Î Linux ¥·¥¹¥Æ
¥à¤òËþ¤µ¤»¤é¤ì¤ë¤Ï¤º¤Ç¤¹¡¥
<P>
<P>CMU ÈǤΠBOOTP ¥µ¡¼¥Ð¤Ç DHCP ¤ÈưŪ¥¢¥É¥ì¥¹³ä¤êÅö¤Æ³ÈÄ¥(Á°½Ò)¤òÍѤ¤¤ë
¾ì¹ç¤Ë¤Ï¡¤<EM>/etc/bootptab</EM> ¥¨¥ó¥È¥ê(<EM>/etc/bootptab</EM> ¤Ï
BOOTP/DHCP ÀßÄê¥Õ¥¡¥¤¥ë¤ÎÄ̾ï¤Î°ÌÃÖ¤ËÃÖ¤«¤ì¤Þ¤¹)¤ÎÎã¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤Ê¤ë
¤Ç¤·¤ç¤¦:
<P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
.dynamic-1:ip=198.168.254.128:T254=0x30:T250="ds=198.168.254.2:
dn=swedish-chef.org:sm=255.255.255.0:gw=198.168.254.1:
dl=0xFFFFFFFF":
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>(¸«¤ä¤¹¤¯¤¹¤ë¤¿¤á¤Ë¹Ô¤òÀÞ¤êÊÖ¤·¤Æ¤¤¤Þ¤¹)
<P>
<P>¤³¤³¤Ë½ñ¤«¤ì¤Æ¤¤¤ë¤Î¤Ï¡¤¿·¤·¤¤¥Þ¥·¥ó¤ò¸«¤Ä¤±¤ëÅÙ¤Ë IP ¥¢¥É¥ì¥¹¤òưŪ
¤Ë³ä¤êÅö¤Æ¤ë¤³¤È¡¤³ä¤êÅö¤Æ¤ë¥¢¥É¥ì¥¹¤Ï <EM>198.168.254.128</EM> ¤«¤é»Ï
¤Þ¤ëϢ³¤·¤¿ 48 ¸Ä(16 ¿ÊÃÍ¤Ç <EM>30</EM>)¤Î¥¢¥É¥ì¥¹¤Ç¤¢¤ë¤³¤È¤Ç¤¹¡¥³Æ
¥¯¥é¥¤¥¢¥ó¥È¤Ë¤Ï <EM>T250</EM> ¤ÎÃͤ¬ÊÖ¤µ¤ì¤Þ¤¹¡¥¤³¤ÎÎã¤Ç¤Ï°Ê²¼¤Î¤è¤¦
¤ÊÀßÄ꤬¹Ô¤ï¤ì¤Þ¤¹:
<P>
<P>
<UL>
<LI> DNS ¥µ¡¼¥Ð <CODE>ds</CODE> ¤Ë <EM>198.168.254.2</EM> ¤òÀßÄê</LI>
<LI> ¥É¥á¥¤¥ó̾ <CODE>dn</CODE> ¤Ë <EM>swedish-chef.org</EM> ¤òÀßÄê</LI>
<LI> ¥µ¥Ö¥Í¥Ã¥È¥Þ¥¹¥¯ <CODE>sm</CODE> ¤Ë <EM>255.255.255.0</EM> ¤òÀßÄê</LI>
<LI> ¥Ç¥Õ¥©¥ë¥È¥²¡¼¥È¥¦¥§¥¤ <CODE>gw</CODE> ¤Ë <EM>198.168.254.1</EM> ¤òÀßÄê</LI>
<LI> ¥ê¡¼¥¹´ü´Ö <CODE>dl</CODE> (¥¢¥É¥ì¥¹¤¬Í¸ú¤Ê´ü´Ö)¤Ë¡Ö̵´ü¸Â¡×¤òÀßÄê</LI>
</UL>
<P>
<P>¸½ºß»È¤ï¤ì¤Æ¤¤¤ë CMU ÈǤΥµ¡¼¥Ð¤Ë¤Ï¡¤Æ°Åª¥¢¥É¥ì¥¹³ä¤êÅö¤Æ¤ò¥µ¥Ý¡¼¥È¤·
¤Æ¤¤¤Ê¤¤¥Ð¡¼¥¸¥ç¥ó¤â¤¿¤¯¤µ¤ó¤¢¤ë¤è¤¦¤Ç¤¹¡¥¤³¤Î¤è¤¦¤Ê¾ì¹ç¤Ë¤Ï¡¤¥¤¥ó¥¹¥È¡¼
¥ë¤¹¤ë¥Þ¥·¥ó¤Î¥Ï¡¼¥É¥¦¥§¥¢¥¢¥É¥ì¥¹(Ä̾ï¤Ï¥¤¡¼¥µ¥Í¥Ã¥È¤Î MAC ¥¢¥É¥ì¥¹)
¤ò <EM>/etc/bootptab</EM> ¤ËÎóµó¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¤Ç¤·¤ç¤¦¡¥¤³¤Î¥Õ¥¡¥¤
¥ëÃæ¤Ç¤Î¥¨¥ó¥È¥ê¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤Ê¤ë¤È»×¤¤¤Þ¤¹:
<P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
bork.swedish-chef.org:ip=198.168.254.128:ha=0000E8188E56:
ds=198.168.254.2:dn=swedish-chef.org:sm=255.255.255.0:
gw=198.168.254.1:dl=0xFFFFFFFF":
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>(¸«¤ä¤¹¤¯¤¹¤ë¤¿¤á¤ËÀÞ¤êÊÖ¤·¤Æ¤¤¤Þ¤¹)
<P>
<P>¥Ñ¥é¥á¡¼¥¿ <CODE>ha</CODE> ¤Ï¡¤¥¤¥ó¥¹¥È¡¼¥ëÀè¤Î¥Þ¥·¥ó¤Î¥Ï¡¼¥É¥¦¥§¥¢¥¢¥É¥ì
¥¹¤ËÂбþ¤¹¤ëÅÀ¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡¥
<P>
<P>
<HR>
<A HREF="KickStart-HOWTO-14.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="KickStart-HOWTO-12.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="KickStart-HOWTO.html#toc13">Ìܼ¡¤Ø</A>
</BODY>
</HTML>
|