Repository navigation
pppoe
Pre-Alpha. This page describes behavior that may change.
Ze implements an RFC 2516 PPPoE access concentrator for direct-attach subscriber access. PPPoE is the alternative to L2TP: subscribers connect over Ethernet to the BNG without an intermediate LAC/LNS tunnel.
Router Advertisements to PPPoE subscribers leave with Hop Limit 255 (RFC 4861); before, subscribers discarded them and IPv6 autoconfiguration did not work. The L2TP upload-rate policer and the refusals listed on the L2TP page apply to PPPoE sessions too.
PPPoE uses the same transport-agnostic PPP driver as L2TP. The PPPoE component handles discovery (PADI/PADO/PADR/PADS/PADT) and creates kernel PPPoE sessions via AF_PPPOX. The resulting /dev/ppp file descriptors feed into the PPP driver, which runs LCP, authentication, and IPCP/IPv6CP identically to L2TP sessions.
PPPoE and L2TP run concurrently on the same daemon. Both share the same PPP driver, auth handlers, IP pools, and shaper plugins.
pppoe {
enabled true;
ac-name "my-bng";
service-name "internet";
auth-method chap-md5;
authentication-allow [chap-md5];
cookie-timeout 5;
max-sessions 65535;
padi-rate-limit 100;
max-sessions-per-mac 8;
interface eth0 {
}
interface eth0.100 {
service-name "vlan100";
max-sessions 1000;
}
}
Discovery runs only when enabled is true and the block lists at least one interface. A pppoe block with no interface entry answers no PADI.
A subscriber's LCP Terminate-Request is answered with a Terminate-Ack, and one configured Restart time later (3 seconds by default) the AC sends the PADT, with User Request as the accounting cause.
pppoe {
lcp {
restart-timer 3000 // milliseconds, 100..60000
max-terminate 2 // transmissions, including the first
max-configure 10 // transmissions without a valid reply
max-failure 5 // Naks before rejecting unacceptable options
}
}
The access concentrator shares its LCP settings and defaults with the L2TP server. Each counter accepts 1 through 255. A silent subscriber receives exactly max-configure Configure-Requests before the session ends; the defaults give ten requests over 30 seconds. max-terminate bounds unanswered Terminate-Requests, and max-failure bounds Naks sent without a Configure-Ack before unacceptable options are rejected. Valid negotiation replies can renew the request budget, so a convergence deadline of twice the Restart timer times max-configure (60 seconds at the defaults) bounds each LCP negotiation; a later negotiation after Opened gets a fresh deadline.
A committed change to the pppoe block applies to the running access concentrator at once, with no restart:
| Change | Effect |
|---|---|
ac-name, service-name, cookie-timeout, padi-rate-limit, max-sessions, max-sessions-per-mac, auth-method, authentication-allow, allow-no-auth
|
Apply to the next PADI and the next admitted session. A session already up keeps its terms. A lowered max-sessions refuses new sessions and ends none. AC-Cookies already handed out stay valid |
An added interface
|
Served at once. An interface that does not exist refuses the commit, naming it and the delete pppoe interface <name> that undoes it |
A removed interface
|
Stops answering PADI. Each of its sessions gets a PADT and its PPP session is stopped |
enabled true, or a first interface
|
Starts discovery, even when the daemon booted with PPPoE disabled |
enabled false, or no interface left |
Ends every session with a PADT and stops discovery |
lcp/restart-timer, lcp/max-terminate, lcp/max-configure, lcp/max-failure
|
Apply to newly admitted PPP sessions. A running session retains its timing and limits, including during LCP renegotiation |
auth-method selects the initial PPP Auth-Protocol in the access concentrator's LCP Configure-Request, subject to CHAP-before-PAP ordering.
| Leaf | Default | Values | Description |
|---|---|---|---|
auth-method |
chap-md5 |
none, pap, chap-md5, ms-chap-v2
|
Auth-Protocol advertised in the AC's LCP Configure-Request (RFC 1661 Section 6.2) |
authentication-allow |
Derived from auth-method
|
ordered set of pap, chap-md5, ms-chap-v2
|
Permitted methods; must include auth-method, cannot include none or accompany auth-method none
|
allow-no-auth |
false |
boolean | Admit a subscriber whose LCP ends with no Auth-Protocol negotiated |
auth-method none requires allow-no-auth true beside it. Without that opt-in, Ze refuses the configuration. Unknown methods and malformed allow-lists are also refused, rather than replaced with defaults.
An absent or empty authentication-allow derives [chap-md5] for chap-md5, [ms-chap-v2] for ms-chap-v2, [chap-md5 pap] for pap, and no methods for none. The flat leaf sits beside auth-method and allow-no-auth; it is not an authentication { allow ... } block as on L2TP.
Ze offers a permitted CHAP variant before PAP (RFC 1334 Section 2). With auth-method pap and its derived default policy, the first Configure-Request offers CHAP-MD5, and PAP is offered only after a Configure-Nak suggesting it; an explicit [pap] policy offers PAP directly. A Configure-Nak advances to an untried permitted method, with CHAP variants before PAP. A valid Configure-Reject removes Auth-Protocol instead of trying another method. With the default allow-no-auth false, rejection or exhaustion closes LCP before the link opens. With allow-no-auth true, negotiation can continue without authentication when no method remains; this opt-in does not permit a method outside the allow-list.
Authentication policy changes on reload apply only to new sessions. Existing sessions keep their admitted policy. PPPoE's transmit ceiling is 1492 octets, including when the peer omits its MRU option; a smaller peer receive MRU remains binding. There is no PPPoE mru setting, and the local cap does not replace the peer's factual negotiated receive MRU in session state.
The IPCP DNS a subscriber gets follows the pool's dns-source list, as on L2TP: with none written, RADIUS's MS DNS servers, then the pool's dns-primary and dns-secondary, then the resolvers Ze learned.
Refusals print only PPPoE repair commands. Editor leaf-lists take one member per command: to intentionally permit PAP while retaining CHAP-MD5, run set pppoe authentication-allow chap-md5 followed by set pppoe authentication-allow pap. Invalid-policy errors also offer deletion of the explicit list to restore the method-derived default. Neither repair enables no-auth.
The credential comes from the same auth plugins the L2TP LNS uses. l2tp-auth-local verifies it and l2tp-pool supplies the IPCP address, so a PPPoE-only BNG configures those two under l2tp {} and needs neither l2tp enabled nor an L2TP listener.
l2tp {
auth {
local {
user alice {
password "s3cr3t";
}
}
}
pool {
ipv4 {
gateway 10.20.0.1;
start 10.20.0.2;
end 10.20.0.254;
}
}
}
The PPP auth handler slot holds one handler, and configuration decides its owner: l2tp-auth-radius claims it when a RADIUS server is configured, and l2tp-auth-local keeps it otherwise. A box with local users and no RADIUS block therefore authenticates against those users, on PPPoE and on L2TP.
The Docker lab includes scenarios for both PPPoE roles. ./le test deployment docker-pppoe-accel runs them all; the table lists the two baseline ones and the CPE reconnect.
| Scenario | Ze role | Peer | Proves |
|---|---|---|---|
01-pppoe-chap-ipv4 |
client | accel-ppp | Discovery, LCP, CHAP-MD5, the IPCP address on the kernel device pppoe0 (named after the pppoe-client key), a ping to the AC gateway through the session, and a clean teardown |
pppoe-named-device-reconnect-ze-client |
client | accel-ppp | A home CPE: the device is pppoe0 and no pppN is created; a static default next { interface pppoe0 } reaches the kernel; LAN traffic masqueraded on output-interface "pppoe0" crosses it; after accel-ppp ends the session, a new pppoe0 comes up and the route and NAT work again with no reload |
02-ze-ac-pppd-client |
access concentrator | pppd 2.5.5 with the rp-pppoe plugin | Discovery, LCP demanding CHAP-MD5, the credential accepted, an IPCP pool address, ICMP across the session, and a wrong password refused before IPCP |
The client image pins the official ppp 2.5.5 tag archive by SHA256 and uses upstream autogen.sh to generate its build system. Native runs on 2026-11-04 passed 02-ze-ac-pppd-client, pppoe-pap-ze-ac and pppoe-chap-only-pap-client: CHAP success and wrong-password refusal, PAP success and replay handling, and CHAP-only refusal before authentication. The refusal scenario failed with the old broad authentication default restored in a rebuilt daemon, then passed again with the policy fix.
./le test qemu pppoe-accel runs the client half in QEMU, and ./le test qemu pppoe runs the access concentrator's own functional suite on Ze's runtime kernel, because a stock Alpine kernel has no CONFIG_PPPOE.
| Command | Description |
|---|---|
show pppoe |
Subsystem summary |
show pppoe sessions |
List active sessions |
show pppoe session <sid> |
Show one session |
show pppoe statistics |
Per-interface counters |
show pppoe interfaces |
Configured access interfaces |
-
AC-Cookie: HMAC-SHA256 cookie in PADO/PADR prevents PADR flooding. Cookies expire after
cookie-timeoutseconds (default 5). -
PADI rate limiting:
padi-rate-limit(default 100, range 1 to 10000) counts the PADIs of one interface in a one-second window and discards every packet over the count. -
Sessions per MAC:
max-sessions-per-mac(default 8, range 1 to 65535, overridable per interface) bounds what one subscriber MAC can make the server allocate. A PADR from a MAC at the cap gets a PADS carrying an error tag and session ID 0. A replayed PADR could previously exhaust the server's file descriptors and orphan sessions. - Service-Name tag: every PADO and PADS carries the Service-Name tag RFC 2516 makes mandatory.
- Service-Name filtering: Only PADIs matching configured service names are accepted. Empty list means accept any.
- MAC binding: Sessions are bound to the subscriber MAC from PADR. PADTs from other MACs are rejected.
Instead of terminating PPP locally, a PPPoE subscriber can be relayed straight into an L2TP incoming call, turning the box into an L2TP Access Concentrator (LAC). When a subscriber completes discovery and its PPPoE Service-Name matches a configured relay binding, Ze originates an L2TP incoming call (ICRQ) toward the bound remote instead of starting a local PPP session.
The relay bindings live on the L2TP side under l2tp { relay ... }, each referencing an l2tp { remote ... } dial target. See L2TP for the dial-target and relay configuration.
l2tp {
remote lns-retail {
address 203.0.113.10;
shared-secret <secret>;
}
relay internet { // PPPoE Service-Name to relay
remote lns-retail;
}
}
On the data plane, the subscriber's PPPoE channel and the L2TP pppol2tp channel are cross-connected in the kernel, so PPP frames flow directly between them and no local PPP unit runs for the subscriber. This kernel channel bridge is Linux-only.
The PPPoE and L2TP packages do not import each other. The relay decision crosses a neutral call-sink seam: the L2TP subsystem registers a sink at startup, and the PPPoE server looks it up for each PADS-completed subscriber.
Fallback to local termination happens when no relay binding matches the service, when no L2TP subsystem is running, or when a matched remote cannot be dialed. In each of these cases the subscriber terminates PPP locally as normal.
Ze also supports PPPoE as a client (CPE side). PPPoE client interfaces are configured under interface { pppoe-client <name> { ... } } and use the same PPP driver. See Interfaces for the full config reference.
interface {
pppoe-client pppoe0 {
source-interface eth2;
authentication {
username "user@isp.example";
password "secret";
}
}
}
The client dials an access concentrator over the named physical interface, negotiates LCP/auth/IPCP, and presents the PPP session as a routable interface with server-assigned addresses.
The kernel device takes the name of the pppoe-client key (pppoe0 above), so routes and NAT rules can name it before the session exists, and they keep working across a redial.
A PADT from the access concentrator ends the session. PAP authentication is retried up to five times, and CHAP accepts only a Success or Failure that answers the challenge it responded to.
The lcp block sets how the client negotiates LCP. restart-timer is the wait before an unanswered Configure-Request is sent again (100 to 60000 milliseconds, default 3000), and max-configure is how many unanswered requests end the negotiation (1 to 255, default 10, the first request included). Both defaults are the values RFC 1661 Section 4.6 recommends. A valid negotiation reply renews the request budget. A separate deadline of twice the timer times the budget bounds a peer that Naks every request. A change to these leaves alone keeps the running session: the next session, and its later LCP renegotiations, use the new values.
lcp max-failure limits consecutive Configure-Naks sent to the access concentrator (1 to 255, default 5). Further unacceptable options receive a Configure-Reject containing the original options, and a Configure-Ack renews the Nak budget. It follows the same session snapshot and reload behavior as the other LCP settings.
pppoe-client pppoe0 {
source-interface eth2
authentication { username user@isp.example; password secret; }
lcp { restart-timer 500; max-configure 3; }
}
The client detects a dead access concentrator with LCP Echo-Requests. keepalive interval sets the seconds between two requests (default 10) and keepalive failures how many unanswered requests in a row end the session (default 3), about 30 seconds in all. These match pppd's lcp-echo-interval and lcp-echo-failure, except that Ze ends the session when it sends the request that reaches failures: pppd's lcp-echo-failure 3 matches keepalive failures 4.
After a session ends or a dial fails, the client waits reconnect delay-min (default 1 second) before dialing again, doubling on each further failure up to reconnect delay-max (default 60 seconds). A change to these leaves keeps the running session up. The access-reconnect topology scenario proves the redial: after the LNS drops the session and RADIUS hands out a new address, the CPE comes back with it, the IKE SA follows it and masquerade uses it.
ipv6 enabled true on a pppoe-client negotiates IPv6CP beside IPCP and installs the link-local address formed from the negotiated interface identifier. An access concentrator that rejects or ignores IPv6CP leaves the IPv4 session up. interface pppoe-client <name> ipv6cp restart-timer, beside the ipv6 container rather than inside it, sets the IPv6CP retry wait in milliseconds (100 to 60000, default 3000), independent of IPCP's timer; ten unanswered requests stop IPv6CP while IPv4 continues, and a timing-only reload keeps the established session and changes the next session's timing. The same container takes accept-ra, autoconf and forwarding, and a dhcpv6 block that runs the DHCPv6 client on the session device; the other ipv6 leaves are refused while enabled is not true.
pppoe-client pppoe0 {
source-interface eth2
authentication { username user@isp.example; password secret; }
ipv6 {
enabled true
accept-ra 2
autoconf true
forwarding true
dhcpv6 { enabled true; pd { length 56; } }
}
}
A PPP device has no hardware address, so the DHCPv6 client builds its DUID-LL and IAIDs from the source interface unless dhcpv6 duid is set. A LAN unit takes a /64 from the delegated prefix with ipv6 delegated-prefix, named after the pppoe-client:
interface ethernet eth1 {
unit 0 {
ipv6 {
forwarding true
delegated-prefix pppoe0 { subnet-id 1; interface-identifier ::1; }
router-advertisement { enabled true; }
}
}
}
With 2001:db8:aa00::/56 delegated, eth1 holds 2001:db8:aa00:1::1/64. The address takes the lifetimes that remain of the delegation, a renew refreshes them (RFC 9915 Section 6.3), and the address is removed when the lease ends. Config verify refuses a subnet-id the pd length cannot hold, two units taking the same id from one source, and a source that is not a pppoe-client. A server that delegates a prefix too small for the id is logged with the unit and the fix.
With router-advertisement enabled, the unit advertises the /64 for SLAAC and a Route Information option for the whole delegated prefix. Its Router Lifetime is the configured one only while pppoe0 holds an IPv6 default route and the unit has a prefix; otherwise an advertisement with Router Lifetime 0 leaves at once (RFC 7084 G-4, G-5, L-4).
| Command | Shows |
|---|---|
show interface pppoe-client |
Under delegated-prefixes, each prefix the lease holds with its remaining valid-lifetime and preferred-lifetime
|
show interface delegated-prefix |
One row per delegated-prefix entry: interface, unit, source, subnet-id, and a state of installed (with address, prefix and lifetimes), waiting, too-small (with the fix) or not-installed
|
The interop scenarios pppoe-ipv6cp-ze-client and pppoe-ipv6cp-rejected-ze-client prove the IPv6CP link-local, the RA default route and SLAAC, and a rejected IPv6CP, against accel-ppp.
- L2TP/PPP for the tunnel-based BNG path.
- Interfaces for the PPPoE client interface kind.
- Firewall for subscriber traffic filtering.
- Policy Routing for per-subscriber traffic steering.
Adapted from main/docs/guide/pppoe.md.
Unreviewed draft. This wiki was authored in bulk and has not been reviewed. File corrections on the issue tracker.
- Install
- Docker
- netlab
- Appliance
- Quick Start
- Use Ze with an AI agent
- ExaBGP Migration
- CLI Tour
- Web UI Tour
- Overview
- YANG Model
- Editor Workflow
- Archive and Rollback
- Backup and Restore
- System
- Interfaces
- VRRP
- BFD
- FIB
- OSPF
- IS-IS
- MPLS / LDP / RSVP-TE
- RSVP-TE
- SRv6
- Static Routes
- Policy Routing
- Firewall
- Traffic Control
- Class of Service
- L2TP/PPP
- PPPoE
- VPP Data Plane
- RPKI
- IPsec VPN
- Path MTU
- TACACS+ AAA
- RADIUS AAA
- AS112 DNS
- DNS
- Authorization
- Fleet
- BGP
- Starting and Stopping
- Show Commands
- Monitoring
- Telemetry
- Flow Export
- DDoS Mitigation
- Anomaly Detection
- Health Checks
- Audit Trail
- Production Diagnostics
- Logging
- Operational Reports
- Healthcheck
- Self-Update
- Zero-Touch Provisioning
- MRT Analysis
- Upgrade and Restart
- Storage
- Policy
- Core
- Resilience
- Validation
- Link State
- Capabilities
- Address Families
- Protocol
- Subsystems
- Infrastructure
- Route Server at an IXP
- Transit Edge with RPKI
- Public Looking Glass
- ExaBGP Migration Walkthrough
- FlowSpec Injection
- Chaos-Tested Peering
- AS Path Topology