Error:Only idle or expired IP address can be disabled.

华为数通设备,在配置DHCP排除地址时可能会出现以下情况

Error:Only idle or expired IP address can be disabled.

这是因为地址已经被分配出去,所以现在无法进行排除

解决方法

1.先进入接口关闭DHCP

[CE2-GigabitEthernet0/0/1]undo dhcp  select global

2.查看DHCP地址分配情况,可以看到249地址已经被使用

dis ip pool name vlan51 used  
  Pool-name      : vlan51
  Pool-No        : 0
  Lease          : 2 Days 0 Hours 0 Minutes
  Domain-name    : -
  DNS-server0    : -               
  NBNS-server0   : -               
  Netbios-type   : -               
  Position       : Local           Status           : Unlocked
  Gateway-0      : 192.168.51.254  
  Mask           : 255.255.255.0
  VPN instance   : --
 -----------------------------------------------------------------------------
         Start           End     Total  Used  Idle(Expired)  Conflict  Disable
 -----------------------------------------------------------------------------
    192.168.51.1  192.168.51.254   253     1        248(0)         0        4
 -----------------------------------------------------------------------------

  Network section : 
  --------------------------------------------------------------------------
  Index              IP               MAC      Lease   Status  
  --------------------------------------------------------------------------
    248  192.168.51.249    5489-98ca-094e        702   Used       
  --------------------------------------------------------------------------

3.按ctrl+z,释放已经分配了的地址

reset ip pool name vlan51 all

4.再次排除,就可以排除成功,记得重新在接口下使能DHCP

你可能感兴趣的:(网络)