Verifying The Configuration; Configuration Files - H3C DHCP Quick Start Configuration Manual

Table of Contents

Advertisement

Verifying the configuration

# Check the IP addresses and other network settings of Host A, Host B, and Host C. Use the
display dhcp server ip-in-use command to view the IP addresses assigned by the DHCP
server.
[Switch] display dhcp server ip-in-use
IP address
192.168.5.1
192.168.6.2
192.168.7.3
The output shows that the DHCP server can assign IP addresses and other network settings to the
clients on subnets 192.168.5.0/24, 192.168.6.0/24, and 192.168.7.0/24 correctly.

Configuration files

Switch:
#
dhcp enable
dhcp server forbidden-ip 192.168.5.100
dhcp server forbidden-ip 192.168.6.100
dhcp server forbidden-ip 192.168.7.100
#
vlan 5 to 7
#
dhcp server ip-pool 5
gateway-list 192.168.5.254
network 192.168.5.0 mask 255.255.255.0
dns-list 192.168.5.100
#
dhcp server ip-pool 6
gateway-list 192.168.6.254
network 192.168.6.0 mask 255.255.255.0
dns-list 192.168.6.100
#
dhcp server ip-pool 7
gateway-list 192.168.7.254
network 192.168.7.0 mask 255.255.255.0
dns-list 192.168.7.100
#
interface Vlan-interface5
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
Lease expiration
Jan 14 22:25:03 2021
Jan 14 22:25:03 2021
Jan 9 10:45:11 2021
3
Type
Auto(C)
Auto(C)
Auto(C)

Advertisement

Table of Contents
loading

Table of Contents