[Huawei]dhcp enable //开启DHCP功能,思科默认已经开启
[Huawei-GigabitEthernet0/0/1]dhcp select interface //开启接口采用接口地址池的DHCP服务器功能
[Huawei-GigabitEthernet0/0/1]dhcp select global //使能接口采用全局地址池的DHCP服务器功能
Cisco(config)#ip dhcp pool pool1
[Huawei]ip pool a1 //创建全局地址池,进入全局地址池视图
Cisco(dhcp-config)#network 192.168.1.0 255.255.255.0
[Huawei-ip-pool-a1]network 10.1.1.0 mask 24 //配置全局地址池可动态分配的IP地址范围
Cisco(dhcp-config)#dns-server 114.114.114.144 8.8.8.8
[Huawei-ip-pool-a1]dns-list 8.8.8.8 114.114.114.114
Cisco(dhcp-config)#default-router 192.168.1.254
[Huawei-ip-pool-a1]gateway-list 10.1.1.20 //配置DHCP Client的网关地址
Cisco(config)#ip dhcp excluded-address 192.168.1.254
[Huawei-ip-pool-a1]excluded-ip-address 10.1.1.1 10.1.1.10 //配置地址池中不参与自动分配的IP地址
Cisco(config-if)#ip helper-address 192.168.2.1 //在中继设备上配置DHCP服务器地址
[Huawei-GigabitEthernet0/0/2]dhcp select relay //使能接口的DHCP中继功能
[Huawei-GigabitEthernet0/0/2]dhcp relay server-ip 10.1.1.100 //配置DHCP服务器的IP地址
Cisco#show ip dhcp binding //显示dhcp地址下发绑定情况
Cisco#show ip dhcp pool
[Huawei]display ip pool //可以查看租约相关信息
标签:思科,Cisco,ip,Huawei,华为,dhcp,DHCP,pool From: https://blog.51cto.com/u_13699905/5904096