BRAS DHCP CLI

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.

subs_id can be used as an identifier in all CLI commands.

dhcp show all

Output of the complete database of DHCP-sessions fastDPI:

fdpi_cli -r <address> dhcp show all

dhcp show

Output of sessions by specified keys:

fdpi_cli -r <address> dhcp show [ip=X | mac=X | login=X]

You should set one of the keys:

ip=X - subscriber's IP-address

mac=X - subscriber's MAC-address

login-X - output of all DHCP-sessions by the specified login

Examples:

fdpi_cli -r 10.10.0.52 dhcp show ip=192.168.52.36
fdpi_cli -r 10.10.0.52 dhcp show mac=01:02:03:05:06:07
fdpi_cli -r 10.10.0.52 dhcp show login=john_smith

dhcp show stat

Output of current statistics on DHCP-sessions:

fdpi_cli -r <address> dhcp show stat

dhcp reauth

fdpi_cli -r <address> dhcp reauth [ mac=X | ip=X ]

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.

You should set one of the keys:

ip=X - subscriber's IP-address

mac=X - subscriber's MAC-address

Examples:

fdpi_cli -r 10.10.0.50 dhcp reauth ip=192.168.52.36
fdpi_cli -r 10.10.0.50 dhcp reauth mac=01:02:03:05:06:07

dhcp disconnect

CLI-analog of CoA Disconnect. The discount execution mode is set by the option bras_dhcp_disconnect.

Discount of all DHCP sessions:

fdpi_cli -r <address> dhcp disconnect all

Discount of the specified session:

fdpi_cli -r <address> dhcp disconnect [ mac=X | ip=X ]