华为交换IP POOL地址池使用情况查询

本文介绍了如何使用更精确的命令来查询和重置DHCP地址池。通过`disippooln<名称>`命令可以详细查看地址池使用情况,而`resetippooln<名称><IP>`则能针对性地重置特定IP。了解这些细节操作有助于更好地管理和维护网络地址资源。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

才疏学浅,之前查询地址池时候总是使用dis ip pool命令,查询范围太大

 重置时候总是使用reset ip pool n xxx a来重置,把名字为xxx的地址池整个都就重置

今天才知道原来可以非常细的查询及重置

比如要查询name为1081的地址池使用情况,只用使用dis ip pool n 1081 used即可

<XA-CORE-SW-01>dis ip pool n 1081 used 
  Pool-name        : 1081
  Pool-No          : 3
  Lease            : 1 Days 0 Hours 0 Minutes
  Domain-name      : -
  DNS-server0      : 192.168.100.1   
  DNS-server1      : 114.114.114.114 
  NBNS-server0     : -               
  Netbios-type     : -               
  Position         : Local           
  Status           : Unlocked
  Gateway-0        : 10.180.108.1    
  Network          : 10.180.108.0
  Mask             : 255.255.255.192
  VPN instance     : --
  Logging          : Disable
  Conflicted address recycle interval: -
  Address Statistic: Total       :61        Used        :13         
                     Idle        :48        Expired     :3          
                     Conflict    :0         Disabled    :0      

 -------------------------------------------------------------------------------
  Network section 
         Start           End       Total    Used Idle(Expired) Conflict Disabled
 -------------------------------------------------------------------------------
    10.180.108.1   10.180.108.62      61      13         48(3)       0     0
 -------------------------------------------------------------------------------
 Client-ID format as follows:             
   DHCP  : mac-address                 PPPoE   : mac-address             
   IPSec : user-id/portnumber/vrf      PPP     : interface index             
   L2TP  : cpu-slot/session-id         SSL-VPN : user-id/session-id
 -------------------------------------------------------------------------------
  Index              IP             Client-ID    Type       Left   Status     
 -------------------------------------------------------------------------------
      5    10.180.108.       c454-44ab-    DHCP          -   Static-bind used
      6    10.180.108.       2004-0fed    DHCP          -   Static-bind
      7    10.180.108       2004-0fed    DHCP          -   Static-bind
      9   10.180.108        c454-4429-    DHCP          -   Static-bind used
     15   10.180.108.1       0017-c803-    DHCP          -   Static-bind used
     21   10.180.108.2      94c6-9154-1    DHCP          -   Static-bind
     23   10.180.108.        54ab-3a04-f    DHCP          -   Static-bind
     30   10.180.108.       d037-45b8-    DHCP          -   Static-bind used
     33   10.180.108.3       80fa-5b95-    DHCP          -   Static-bind used
     38   10.180.108.        b4a9-fce1-ce    DHCP      68601   Used       
     43   10.180.108.        cc81-da03-    DHCP      74750   Used       
     53   10.180.108.        a0ce-c8ca-   DHCP      71435   Used       
     54   10.180.108.        d45d-df01-1    DHCP          -   Static-bind used
 -------------------------------------------------------------------------------
为了安全,删除了IP地址及mac地址的一部分

如果要重置某个IP只需要使用reset ip pool n name xxx.xxx.xxx.xxx即可


<XA-CORE-SW-01>reset ip pool n 1081 10.180.108.6
Warning: If the IP addresses that are being used are reclaimed, may influence normal user in the network. Are you sure to continue?[Y/N]:

重置地址池中冲突IP,原来是直接全部重置reset ip pool n xxx a

现在可以reset ip pool n xxx conflict

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

刘林锋blog

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值