Each DHCP address pool performs the address assignment according to the Option82 matching
information. We can divide this Option82 information into classes and specify the available network
segment range for these classes in the DHCP address pool. These classes are called CLASS. One
DHCP address pool can map to multiple CLASSes, and each CLASS can specify different network
segment range.
During the address assignment, firstly, ensure the assignable address pool through the network
segment where the client is, then according to the Option82 information further ensure the CLASS
and assign the IP address from the network segment range corresponding to the CLASS. If one
request packet matches multiple CLASSes in the address pool, perform the address assignment
according to the sequencing of configuring the CLASS in the address pool. If this CLASS’s assigned
addresses have been to the upper limit, then continue to assign the address from the next CLASS,
and so on. Each CLASS corresponds to one network segment range that must be from low
addresses to high addresses and the duplicated network ranges between multiple CLASSes are
allowed. If the CLASS corresponding to the address pool is specified and the network segment
corresponding to the CLASS is not configured, this CLASS’s default network segment range is same
as the range of address pool where the CLASS is.
The following example configures the address mypool0 to associate with class1.
Ruijie(config)# ip dhcp pool mypool0
Ruijie(dhcp-config)# class class1