# Verify that Switch C can obtain IP address 10.1.1.6 and all other network parameters from Switch A.
(Details not shown.)
# On the DHCP server, display the IP addresses assigned to the clients.
[SwitchA] display dhcp server ip-in-use
IP address
10.1.1.5
10.1.1.6
Dynamic IP address assignment configuration example
Network requirements
As shown in
10.1.1.0/24, which is subnetted into 10.1.1.0/25 and 10.1.1.128/25.
Configure DHCP server on Switch A to implement the following assignment scheme.
Table 3 Assignment scheme
DHCP clients
Clients connected to
VLAN-interface 10
Clients connected to
VLAN-interface 20
Figure 21 Network diagram
10.1.1.126/25
Gateway A
DNS server
Configuration procedure
1.
Specify IP addresses for the VLAN interfaces. (Details not shown.)
2.
Configure the DHCP server:
# Enable DHCP.
<SwitchA> system-view
[SwitchA] dhcp enable
Client identifier/
Hardware address
0030-3030-662e-6532-
3030-2e30-3030-322d-
4574-6865-726e-6574
000f-e200-01c0
Figure
21, the DHCP server (Switch A) assigns IP addresses to clients on subnet
IP address
IP addresses on
subnet 10.1.1.0/25
IP addresses on
subnet 10.1.1.128/25
Client
WINS server
10.1.1.4/25
Vlan-int10
10.1.1.1/25
10.1.1.2/25
Vlan-int10
Switch B
Client
Lease expiration
Jan 21 14:27:27 2014
Unlimited
Lease
Other configuration parameters
•
10 days
•
and 12
•
hours
•
•
•
Five days
•
Client
Vlan-int20
10.1.1.129/25
Switch A
DHCP server
Client
58
Type
Static(C)
Static(C)
Gateway: 10.1.1.126/25
DNS server: 10.1.1.2/25
Domain name: aabbcc.com
WINS server: 10.1.1.4/25
Gateway: 10.1.1.254/25
DNS server: 10.1.1.2/25
Domain name: aabbcc.com
Client
10.1.1.254/25
Gateway B
Client