Address acquisition process – H3C Technologies H3C S12500 Series Switches User Manual
Page 198

186
Using DHCP to obtain an IP address and other configuration
information
Address acquisition process
As mentioned previously, a device sets the first up interface as the DHCP client during startup. The DHCP
client broadcasts a DHCP request, where the Option 55 field specifies the information that the client
wants to obtain from the DHCP server such as the configuration file name, domain name and IP address
of the TFTP server, and DNS server IP address.
After receiving the DHCP response from the DHCP server, the device obtains the IP address and resolves
the following fields in the DHCP response:
•
Option 67 or the file field—obtains the configuration file name. The device resolves Option 67 first.
If Option 67 contains the configuration file name, the device does not resolve the file field. If not, the
device resolves the file field.
•
Option 66—obtains the TFTP server domain name
•
Option 150—obtains the TFTP server IP address
•
Option 6—obtains the DNS server IP address.
If no response is received from the DHCP server, the device removes the temporary configuration and
starts up with factory defaults.
The temporary configuration contains two parts: the configuration made on the interface through which
automatic configuration is performed, and the ip host command in the host name file. The temporary
configuration is removed by executing the corresponding undo commands. For more information about
the ip host command, see Layer 3—IP Services Command Reference.
For more information about DHCP, see Layer 3—IP Services Configuration Guide.
Principles for selecting an address pool on the DHCP server
The DHCP server selects IP addresses and other network configuration parameters from an address pool
for clients. DHCP supports the following types of address pools:
•
Dynamic address pool—a dynamic address pool contains a range of IP addresses and other
parameters that the DHCP server dynamically assigns to clients.
•
Static address pool—a static address pool contains the binding of an IP address and a MAC
address (or a client ID). The DHCP server assigns the IP address of the binding and specific
configuration parameters to a requesting client whose MAC address or ID is contained in the
binding. In this way, the client can get a fixed IP address.
Select address pools by using one of the following methods:
•
If devices use the same configuration file, you can configure a dynamic address pool on the DHCP
server to assign IP addresses and the same configuration parameters (for example, configuration
file name) to the devices. In this case, the configuration file can only contain common configurations
of the devices, and the specific configurations of each device must be performed in other ways. For
example, the configuration file can enable Telnet and create a local user on devices so that the
administrator can Telnet to each device to perform specific configurations (for example, configure
the IP address of each interface).
•
If devices use different configuration files, you must configure static address pools to ensure that
each device can get a fixed IP address and a specific configuration file. With this method, the
administrator does not need to perform any other configuration for the devices.
- H3C S12500-X Series Switches H3C S9800 Series Switches H3C S9500E Series Switches H3C S5560 Series Switches H3C S5130 Series Switches H3C S5120 Series Switches H3C SR8800 H3C SR6600-X H3C SR6600 H3C MSR 5600 H3C MSR 50 H3C MSR 3600 H3C MSR 30 H3C MSR 2600 H3C MSR 20-2X[40] H3C MSR 20-1X H3C MSR 930 H3C MSR 900 H3C WX3000E Series Wireless Switches H3C WX5500E Series Access Controllers H3C WX3500E Series Access Controllers H3C WX2500E Series Access Controllers H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C WX3000 Series Unified Switches H3C LSWM1WCM10 Access Controller Module H3C LSUM3WCMD0 Access Controller Module H3C LSUM1WCME0 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module H3C WA3600 Series Access Points H3C WA2600 Series WLAN Access Points H3C SecPath F5020 H3C SecPath F5040 H3C VMSG VFW1000 H3C S10500 Series Switches