スーパーユーザーとしてシステムにログインするか、スーパーユーザーになって、次のように入力します。
# /usr/sbin/dhcpconfig |
テキスト形式の DHCP 設定メニューが表示されます。
1 を入力して Return キーを押し、「Configure DHCP Service」を選択します。
次のプロンプトに対して表示されているように入力して、BOOTP 互換オプションをスキップします。
何も入力しない場合は、Return キーを押すとデフォルトの設定になります。
Would you like to stop the DHCP service? (recommended) ([Y]/N) 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]: |
プロンプトに対して次のように回答して、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) |
次のプロンプトに対して表示されているように回答して、アドレス作成のプロンプトに進みます。
### Initialize dhcptab table ### The dhcptab table already exists. Do you want to merge initialization data with the existing table? (Y/[N]): ### Select Networks For BOOTP/DHCP Support ### Enable DHCP/BOOTP support of networks you select? ([Y]/N): |
ローカルネットワーク上に BOOTP アドレスを作成する場合は、次の手順に進みます。
リモートネットワーク上に BOOTP アドレスを作成する場合は、手順 7 に進みます。
次のプロンプトに対して表示されているように回答して、ローカルネットワーク上に BOOTP アドレスを作成します。
この手順が、ネットワーク 172.21.0.0 に 4 つのアドレスを追加する例であることに注意してください。実際の手順では各ネットワークに合う回答に置き換える必要があります。
### Configure Local Networks ### Configure BOOTP/DHCP on local LAN network: 172.21.0.0? ([Y]/N): Do you want hostnames generated and inserted in the nisplus hosts table? (Y/[N]): Enter starting IP address [172.21.0.0]: 172.21.0.15 Enter the number of clients you want to add (x < 65535): 4 BOOTP compatibility with automatic allocation is enabled. Do you want any of your 4 addresses to be BOOTP specific? ([Y]/N): How many (x <= 4): 4 The dhcp network table: 172.21.0.0 already exists. Do you want to add entries to it? ([Y]/N): dhcptab macro "172.21.0.0" already exists. Do you want to merge initialization data with the existing macro? ([Y]/N):N Disable (ping) verification of 172.21.0.0 address(es)? (Y/[N]): / 75% Complete. Configured 4 entries for network 172.21.0.0. |
リモートネットワーク上に BOOTP アドレスを作成する場合、プロンプトに対して次のように回答します。
この手順が、クライアントが LAN 接続経由でアクセスするネットワーク 172.23.0.0 に 4 つのアドレスを追加する例であることに注意してください。実際の手順では、ネットワークに合った回答に置き換える必要があります。
### Configure Remote Networks ### Would you like to configure BOOTP/DHCP service on remote networks? ([Y]/N): Enter Network Address of remote network, or <RETURN> if finished: 172.23.0.0 Do clients access this remote network via LAN or PPP connection? ([L]/P): Do you want hostnames generated and inserted in the nisplus hosts table? (Y/[N]): Enter Router (From client's perspective), or <RETURN> if finished. IP address: Optional: Enter Remote Network's MTU (e.g. ethernet == 1500): Enter starting IP address [172.23.0.0]: 172.23.0.10 Enter the number of clients you want to add (x < 65535): 4 BOOTP compatibility with automatic allocation is enabled. Do you want any of your 4 addresses to be BOOTP specific? ([Y]/N): How many (x <= 4): 4 The dhcp network table: 172.23.0.0 already exists. Do you want to add entries to it? ([Y]/N): dhcptab macro "172.23.0.0" already exists. Do you want to merge initialization data with the existing macro? ([Y]/N):N Disable (ping) verification of 172.23.0.0 address(es)? (Y/[N]): / 75% Complete. Configured 4 entries for network 172.23.0.0. Enter Network Address of remote network, or <RETURN> if finished: |
4 と入力して Return キーを押し、dhcpconfig を終了します。