This configuration allows you to determine the scope of IP addresses that a DHCP server can allocate.
system-view
interface interface-type interface-number[.subinterface-number ]
Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731S-H, S5731-S, S5731S-S, S6720-HI, S5732-H, S6730-H, S6730S-H, S6730-S, S6730S-S, S6720-EI, and S6720S-EI support sub-interfaces.
The interface is switched to Layer 3 mode.
By default, an Ethernet interface works in Layer 2 mode.
Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support switching between Layer 2 and Layer 3 modes.
dhcp server ip-range start-ip-address end-ip-address
dhcp server mask { mask | mask-length }
system-view
ip pool ip-pool-name
section section-id start-address [ end-address ]
An IP address pool can contain one or more IP address segments that cannot overlap with each other.
Note the following points when specifying IP address segment of the global address pool: