2-2z An interface can be configured to acquire an IP address in multiple ways, but these ways aremutually exclusive. The latest configuration will overwrite the previous one.z After the DHCP client is enabled on an interface, no secondary IP address can be configured forthe interface.z If the IP address assigned by the DHCP server is on the same network segment as the IPaddresses of other interfaces on the device, the DHCP client will not request any IP address fromthe DHCP server, unless you delete the conflicting IP address and bring up the interface again byfirst executing the shutdown command and then the undo shutdown command or re-enable theDHCP client on the interface by executing the undo ip address dhcp-alloc command and thenthe ip address dhcp-alloc command.Displaying and Maintaining the DHCP ClientTo do… Use the command… RemarksDisplay specifiedconfiguration informationdisplay dhcp client [ verbose ] [ interfaceinterface-type interface-number ] Available in any viewDHCP Client Configuration ExampleNetwork requirementsOn a LAN, Switch A contacts the DHCP server via VLAN-interface 1 to obtain an IP address.Figure 2-1 Network diagram for DHCP client configuration exampleDHCP serverGateway AWINS server10.1.1.4/25ClientSwitch AClientDNS server10.1.1.2/25Vlan-int110.1.1.1/25Vlan-int110.1.1.126/25Configuration procedureThe following is the configuration on Switch A shown in Figure 2-1.# Enable the DHCP client on VLAN-interface 1. system-view[SwitchA] interface vlan-interface 1[SwitchA-Vlan-interface1] ip address dhcp-alloc