System Administration Guide, Volume 3

How to Configure Remote Networks (dhcpconfig)

  1. Become superuser on the DHCP server system.

  2. Type the following command:


    # /usr/sbin/dhcpconfig
    

    The text-based DHCP Configuration menu is displayed.

  3. Type 1 and press Return to select Configure DHCP Service.

  4. Answer the following prompts as shown to skip to the remote network configuration options.


    Would you like to stop the DHCP service? (recommended) ([Y]/N)Y
    Would you like to specify nondefault daemon options (Y/[N]):N
    Do you want to merge initialization data with the existing table? (Y/[N]):Y
    Enable DHCP/BOOTP support of networks you select? ([Y]/N):Y
    Configure BOOTP/DHCP on local LAN network: 172.21.0.0? ([Y]/N):N
    
  5. Answer the following prompts as shown to configure a remote network.


    Would you like to configure BOOTP/DHCP service on remote networks? ([Y]/N):Y
    Enter Network Address of remote network, or <RETURN> if finished: 

    Type the IP address of the network you want to configure for DHCP. Remember that the network address uses 0 for the host portion of the IP address.


    Do clients access this remote network via LAN or PPP connection? ([L]/P): 

    Indicate whether the network is a local area network (LAN) or a point-to-point protocol network (PPP) by typing L or P.


    Do you want hostnames generated and inserted in the files hosts table? (Y/[N]):

    The server can create hostnames for each IP address and create entries in the /etc/inet/hosts file or NIS+ hosts table. See "Client Host Name Generation".


    Enter Router (From client's perspective), or <RETURN> if finished.
    IP address:

    Type the IP address of the router(s) the clients on this network should use. Note that you cannot specify that clients should use router discovery here.


    Optional: Enter Remote Network's MTU (e.g. ethernet == 1500):   

    If you know that the remote network uses a specific maximum transfer unit (MTU), type it here. Otherwise, just press Return to accept the default value.


    Enter starting IP address [172.21.0.0]   

    Type the first IP address in the range of addresses you want to place under DHCP management. The default value is the network address.


    Enter the number of clients you want to add (x < 65535):   

    Type the number of IP addresses you want to place under DHCP management. dhcpconfig uses this number and the starting IP address you entered previously to determine a block of IP addesses to place under DHCP control. The number you enter must be less than the value shown in the prompt, which is generated based on the netmask. In this example, the number must be less than 65535.


    dhcptab macro "172.21.0.0" already exists.
    Do you want to merge initialization data with the existing macro? ([Y]/N):   

    If you have already configured this network, this message is displayed. You should merge the data into the existing macro only if the information you provided applies to all clients on the network you are adding.


    Disable (ping) verification of 172.21.0.0 address(es)? (Y/[N]):   

    dhcpconfig pings the addresses you want to add to be sure they are not being used, and skips any addresses that are in use. If you type Y at this prompt, dhcpconfig does not ping the addresses.


    Network: 172.21.0.0 complete.
    Enter Network Address of remote network, or <RETURN>  if finished:
     

    If you want to configure another remote network, enter the network address and answer the prompts for the network. When you have no other remote networks to configure, press Return at this prompt.


    Would you like to restart the DHCP service? (recommended) ([Y]/N):   

    Type Y to restart the DHCP service.