DHCP池配置

[Huawei]ip pool dhcp-pool-1
[Huawei-ip-pool-dhcp-pool-1]network 192.168.1.1 mask 255.255.255.0
[Huawei-ip-pool-dhcp-pool-1]gateway-list 192.168.1.1
[Huawei-ip-pool-dhcp-pool-1]dns-list 8.8.8.8 114.114.114.114
[Huawei-ip-pool-dhcp-pool-1]lease day 0 hour 2 minute 30
[Huawei-ip-pool-dhcp-pool-1]excluded-ip-address 192.168.1.2 192.168.1.99
[Huawei-ip-pool-dhcp-pool-1]option 43 sub-option 2 ip-address 192.168.5.1

释放正在使用的IP地址

<Huawei>reset ip pool name dhcp-pool-1 all

释放所有IP地址

<Huawei>reset ip pool name dhcp-pool-1 used

释放指定IP地址

<Huawei>reset ip pool name dhcp-pool-1 192.168.1.2

标签: none

评论已关闭