BRAS DHCP CLI [Документация VAS Experts]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:dpi:bras_bng:cli:dhcp [2024/09/26 15:29] – external edit 127.0.0.1en:dpi:bras_bng:cli:dhcp [2025/07/31 08:54] (current) – [dhcp reauth] elena.krasnobryzh
Line 4: Line 4:
 View and management of the internal DHCP-sessions fastdpi BRAS database.  View and management of the internal DHCP-sessions fastdpi BRAS database. 
  
-This is a fastdpi command, so you have to specify the fastdpi address in the -r argument of the utility.+This is a fastDPI command, so you have to specify the fastDPI address in the ''-r'' argument of the utility.
  
-==== DHCP show all ==== +<note tip>''subs_id'' can be used as an identifier in all CLI commands.</note> 
-Output of the complete database of DHCP-sessions fastdpi:+ 
 +==== dhcp show all ==== 
 +Output of the complete database of DHCP-sessions fastDPI:
 <code> <code>
 fdpi_cli -r <address> dhcp show all fdpi_cli -r <address> dhcp show all
 </code> </code>
  
-==== DHCP show ====+==== dhcp show ====
 Output of sessions by specified keys: Output of sessions by specified keys:
 <code> <code>
Line 18: Line 20:
 </code> </code>
 You should set one of the keys: You should set one of the keys:
-  * ip=X subscriber's IP-address +  * ''ip=X'' — subscriber's IP-address 
-  * mac=X subscriber's MAC-address +  * ''mac=X'' — subscriber's MAC-address 
-  * login-X output of all DHCP-sessions by the specified login+  * ''login-X'' — output of all DHCP-sessions by the specified login
 Examples: Examples:
 <code> <code>
Line 28: Line 30:
 </code> </code>
  
-==== DHCP show stat ====+==== dhcp show stat ====
 Output of current statistics on DHCP-sessions: Output of current statistics on DHCP-sessions:
 <code> <code>
Line 34: Line 36:
 </code> </code>
  
-==== DHCP reauth ====+==== dhcp reauth ====
 <code> <code>
 fdpi_cli -r <address> dhcp reauth [ mac=X | ip=X ] fdpi_cli -r <address> dhcp reauth [ mac=X | ip=X ]
Line 40: Line 42:
 Subscriber re-authorization with a specified key. Subscriber re-authorization with a specified key.
  
-To reduce the load on the Radius-server, BNG/BRAS caches the DHCP data from the Radius for the address lease duration, and responds to the DHCP Request of the subscriber. Sometimes it is required to indicate to DPI that the next subscriber's request should be sent to Radius without waiting for the lease time to expire. This is what the ''dhcp reauth'' command is for.+To reduce the load on the RADIUS-server, BNG/BRAS caches the DHCP data from the RADIUS for the address lease duration, and responds to the DHCP Request of the subscriber. Sometimes it is required to indicate to DPI that the next subscriber's request should be sent to RADIUS without waiting for the lease time to expire. This is what the ''dhcp reauth'' command is for.
  
 You should set one of the keys: You should set one of the keys:
-  * ip=X subscriber's IP-address +  * ''ip=X'' — subscriber's IP-address 
-  * mac=X subscriber's MAC-address+  * ''mac=X'' — subscriber's MAC-address
 Examples: Examples:
 <code> <code>
Line 51: Line 53:
 </code> </code>
  
 +==== dhcp disconnect ====
 +CLI-analog of CoA Disconnect. The discount execution mode is set by the option ''bras_dhcp_disconnect''.
 +
 +Discount of all DHCP sessions:
 +<code>fdpi_cli -r <address> dhcp disconnect all</code>
 +
 +Discount of the specified session:
 +<code>fdpi_cli -r <address> dhcp disconnect [ mac=X | ip=X ]</code>