Displaying and maintaining the dhcp client, Dhcp client configuration example, Network requirements – H3C Technologies H3C S12500 Series Switches User Manual
Page 85
71
Displaying and maintaining the DHCP client
Task Command
Remarks
Display DHCP client
information.
display dhcp client [ verbose ] [ interface
interface-type interface-number ] [ | { begin |
exclude | include } regular-expression ]
Available in any view.
DHCP client configuration example
Network requirements
As shown in
, Switch B contacts the DHCP server through VLAN-interface 2 to obtain the
following configuration information:
•
IP addresses of DHCP clients on network 10.1.1.0/24
•
DNS server address 20.1.1.1/24
•
ACS address 10.153.114.21/24
•
Static route destined for network 20.1.1.0/24 through next hop 10.1.1.2
The DHCP server uses Option 121 to assign static route information to DHCP clients.
shows the
format of Option 121. The destination descriptor field comprises two parts, subnet mask length and
destination network address. In this example, the value of the destination descriptor field takes 18 14 01
01, a hexadecimal number indicating that the subnet mask length is 24 and destination network address
is 20.1.1.0, and the value of the next hop address field takes 0A 01 01 02, a hexadecimal number
indicating that the next hop is 10.1.1.2.
Figure 33 Option 121 format
The DHCP server uses Option 43 to assign ACS information to the clients. The ACS can update
configuration files for the clients and reboot and monitor the clients. The format of Option 43 is shown
in
, and the format of ACS parameter suboption is shown in
.
This example uses the ACS address
(the hexadecimal value of the
corresponding ASCII code is 01266874 74703A2F 2F31302E 3135332E 3131342E 32313A39
30393020), and the default CPE authentication. The user name is bims (the hexadecimal value of the
corresponding ASCII code is 62696D73), the password is imcbims (the hexadecimal value of the
corresponding ASCII code is 696D63 62696D73). The hexadecimal value of the ASCII code for space
is 20.
The complete Option 43 representation for http:// 10.153.114.21:9090:9090 bims imcbims is:
option 43 hex 01246874 74703A2F 2F313932 2E313638 2E312E32 3A393039 30206269
6D732069 6D636269 6D73.