Command |
Description |
|---|---|
l2tp-tunnels |
Display all L2TP tunnels.
|
l2tp-sessions |
L2TP all matching sessions.
Arguments:
tunnel-idsession-id |
l2tp-csurq |
Send L2TP CSURQ.
Arguments:
tunnel-id Mandatorysessions (list of remote session-id) |
l2tp-tunnel-terminate |
Terminate L2TP tunnel.
Arguments:
tunnel-id Mandatoryresult-codeerror-codeerror-message |
l2tp-session-terminate |
Terminate L2TP session.
Arguments:
session-id Mandatoryresult-codeerror-codeerror-messagedisconnect-codedisconnect-protocoldisconnect-directiondisconnect-message |
The L2TP CSURQ command expects the local tunnel-id and a list of remote session-id for which a connect speed update is requested.
{
"command": "l2tp-csurq",
"arguments": {
"tunnel-id": 1,
"sessions": [
1,
2,
3,
4
]
}
}
This command can be executed as shown below using the CLI tool.
$ sudo bngblaster-cli run.sock l2tp-csurq tunnel-id 1 sessions [1,2,3,4]
The L2TP session terminate command allows to test result (RFC2661) and disconnect (RFC3145) codes.
$ sudo bngblaster-cli run.sock l2tp-session-terminate session-id 1 result-code 2 error-message "LCP request" disconnect-code 3 disconnect-message "LCP terminate request"