
Create a global address pool, configure the egress gateway and lease (the default
lease, one day, is used, so no command is executed), and allocate fixed IP address
10.10.10.254 to the printer with MAC address a-b-c.
1
<CORE>
system-view
[CORE]
dhcp enable
[CORE]
ip pool 10
[CORE-ip-pool-10]
network 10.10.10.0 mask 24
//Specify the address pool
range that is used to allocate IP addresses to users in department A.
[CORE-ip-pool-10]
gateway-list 10.10.10.1
//Configure the gateway
address for users in department A.
[CORE-ip-pool-10]
static-bind ip-address 10.10.10.254 mac-address a-b-c
//Allocate fixed IP address to the printer.
[CORE-ip-pool-10]
quit
Configure the global address pool to allocate IP addresses to user devices in
department A.
2
[CORE]
interface vlanif 10
[CORE-Vlanif10]
dhcp select global
//Configure the global address pool
to allocate IP addresses to users in department A.
[CORE-Vlanif10]
quit
14
Configure the DHCP server on CORE to allocate IP addresses to user devices in
department A (VLAN 10) and department B (VLAN 20).
Department A is used in the example below.
In this section, a global address pool is configured. You can also
configure an interface-based address pool. For details on this process,
see the corresponding
Configuration Guide - IP Service
based on the
version of the device.
Configuring DHCP