FAQ-为什么路由器已经分配出去的ip地址无法排除掉

发布时间:  2014-12-27 浏览次数:  912 下载次数:  0
问题描述
ar2200路由器G0/0/0------交换机----用户pc
路由器配置如下:
dhcp enable
interface GigabitEthernet0/0/0
ip address 192.168.1.1 255.255.255.0
dhcp select interface
查看该接口地址池已经分配了一个ip地址出去:
<Huawei>disp ip pool interface GigabitEthernet0/0/0 used
  Pool-name      : GigabitEthernet0/0/0
  Pool-No        : 0
  Lease          : 1 Days 0 Hours 0 Minutes
  Domain-name    : -
  DNS-server0    : -              
  NBNS-server0   : -              
  Netbios-type   : -              
  Position       : Interface       Status           : Unlocked
  Gateway-0      : 192.168.1.1    
  Mask           : 255.255.255.0
  VPN instance   : --
-----------------------------------------------------------------------------
         Start           End     Total  Used  Idle(Expired)  Conflict  Disable
-----------------------------------------------------------------------------
     192.168.1.1   192.168.1.254   253     1        252(0)         0        0
-----------------------------------------------------------------------------

  Network section :
  --------------------------------------------------------------------------
  Index              IP               MAC      Lease   Status 
  --------------------------------------------------------------------------
    253   192.168.1.254    5489-9889-022f         26   Used   

这个时候配置排除地址报错:
[Huawei-GigabitEthernet0/0/0]dhcp server excluded-ip-address 192.168.1.254
Error:Only idle or expired IP address can be disabled.
无法排除已经分配出去的ip地址
解决方案
解决方法:
1:先断G0/0/0口连接交换机的网线(防止释放dhcp地址池中已分配的地址以后pc重新申请新的ip地址)
2:释放dhcp地址池中已经分配的地址
<Huawei>reset ip pool interface GigabitEthernet0/0/0 all
Warning: If the IP addresses that are being used are reclaimed, may influence nor
mal user in the network. Are you sure to continue?[Y/N]:y
3:进入接口排除地址
[Huawei]interface g0/0/0
[Huawei-GigabitEthernet0/0/0]dhcp server excluded-ip-address 192.168.1.254
排除成功

END