现在我们利用华为S5700交换机配置一个DHCP服务器
拓扑图如下

 

操作步骤
  1. 全局启动DHCP服务。
    <Huawei>system-view
    Enter system view, return user view with Ctrl+Z.
    [Huawei]dhcp enable    
  2. 创建地址池并配置相关属性。 

    # 配置IP地址池10的属性(地址池范围、DNS地址、出口网关和地址池租期)。
    [Huawei]ip pool 10
    Info:It's successful to create an IP address pool.
    [Huawei-ip-pool-10]network 192.168.10.0 mask 255.255.255.0
    [Huawei-ip-pool-10]dns-list 202.102.224.68
    [Huawei-ip-pool-10]gateway-list 192.168.10.1
    [Huawei-ip-pool-10]lease day