56
Table 3 Assignment scheme
DHCP clients IP address Lease Other configuration parameters
Clients connected to
VLAN-interface 10
IP addresses on
subnet 10.1.1.0/25
10 days
and 12
hours
• Gateway: 10.1.1.126/25
• DNS server: 10.1.1.2/25
• Domain name: aabbcc.com
• WINS server: 10.1.1.4/25
Clients connected to
VLAN-interface 20
IP addresses on
subnet 10.1.1.128/25
Five days
• Gateway: 10.1.1.254/25
• DNS server: 10.1.1.2/25
• Domain name: aabbcc.com
Figure 18 Network diagram
Procedure
1. Specify IP addresses for the VLAN interfaces. (Details not shown.)
2. Configure the DHCP server:
# Exclude the DNS server address, WINS server address, and gateway addresses from
dynamic allocation.
<SwitchA> system-view
[SwitchA] dhcp server forbidden-ip 10.1.1.2
[SwitchA] dhcp server forbidden-ip 10.1.1.4
[SwitchA] dhcp server forbidden-ip 10.1.1.126
[SwitchA] 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.
[SwitchA] dhcp server ip-pool 1
[SwitchA-dhcp-pool-1] network 10.1.1.0 mask 255.255.255.128
[SwitchA-dhcp-pool-1] expired day 10 hour 12
[SwitchA-dhcp-pool-1] domain-name aabbcc.com
[SwitchA-dhcp-pool-1] dns-list 10.1.1.2
[SwitchA-dhcp-pool-1] gateway-list 10.1.1.126
[SwitchA-dhcp-pool-1] nbns-list 10.1.1.4
[SwitchA-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.
[SwitchA] dhcp server ip-pool 2
[SwitchA-dhcp-pool-2] network 10.1.1.128 mask 255.255.255.128