Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| en:dpi:bras_bng:cli:pppoe [2023/09/01 11:46] – elena.krasnobryzh | en:dpi:bras_bng:cli:pppoe [2024/09/26 15:29] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== pppoe ====== | + | ====== BRAS PPPoE CLI ====== |
| + | {{indexmenu_n> | ||
| + | |||
| + | BNG/BRAS PPPoE-sessions management | ||
| + | |||
| + | This is a fastdpi command, so you have to specify the fastdpi address in the -r argument of the utility. | ||
| + | |||
| + | ==== pppoe show all ==== | ||
| + | Output of all PPPoE-sessions | ||
| + | < | ||
| + | fdpi_cli -r < | ||
| + | # Synonym for the command: | ||
| + | fdpi_cli -r < | ||
| + | </ | ||
| + | |||
| + | ==== pppoe show session ==== | ||
| + | Output of a specific PPPoE-session by a specified key: | ||
| + | < | ||
| + | fdpi_cli -r < | ||
| + | </ | ||
| + | The key is specified by one of the parameters: | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | Examples: | ||
| + | < | ||
| + | fdpi_cli -r 192.168.0.1 pppoe show session ip=10.56.79.7 | ||
| + | fdpi_cli -r 192.168.0.1 pppoe show session ip=2001: | ||
| + | fdpi_cli -r 192.168.0.1 pppoe show session mac=00: | ||
| + | fdpi_cli -r 192.168.0.1 pppoe show session login=piter_smith | ||
| + | </ | ||
| + | |||
| + | ==== pppoe show stat ==== | ||
| + | Output of PPPoE-sessions internal statistics | ||
| + | < | ||
| + | fdpi_cli -r < | ||
| + | </ | ||
| + | |||
| + | ==== pppoe term ==== | ||
| + | Session termination. | ||
| + | < | ||
| + | fdpi_cli -r < | ||
| + | </ | ||
| + | The command '' | ||
| + | |||
| + | The command '' | ||
| + | |||
| + | The subscriber is specified by one of the parameters: | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | It should be noted that the MAC-address is the primary unique key of a PPP-session. All other keys are secondary and not unique, that is, when the session ends by IP or by login, it is possible to terminate several sessions. | ||
| + | |||
| + | Examples: | ||
| + | < | ||
| + | fdpi_cli -r 127.0.0.1 pppoe term mac=01: | ||
| + | fdpi_cli -r 127.0.0.1 pppoe term hard ip=10.0.0.50 | ||
| + | </ | ||
| + | |||
| + | ==== pppoe renew pool ==== | ||
| + | {{anchor: | ||
| + | Forced DHCP Renew for the addresses, allocated from a [[en: | ||
| + | <code bash> | ||
| + | # General command format | ||
| + | fdpi_cli -r 127.0.0.1 pppoe renew pool [ip=X | mac=X | login=X] | ||
| + | </ | ||
| + | |||
| + | The subscriber is specified by one of the parameters: | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | Examples: | ||
| + | <code bash> | ||
| + | fdpi_cli -r 127.0.0.1 pppoe renew pool ip=10.56.79.7 | ||
| + | fdpi_cli -r 127.0.0.1 pppoe renew pool ip=2001: | ||
| + | fdpi_cli -r 127.0.0.1 pppoe renew pool mac=00: | ||
| + | fdpi_cli -r 127.0.0.1 pppoe renew pool login=piter_smith | ||
| + | </ | ||