Common parameters for PPPoE and PPPoL2TP

Parameter Description Default Value and Possible Values
bras_ppp_mru_max Maximum size of a PPP packet wrapped in PPPoE.
Change this parameter with caution!
Default value is 1492. Can be increased [RFC 4638] if the Ethernet network MTU exceeds 1500. Calculated as: MTU - 6 (PPPoE header) - 2 (PPP Protocol ID). If VLAN/QinQ is present, their length is also subtracted. The parameter must be coordinated with snaplen
bras_ppp_mac_auth Flag enabling RADIUS authorization by MAC address. Used if PPP did not negotiate an authorization protocol. If MAC authorization is disabled and there is no authorization protocol, the PPP session is not established 0 — MAC address authorization prohibited (default value)
1 — MAC address authorization allowed
bras_ppp_restart_timeout Timeout for resending LCP cfg-req and term-req requests in seconds Default value: 3 seconds [RFC1661]
bras_ppp_ping_timeout PPP session ping timeout in seconds.
Pinging is the sending of LCP Echo-Request when there are no packets from the client
0 — do not use pinging
Default value: 60 seconds
bras_ppp_max_terminate Maximum number of attempts to send Terminate-Request without a confirming Terminate-Ack Default value: 2 [RFC1661]
bras_ppp_max_configure Maximum number of attempts to send Configure-Request without receiving Cfg-Ack, Cfg-Nak, or Cfg-Reject Default value: 10 [RFC1661]
bras_ppp_max_failure Maximum number of consecutive Configure-Nak messages. Upon reaching this threshold, it is considered that the parties cannot agree on connection parameters, and thereafter Cfg-Reject will be sent instead of Cfg-Nak.
This parameter also regulates the maximum number of unanswered echo requests: if there are no packets from the subscriber and no responses to the number of pings specified in the parameter, the session is closed due to subscriber inactivity
Default value: 5 [RFC1661]
bras_ppp_idle_timeout Control of PPPoE subscriber inactivity.
The inactivity interval (absence of packets from the subscriber) is set by the Radius attribute Idle-Timeout; if this attribute is not present in Access-Accept, this parameter is used. If there are no packets from the subscriber during the idle-timeout, a ping (LCP Echo Request) is sent to the subscriber at intervals of bras_ppp_ping_timeout seconds. If there is no response from the subscriber for bras_ppp_max_failure consecutive pings — the session is considered terminated due to subscriber inactivity
Default value: 300 seconds
bras_pppoe_session Maximum number of PPP sessions

CLI Parameters

ppp term — termination of all PPP sessions without distinguishing between PPPoE and L2TP tunnels. It is possible to specify parameters ip, mac, subs_id, login or all:

ppp term [hard] [ip=X | mac=X | subs_id=X | login=X | all]

The key for PPP sessions is composite: l2subs_id + tunnel-IP. CLI commands that accept subs_id as a key (subs prop show, l2tp show session, l2tp term, etc.) may return multiple records with the same l2subs_id.