< Home

(Optional) Configuring a Configuration File for a DHCP Client

Context

DHCP can be used to deliver configuration files to clients that require them for startup. You can save the configuration files on the DHCP server or specify the IP address of a dedicated file server. When a configuration file exists on a dedicated file server, the DHCP server needs to specify the IP address of the file server for clients. You can also specify an IP address for the file server by configuring user-defined options for clients.

If the startup configuration file is saved on a file server, the route between the DHCP client and file server must be reachable.

Procedure

  • Configure a configuration file based on an interface address pool.
    1. Enter the system view.

      system-view 

    2. Enter the interface view.

      interface interface-type interface-number

    3. Specify the name of the configuration file.

      dhcp server bootfile bootfile

      By default, the name is not configured.

    4. Specify the name of the server that hosts the configuration file.

      dhcp server sname sname

      By default, the name of the server is not configured.

    5. (Optional) Specify the IP address of the file server that hosts the configuration file.

      dhcp server next-server ip-address

      By default, the file server IP address is not configured.

  • Configure a configuration file based on a global address pool.

    1. Enter the system view.

      system-view
    2. Enter the global address pool view.

      ip pool ip-pool-name
    3. Specify the name of the configuration file.

      bootfile bootfile

      By default, the name is not configured.

    4. Specify the name of the server that hosts the configuration file.

      sname sname

      By default, the name of the server is not configured.

    5. Specify the IP address of the file server that hosts the configuration file.

      next-server ip-address 

      By default, the file server IP address is not configured.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >