HPE FlexNetwork MSR Series Comware 7 Layer 3 - Ip Services Configuration Manuals page 78

Table of Contents

Advertisement

# Enable the DHCP server on GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2.
[RouterA] interface gigabitethernet 1/0/1
[RouterA-GigabitEthernet1/0/1] dhcp select server
[RouterA-GigabitEthernet1/0/1] quit
[RouterA] interface gigabitethernet 1/0/2
[RouterA-GigabitEthernet1/0/2] dhcp select server
[RouterA-GigabitEthernet1/0/2] quit
# Exclude addresses of the DNS server, WINS server, and gateways from dynamic allocation.
[RouterA] dhcp server forbidden-ip 10.1.1.2
[RouterA] dhcp server forbidden-ip 10.1.1.4
[RouterA] dhcp server forbidden-ip 10.1.1.126
[RouterA] dhcp server forbidden-ip 10.1.1.254
# Configure DHCP address pool 1 to assign IP addresses and other configuration parameters
to clients on subnet 10.1.1.0/25.
[RouterA] dhcp server ip-pool 1
[RouterA-dhcp-pool-1] network 10.1.1.0 mask 255.255.255.128
[RouterA-dhcp-pool-1] expired day 10 hour 12
[RouterA-dhcp-pool-1] domain-name aabbcc.com
[RouterA-dhcp-pool-1] dns-list 10.1.1.2
[RouterA-dhcp-pool-1] gateway-list 10.1.1.126
[RouterA-dhcp-pool-1] nbns-list 10.1.1.4
[RouterA-dhcp-pool-1] quit
# Configure DHCP address pool 2 to assign IP addresses and other configuration parameters
to clients on subnet 10.1.1.128/25.
[RouterA] dhcp server ip-pool 2
[RouterA-dhcp-pool-2] network 10.1.1.128 mask 255.255.255.128
[RouterA-dhcp-pool-2] expired day 5
[RouterA-dhcp-pool-2] domain-name aabbcc.com
[RouterA-dhcp-pool-2] dns-list 10.1.1.2
[RouterA-dhcp-pool-2] gateway-list 10.1.1.254
[RouterA-dhcp-pool-2] quit
Verifying the configuration
# Verify that clients on subnets 10.1.1.0/25 and 10.1.1.128/25 can obtain correct IP addresses and
all other network parameters from Router A. (Details not shown.)
# On the DHCP server, display the IP addresses assigned to the clients.
[RouterA] display dhcp server ip-in-use
IP address
10.1.1.3
10.1.1.5
10.1.1.130
10.1.1.131
Client identifier/
Hardware address
0031-3865-392e-6262-
3363-2e30-3230-352d-
4745-302f-30
0031-fe65-4203-7e02-
3063-5b30-3230-4702-
620e-712f-5e
3030-3030-2e30-3030-
662e-3030-3033-2d45-
7568-6572-1e
3030-0020-fe02-3020-
Lease expiration
Jan 14 22:25:03 2015
Jan 14 22:25:03 2015
Jan 9 10:45:11 2015
Jan 9 10:45:11 2015
64
Type
Auto(C)
Auto(C)
Auto(C)
Auto(C)

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FlexNetwork MSR Series and is the answer not in the manual?

Table of Contents