Print

CR16010H-F 刪除靜態會話報錯

2025-02-27 發表

問題描述

設備CR16K做BRAS,原本在808接口上配置了靜態會話:

interface Route-Aggregation1.808

 ip subscriber session static ip 172.X.X.X 172.Y.Y.Y

 

使用一段時間後需要做變更,在刪除靜態會話時有報錯:

undo ip subscriber session static ip 172.X.X.X 172.Y.Y.Y

Operation failed. Cannot delete or modify static session configuration because online static users exist.

過程分析

需要先刪除靜態會話表項才能刪除此命令。

舊版本刪除的命令為reset ip subscriber session

現場設備版本為8530Pxx的,新版本沒有這條命令,可以使用cut access-user刪除用戶會話:

cut access-user ?

  auth-type          Specify a user by authentication type

  domain             Specify users by ISP domain

  interface          Specify users by interface

  ip-address         Specify a user by IPv4 address

  ip-pool            Specify users by an IP pool

  ip-type            Specify users by IP type

  ipv6-address       Specify a user by IPv6 address

  ipv6-pool          Specify users by an IPv6 pool

  ipv6-prefix        Specify users by IPv6 address prefix

  mac-address        Specify a user by MAC address

  slot               Specify the slot number

  user-address-type  Specify users by address type

  user-id            Specify a user by user ID

  user-profile       Specify users by user profile

  username           Specify a user by username

  vpn-instance       Specify a VPN instance

  vxlan              Specify users by a range of VXLANs

  <cr>       

現場需要刪除多個IP,可以手動創建一個地址池,包括這些需要刪除會話的IP,然後使用cut access-user ip-pool XXX來批量刪除表項。

解決方法

使用cut access-user刪除相關表項後可以正常刪除靜態會話。