# PPPoE over L2TP

> PPPoE over L2TP tunnel configuration on VyOS - service provider subscriber aggregation, LAC/LNS topology, RADIUS integration, and bandwidth management

Source: https://opennix.org/en/docs/vyos/examples/pppoe-l2tp/


PPPoE over L2TP is used by service providers to aggregate subscriber sessions through L2TP tunnels.

## Scenario

- Service Provider: LAC (L2TP Access Concentrator) ↔ LNS (L2TP Network Server)
- DSL Aggregation: PPPoE sessions over L2TP
- Wholesale: Forwarding subscriber authentication to another provider

## Topology

```
Subscriber ─PPPoE─► LAC (VyOS) ─L2TP─► LNS ─► Internet
```

## VyOS LAC Configuration

```bash
# L2TP tunnel to the LNS
set vpn l2tp remote-access outside-address '198.51.100.1'
set vpn l2tp remote-access lns server1 address '203.0.113.1'
set vpn l2tp remote-access lns server1 secret 'L2TPSecret'

# PPPoE on the subscriber interface
set interfaces ethernet eth1 pppoe pppoe0
```

The detailed configuration depends on the specific ISP setup and wholesale agreement.

## References

- [VyOS L2TP](https://docs.vyos.io/en/latest/configuration/vpn/l2tp.html)
- [RFC 2661 - L2TP](https://datatracker.ietf.org/doc/html/rfc2661)
- [VyOS PPPoE over L2TP Example](https://docs.vyos.io/en/latest/configexamples/pppoe-ipv6-basic.html)

