才疏学浅,之前查询地址池时候总是使用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