Dhcp User Class Whitelist Configuration Example - HPE FlexNetwork HSR6800 Configuration Manual

Comware 7 layer 3, ip services
Hide thumbs Also See for FlexNetwork HSR6800:
Table of Contents

Advertisement

DHCP user class whitelist configuration example

Network requirements
As shown in
IP addresses to clients whose hardware addresses are six bytes long and begin with aabb-aabb.
Figure 24 Network diagram
Configuration procedure
1.
Specify IP addresses for the interfaces on the DHCP server. (Details not shown.)
2.
Configure DHCP:
# Enable DHCP.
<RouterB> system-view
[RouterB] dhcp enable
# Enable DHCP server on interface GigabitEthernet 2/1/1.
[RouterB] interface gigabitethernet 2/1/1
[RouterB-GigabitEthernet2/1/1] dhcp select server
[RouterB-GigabitEthernet2/1/1] quit
# Create DHCP user class ss and configure a match rule to match DHCP requests in which the
hardware address is six bytes long and begins with aabb-aabb.
[RouterB] dhcp class ss
[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 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
10.1.1.2
Figure
24, configure the DHCP user class whitelist to allow the DHCP server to assign
Client identifier/
Hardware address
aabb-aabb-ab01
Lease expiration
Jan 14 22:25:03 2015
58
Type
Auto(C)

Advertisement

Table of Contents
loading

Table of Contents