![H3C SR8800-F Скачать руководство пользователя страница 142](http://html2.mh-extra.com/html/h3c/sr8800-f/sr8800-f_configuration-manual_4025863142.webp)
126
[RouterB-dhcp-class-ss] if-match rule 1 hardware-address aabb-aabb-0000 mask
ffff-ffff-0000
[RouterB-dhcp-class-ss] quit
# Create DHCP address pool
aa
.
[RouterB] dhcp server ip-pool aa
# Specify the subnet for dynamic allocation.
[RouterB-dhcp-pool-aa] network 10.1.1.0 mask 255.255.255.0
# Enable the DHCP user class whitelist.
[RouterB-dhcp-pool-aa] verify class
# Add DHCP user class
ss
to the DHCP user class whitelist.
[RouterB-dhcp-pool-aa] valid class ss
[RouterB-dhcp-pool-aa] quit
Verifying the configuration
# Verify that clients matching the DHCP user class can obtain IP addresses on subnet 10.1.1.0/24
from the DHCP server. (Details not shown.)
# On the DHCP server, display the IP addresses assigned to the clients.
[RouterB] display dhcp server ip-in-use
IP address Client identifier/ Lease expiration Type
Hardware address
10.1.1.2 aabb-aabb-ab01 Jan 14 22:25:03 2015 Auto(C)
Example: Configuring primary and secondary subnets
Network configuration
As shown in
, the DHCP server (Router A) assigns IP addresses to DHCP clients in the
LAN.
Configure two subnets in the address pool on the DHCP server: 10.1.1.0/24 as the primary subnet
and 10.1.2.0/24 as the secondary subnet. The DHCP server selects an IP address from the
secondary subnet when the primary subnet has no assignable addresses.
Router A assigns the following parameters:
•
The default gateway 10.1.1.254/24 to clients on subnet 10.1.1.0/24.
•
The default gateway 10.1.2.254/24 to clients on subnet 10.1.2.0/24.
Figure 36 Network diagram
...
Gateway
DHCP client
DHCP client
DHCP client
Router A
DHCP server
GE1/0/1
10.1.1.1/24
10.1.2.1/24 sub