Solaris のシステム管理 (第 3 巻)

登録された BOOTP クライアントのサポートを設定する方法 (コマンド行)

  1. スーパーユーザーとしてシステムにログインするか、スーパーユーザーになり、次のように入力します。


    # /usr/sbin/dhcpconfig
    

    テキスト形式の DHCP 設定メニューが表示されます。

  2. 1 を入力して Return キーを押し、「Configure DHCP Service」を選択します。

  3. 次のプロンプトに対して表示されているように回答し、BOOTP 互換オプションを省略します。

    何も入力しない場合は、Return キーを押すとデフォルトの設定になります。


    Would you like to stop the DHCP service? (recommended) ([Y]/N)Y
    Enter datastore (files or nisplus) [files]: 
    Enter absolute path to datastore directory [/var/dhcp]:
    Would you like to specify nondefault daemon options (Y/[N]):
    Would you like to specify nondefault server options (Y/[N]):Y
    How long (in seconds) should the DHCP server keep outstanding OFFERs? [10]:
    How often (in minutes) should the DHCP server rescan the dhcptab? [Never]:
  4. BOOTP プロンプトに対して次のように回答します。


    Do you want to enable BOOTP compatibility mode? (Y/[N]):Y
    Do you want the server to allocate IP addresses to new BOOTP clients? ([Y]/N):N
    

    N と入力すると、登録されていない BOOTP クライアントで IP アドレスを取得できなくなります。これは、DHCP Manager の「手動」オプションと類似しています。


    The dhcptab table already exists.
    Do you want to merge initialization data with the existing table? (Y/[N]):N
    Enable DHCP/BOOTP support of networks you select? ([Y]/N):N
    

    N と入力すると、DHCP サービスにネットワークを追加するためのプロンプトが表示されません。


    Would you like to restart the DHCP service? (recommended) ([Y]/N):Y
    
  5. 4 と入力して Return キーを押し、dhcpconfig を終了します。

  6. 次のどちらかのフォーマットを使用してコマンドを入力し、アドレスを変更または追加して特定の BOOTP クライアント用に予約します。

    1. BOOTP 用の既存アドレスを変更するには次のように入力します。


      # pntadm -M ip-address -i client-id -f BOOTP -e -1 -m macro-name network-ip-address
      

      たとえば、アドレス 172.21.20.33 を変更するには、Ethernet ハードウェアアドレスが 8:0:20:89:a1:d2 のクライアントにそのアドレスを割り当てて BOOTP フラグを設定し、次のように入力します。


      # pntadm -M 172.21.20.33 -i 0108002089A1D2 -f BOOTP
      
    2. 新しい BOOTP アドレスを追加するには、次のように入力します。


      # pntadm -A ip-address -i client-id -f BOOTP -m macro-name network-ip-address
      

      たとえば、アドレス 172.21.20.34 を追加するには、Ethernet ハードウェアアドレスが 8:0:20:89:a1:d2 のクライアントにそのアドレスを割り当てて BOOTP フラグを設定し、そのクライアントが blue2 マクロの内容を受け取るようにしてから、次のように入力します。


      pntadm -A 172.21.20.34 -i 0108002089A1D2 -f BOOTP -m blue2 172.21.0.0
      

    ネットワークの各 BOOTP クライアントに対して 1 つの BOOTP アドレスを予約する必要があります。