4-2To do… Use the command… RemarksConfigure the VLANinterface to obtain IPaddress through DHCP orBOOTPip address { bootp-alloc |dhcp-alloc }RequiredBy default, no IP address isconfigured for the VLANinterface.Currently, the device operating as a DHCP client can use an IP address for no more than 24 days; thatis, it can obtain a lease with 24 days at most even if the DHCP server assigns a lease with more than 24days.DHCP Client Configuration ExampleNetwork requirementsAs shown in Figure 4-1, using DHCP, VLAN-interface 1 of Switch A is connected to the LAN to obtain anIP address from the DHCP server.Figure 4-1 A DHCP network (Switch A serving as a DHCP client)WINS serverDHCP ClientDNS serverVlan-interface1Switch ADHCP ClientDHCP ServerConfiguration procedureThe following describes only the configuration on Switch A serving as a DHCP client.# Configure VLAN-interface 1 to dynamically obtain an IP address by using DHCP. system-view[SwitchA] interface vlan-interface 1[SwitchA-Vlan-interface1] ip address dhcp-alloc