3Com 5500-SI Switch User Manual


 
DHCP Server Configuration Example 145
The DHCP settings of the 10.1.1.0/25 network segment are as follows:
Lease time: 10 days plus 12 hours
Domain name: aabbcc.com
DNS server: 10.1.1.2
NetBIOS server: none
Gateway: 10.1.1.126
The DHCP settings of the 10.1.1.128/25 network segment are as follows:
Lease time: 5 days
Domain name: aabbcc.com
DNS server: 10.1.1.2
NetBIOS server: 10.1.1.4
Gateway: 10.1.1.254
Network diagram
Figure 34 Network diagram for DHCP configuration
Configuration procedure
1 Enter system view.
<S5500> system-view
2 Enable DHCP.
[S5500] dhcp enable
3 Configure the IP addresses that are not dynamically assigned. (That is, the IP
addresses of the DNS server, NetBIOS server, and gateways.)
[S5500] dhcp server forbidden-ip 10.1.1.2
[S5500] dhcp server forbidden-ip 10.1.1.4
[S5500] dhcp server forbidden-ip 10.1.1.126
[S5500] dhcp server forbidden-ip 10.1.1.254
4 Configure DHCP address pool 1, including address range, domain name, DNS server
address, gateway address, and lease time.
[S5500] dhcp server ip-pool 1
[S5500-dhcp-pool-1] network 10.1.1.0 mask 255.255.255.128
[S5500-dhcp-pool-1] domain-name aabbcc.com
[S5500-dhcp-pool-1] dns-list 10.1.1.2
[S5500-dhcp-pool-1] gateway-list 10.1.1.126
[S5500-dhcp-pool-1] expired day 10 hour 12