Hi, everyone! Today I’m going to introduce the global address pool configuration.
Dhcp enable
/* Enable DHCP Settings */
Ip pool abc
/**/;
[s1-ip-pool-abc]gateway-list 192.168.1.1
Configure the gateway.
[s1-ip-pool-abc]network 192.168.1.0 mask 255.255.255.0
Configure an address pool. (192.168.1.0 is a network segment, and 192.168.1.255 is a broadcast address.)
[s1-ip-pool-abc]excluded-ip-address 192.168.1.100 192.168.1.254
The IP addresses that cannot be assigned are 192.168.1.100 and 192.168.1.254.
[s1-ip-pool-abc]lease day 2 hour 12 minute 0
Set the lease period to 2 days and 12 hours. (The default value is 1 day.)
Dns-list 114.114.114.114 8.8.8.8
Set the active DNS server to 114.114.114.114 8.8.8.8.
Int g 0/0/0
[s1-GigabitEthernet0/0/0]ip address 192.168.1.1 24
(Gateway)
[s1-GigabitEthernet0/0/0]dhcp select global
This command is used to enable the DHCP server that uses the global address pool on an interface.
Dis ip pool name abc
To query the information about the address pool abc, run the following command:
Dis ip pool name abc used
Query the usage of the abc address pool.
Note: Enable DHCP instead of manual write on the PC.
If you have any problems, please post them in our Community. We are happy to solve them for you!