Example: Configuring Primary And Secondary Subnets - H3C SR8800-F Configuration Manual

Comware 7 user access
Hide thumbs Also See for SR8800-F:
Table of Contents

Advertisement

[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
10.1.1.2

Example: Configuring primary and secondary subnets

Network configuration
As shown in
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
DHCP client
Client identifier/
Hardware address
aabb-aabb-ab01
Figure
36, the DHCP server (Router A) assigns IP addresses to DHCP clients in the
Router A
DHCP server
GE1/0/1
10.1.1.1/24
10.1.2.1/24 sub
...
DHCP client
DHCP client
Lease expiration
Jan 14 22:25:03 2015
Gateway
126
Type
Auto(C)

Advertisement

Table of Contents
loading

Table of Contents