Displaying and maintaining the DHCP client
Execute display command in any view.
Task
Display DHCP client information.
DHCP client configuration example
Network requirements
As shown in
an IP address, DNS server address, and static route information. The DHCP client IP address resides on
network 10.1.1.0/24. The DNS server address is 20.1.1.1. The next hop of the static route to network
20.1.1.0/24 is 10.1.1.2.
The DHCP server uses Option 121 to assign static route information to DHCP clients.
Option 121 format. The destination descriptor field contains the following parts: subnet mask length and
destination network address. In this example, the value of the destination descriptor field is 18 14 01 01.
It is a hexadecimal number indicating that the subnet mask length is 24 and the destination network
address is 20.1.1.0. The value of the next hop address field is 0A 01 01 02. It is a hexadecimal number
indicating that the next hop is 10.1.1.2.
Figure 24 Option 121 format
Figure 25 Network diagram
Configuration procedure
1.
Configure Switch A:
# Specify the IP address of VLAN-interface 2.
<SwitchA> system-view
Figure
25, on a LAN, Switch B contacts the DHCP server through VLAN-interface 2 to obtain
Command
display dhcp client [ verbose ] [ interface interface-type
interface-number ]
61
Figure 24
shows the