Verifying the configuration, Network requirements, Configuration procedure – H3C Technologies H3C S12500 Series Switches User Manual
Page 66
52
[SwitchA-dhcp-pool-0] quit
# Create DHCP address pool 1, configure a static binding, DNS server and gateway in it.
[SwitchA] dhcp server ip-pool 1
[SwitchA-dhcp-pool-1] static-bind ip-address 10.1.1.6 25
[SwitchA-dhcp-pool-1] static-bind mac-address 000f-e249-8050
[SwitchA-dhcp-pool-1] dns-list 10.1.1.2
[SwitchA-dhcp-pool-1] gateway-list 10.1.1.126
Verifying the configuration
After the preceding configuration is completed, Switch B can obtain IP address 10.1.1.5 and other
network parameters, and Switch C can obtain IP address 10.1.1.6 and other network parameters from
Switch A. You can use the display dhcp server ip-in-use command on the DHCP server to view the IP
addresses assigned to the clients.
Dynamic IP address assignment configuration example
Network requirements
As shown in
, the DHCP server (Switch A) assigns IP address to clients in subnet 10.1.1.0/24,
which is subnetted into 10.1.1.0/25 and 10.1.1.128/25. The IP addresses of VLAN-interfaces 1 and 2 on
Switch A are 10.1.1.1/25 and 10.1.1.129/25 respectively. In address pool 10.1.1.0/25, the address lease
duration is ten days and twelve hours, domain name suffix aabbcc.com, DNS server address
10.1.1.2/25, gateway 10.1.1.126/25, and WINS server 10.1.1.4/25. In address pool 10.1.1.128/25, the
address lease duration is 5 days, domain name suffix aabbcc.com, DNS server address 10.1.1.2/25,
and gateway address 10.1.1.254/25, and there is no WINS server address. The domain name and DNS
server address on subnets 10.1.1.0/25 and 10.1.1.128/25 are the same. Therefore, the domain name
suffix and DNS server address can be configured only for subnet 10.1.1.0/24. Subnet 10.1.1.128/25 can
inherit the configuration of subnet 10.1.1.0/24.
Figure 28 Network diagram
Configuration procedure
1.
Specify IP addresses for VLAN interfaces. (Details not shown.)
2.
Configure the DHCP server:
# Enable DHCP.
[SwitchA] dhcp enable