本文共 1006 字,大约阅读时间需要 3 分钟。
基于全局的DHCP配置如下
• 地址池:192.168.10.0/24• 网 关:192.168.10.254• D N S:222.222.222.222• 租 约:2天信息[Huawei]inte gi0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 192.168.10.254 255.255.255.0[Huawei]dhcp en[Huawei]dhcp enable 开启dhcp[Huawei]ip pool 10 创建地址池命名10[Huawei-ip-pool-10]network 192.168.10.0 mask 255.255.255.0 配置全局地址池可动态分配的IP地址范围 [Huawei-ip-pool-10]gateway-list 192.168.10.254 配置网关[Huawei-ip-pool-10]dns-list 222.222.222.222[Huawei-ip-pool-10]lease day 2 租期为2天[Huawei-ip-pool-10]excluded-ip-address 192.168.10.250 192.168.10.253 配置地址池中不分配给客户端使用的IP地址基于接口的DHCP配置如下
• 地址池:192.168.10.0/24• 网 关:192.168.10.254• D N S:222.222.222.222• 租 约:2天信息[Huawei]inter gi0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 192.168.10.254 255.255.255.0
[Huawei]dhcp enable 开启DHCP功能
[Huawei]inter gi0/0/0
[Huawei-GigabitEthernet0/0/0]dhcp select interface dhcp选择给予接口
[Huawei-GigabitEthernet0/0/0]dhcp server dns-list 222.222.222.222[Huawei-GigabitEthernet0/0/0]dhcp server lease day 2
转载于:https://blog.51cto.com/13566951/2068298