---
title: PPPoE Server Configuration Guide
slug: routing/pppoe-server-configuration-guide
createdAt: 2026-04-09T10:11:37.932Z
---

# <font color="#1d50a2">**Introduction**</font>

This guide provides a step-by-step tutorial for configuring the **PPPoE Server** capability on the Asterfusion Open Intelligent Gateway running AsterNOS-VPP.

By following this guide, you will transform a standard Layer 3 gateway into a high-performance Broadband Network Gateway (vBNG) capable of handling client dial-ups, centralized AAA billing, and internet access via NAT.

## <font color="#1d50a2">**What This Guide Will Accomplish**</font>

This document is structured to reflect real-world enterprise deployment priorities:

- **Scenario 1: Enterprise RADIUS Integration (Main Deployment)**
  We will configure the gateway to act as a vBNG access node, integrated with an external RADIUS server for centralized Authentication, Authorization, and Accounting (AAA). This phase covers both local IP allocation and fully centralized RADIUS IP pool management.
- **Scenario 2: Standalone Gateway Mode (Local Auth & NAT)** Configuring the gateway to rely on its internal local database for dial-in access and enabling Source NAT (SNAT). This is ideal for small, isolated networks or as an emergency fallback.

***

# <font color="#1d50a2">**Scenario 1**\: **Enterprise RADIUS Integration**</font>

## <font color="#1d50a2">**Network Topology Plan**</font>

![](https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/Fye857M4bvFnE_nfMdHi8-20260415-092421.png)

## <font color="#1d50a2">**Target Configuration Plan**</font>

| **Device / Interface** | **IP Address / Subnet** | **Role**                                        |
| ---------------------- | ----------------------- | ----------------------------------------------- |
| **AsterNOS (Eth1)**    | `192.168.200.166/24`    | **WAN Uplink** (Route to RADIUS & Core Network) |
| **AsterNOS (Eth2)**    | N/A (Layer 2 PPPoE)     | **LAN Interface** (PPPoE Dial-in Port)          |
| **RADIUS Server**      | `192.168.200.253/24`    | **Centralized AAA Server** (FreeRADIUS)         |
| **Dial-in Client PC**  | `192.168.100.x/24`      | **PPPoE Client**                                |

## <font color="#1d50a2">**Phase 1\: Baseline Setup (Local Pool IP Allocation)**</font>

In this phase, we establish an enterprise-grade vBNG architecture. To ensure a smooth deployment, we will build this in two stages:

1. **Baseline Setup:** Centralized RADIUS authentication combined with AsterNOS local IP allocation.
2. **Advanced Setup:** Fully centralized architecture where RADIUS handles both authentication and dynamic IP allocation.

### <font color="#1d50a2">**Base Network &amp; RADIUS Global Configuration**</font>

:::BlockQuote
sonic# configure terminal
 <font color="#5fd74e"># 1. Configure the WAN Interface (Required to reach the RADIUS server)</font>
sonic(config)# interface ethernet 1
sonic(config-if-1)# ip address 192.168.200.166/24
sonic(config-if-1)# exit
 <font color="#5fd74e"># 2. Define Default Route to Core Network</font>
sonic(config)# ip route 0.0.0.0/0 192.168.200.1
 <font color="#5fd74e"># 3. Define the Global RADIUS server. 
# CRITICAL\: The 'mode pppoe' attribute must be configured FIRST.</font>
sonic(config)# radius server 192.168.200.253 mode pppoe
sonic(config)# radius server 192.168.200.253 auth-type chap
sonic(config)# radius server 192.168.200.253 passkey aster123
:::

### <font color="#1d50a2">**Configure the PPPoE Server** </font>

In our baseline setup, AsterNOS relies on RADIUS for user authentication but handles IP address distribution locally.

:::BlockQuote
<font color="#5fd74e"># 1. Enable PPPoE Server globally</font>
sonic(config)# pppoe-server enable
 <font color="#5fd74e"># 2. Create the local IP pool for dial-in clients</font>
sonic(config)# ip-pool pppoe-pool
sonic(config-ip-pool)# ip-range 192.168.100.10 192.168.100.254
sonic(config-ip-pool)# exit
 <font color="#5fd74e"># 3. Enter PPPoE Server instance 1</font>
sonic(config)# interface pppoe-server 1
sonic(config-if-pppoeserver-1)# service-name pppoe-enterprise
sonic(config-if-pppoeserver-1)# ac-name pppoe-server-1
 <font color="#5fd74e"># 4. Bind RADIUS for Authentication and Accounting</font>
sonic(config-if-pppoeserver-1)# ppp chap radius-server 192.168.200.253
sonic(config-if-pppoeserver-1)# nas-ip 192.168.200.166
 <font color="#5fd74e"># 5. Set Virtual Gateway IP and bind the local pool</font>
sonic(config-if-pppoeserver-1)# local-ip 192.168.100.1 255.255.255.0
sonic(config-if-pppoeserver-1)# remote-ip-pool pppoe-pool
 <font color="#5fd74e"># 6. Network Parameters</font>
sonic(config-if-pppoeserver-1)# dns-server 8.8.8.8
sonic(config-if-pppoeserver-1)# accept-blank-service enable
sonic(config-if-pppoeserver-1)# exit
 <font color="#5fd74e"># 7. Bind to physical LAN port</font>
sonic(config)# interface ethernet 2
sonic(config-if-2)# pppoe-server 1
sonic(config-if-2)# exit
:::

:::hint{type="info"}
***Note:***&#x20;

- **If using&#x20;**`accept-any-service enable`**:** The `service-name` does not need to be configured on either the server or the client.
- **If using&#x20;**`accept-blank-service enable`**:** The `service-name` **must** be configured on the server, and the client must **not** configure it (leave it blank).
:::

### <font color="#1d50a2">**FreeRADIUS Server Setup**</font>

Deploy a lightweight FreeRADIUS configuration focused strictly on AAA, without the complexity of IP pool management.

- <font color="#1d50a2">**Install FreeRADIUS**</font>

:::CodeblockTabs{indent="1"}
```bash
sudo apt-get update
sudo apt-get install freeradius -y
```
:::

- <font color="#1d50a2">**Configure the NAS Client (AsterNOS Gateway)**</font>

:::CodeblockTabs{indent="1"}
```bash
sudo nano /etc/freeradius/3.0/clients.conf
```
:::

:::CodeblockTabs{indent="1"}
```text
client AsterNOS-Gateway {
    ipaddr = 192.168.200.166  
    secret = aster123         
}
```
:::

- <font color="#1d50a2">**Create the User Profile**</font>

  ```bash
  sudo nano /etc/freeradius/3.0/users
  ```

:::CodeblockTabs{indent="1"}
```text
"radiususer" Cleartext-Password := "radius123"
        Service-Type = Framed-User,
        Framed-Protocol = PPP
```
:::

- <font color="#1d50a2">**Restart Service**</font>

:::hint{type="info" indent="1"}
***Note:***&#x20;

*On Ubuntu/Debian systems, FreeRADIUS starts automatically upon installation. A restart is required to load the newly configured clients and users.*
:::

:::CodeblockTabs{indent="1"}
```bash
sudo systemctl restart freeradius
```
:::

***

## <font color="#1d50a2">**Phase2\: Advanced Integration (Centralized RADIUS IP Allocation)**</font>

Once the baseline authentication is verified, enterprise architectures typically migrate IP allocation to the RADIUS server. This consolidates user management and billing into a single pane of glass.

To upgrade from the Baseline to the Centralized architecture, follow these Delta steps:

### <font color="#1d50a2">**Unbind the Local Pool on AsterNOS**</font>

Shift the allocation responsibility away from the gateway.

:::BlockQuote
sonic# configure terminal
sonic(config)# interface pppoe-server 1
sonic(config-if-pppoeserver-1)# no remote-ip-pool pppoe-pool
sonic(config-if-pppoeserver-1)# exit
:::

### <font color="#1d50a2">**Configure the RADIUS IP Pool**</font>&#xD;

```bash
sudo nano /etc/freeradius/3.0/mods-available/ippool
```

```text
ippool main_pool {
    range_start = 192.168.100.10
    range_stop = 192.168.100.254
    netmask = 255.255.255.0
    
    # Keep the following default parameters unchanged
    filename = ${db_dir}/db.ippool
    ip_index = ${db_dir}/db.ipindex
    override = no
    maximum_timeout = 0
}
```

### <font color="#1d50a2">**Enable the module**</font>

```bash
sudo ln -s /etc/freeradius/3.0/mods-available/ippool /etc/freeradius/3.0/mods-enabled/
```

### <font color="#1d50a2">**Activate IP Pool in Accounting &amp; Post-Auth**</font>&#xD;&#xA;&#xD;

```bash
sudo nano /etc/freeradius/3.0/sites-enabled/default
```

In the `accounting { ... }` block, add:

```text
accounting {
        detail
        unix
        main_pool  # <--- Add this line
        exec
        # ...
}
```

In the `post-auth { ... }` block, add:

```text
post-auth {
        exec
        main_pool  # <--- Add this line
        # ...
}
```

### <font color="#1d50a2">**Update User Profile &amp; Apply Changes**</font>&#xD;

```bash
sudo nano /etc/freeradius/3.0/users
```



```text
"radiususer" Cleartext-Password := "radius123", Pool-Name := "main_pool"
        Service-Type = Framed-User,
        Framed-Protocol = PPP
```

```bash
sudo systemctl restart freeradius
```

### <font color="#1d50a2">**Phase 1 &amp; 2 Verification**</font>

After completing the configuration and restarting the RADIUS service, follow these steps to verify that the PPPoE session is successfully established:

1. **Client Dial-in:&#x20;**&#x43;reate a PPPoE connection on the client PC and dial in using your username and password.
2. **Check Session Status:&#x20;**&#x4F;nce successfully connected, execute the following command  to view real-time session information.

:::BlockQuote{indent="1"}
sonic# show pppoe-session
:::

<font color="#1d50a2">**Expected Output\:**</font>

```text
 Id  Iface      SessionId  RemoteMac          RemoteIp       LocalIp        LocalIf    PppoeServer     Uptime
---- ---------  -----------  -----------------  -------------  -------------  ---------  --------------  --------
   0 Ethernet3          384  00:e0:4c:68:06:0d  192.168.100.10 192.168.100.1  ppp0       pppoe-server-1  0:00:37
```

:::hint{type="info"}
***Tips:&#x20;***

*Under the **Scenario 1&#x20;**&#x63;onfiguration, the client can successfully dial in and establish a network connection. To enable internet access, please ensure that the core network has the appropriate NAT policies configured, or refer to **Scenario 2&#x20;**&#x74;o enable local SNAT on AsterNOS.*
:::

***

# <font color="#1d50a2">**Scenario** 2\: Standalone Gateway Mode &amp; Fallback (Local Auth &amp; NAT)</font>

This section provides the complete, standalone configuration required to set up the PPPoE server using AsterNOS's internal database for authentication and local IP pool for address allocation.

:::hint{type="warning"}
***Important:&#x20;***

*AsterNOS does not support automatic fallback to the local database if a RADIUS server is configured but unreachable. You must manually remove the RADIUS server binding before local credentials can take effect.*
:::

### <font color="#1d50a2">**Configure the PPPoE Server** </font>

:::BlockQuote
<font color="#5fd74e"># 1. Enable PPPoE Server globally</font>
sonic# configure terminal
sonic(config)# pppoe-server enable
 <font color="#5fd74e"># 2. Create the local IP pool for dial-in clients</font>
sonic(config)# ip-pool pppoe-pool
sonic(config-ip-pool)# ip-range 192.168.100.10 192.168.100.254
sonic(config-ip-pool)# exit
 <font color="#5fd74e"># 3. Enter PPPoE Server instance 1</font>
sonic(config)# interface pppoe-server 1
sonic(config-if-pppoeserver-1)# service-name pppoe-enterprise
sonic(config-if-pppoeserver-1)# ac-name pppoe-server-1
 <font color="#5fd74e">Configure local CHAP credentials (Username\: testuser, Password\: 123456)</font>
sonic(config-if-pppoeserver-1)# ppp chap username testuser 123456
sonic(config-if-pppoeserver-1)# nas-ip 192.168.200.166
 <font color="#5fd74e"># 5. Set Virtual Gateway IP and bind the local pool</font>
sonic(config-if-pppoeserver-1)# local-ip 192.168.100.1 255.255.255.0
sonic(config-if-pppoeserver-1)# remote-ip-pool pppoe-pool
 <font color="#5fd74e"># 6. Network Parameters</font>
sonic(config-if-pppoeserver-1)# dns-server 8.8.8.8
sonic(config-if-pppoeserver-1)# accept-blank-service enable
sonic(config-if-pppoeserver-1)# exit
 <font color="#5fd74e"># 7. Bind to physical LAN port</font>
sonic(config)# interface ethernet 2
sonic(config-if-ethernet2)# pppoe-server 1
sonic(config-if-ethernet2)# exit
:::

### <font color="#1d50a2">**Enable SNAT for Internet Access**</font>

To allow the locally authenticated PPPoE clients (e.g., `192.168.100.x`) to browse the public internet, you must translate their private IPs to the WAN interface's public/uplink IP.

:::BlockQuote
<font color="#5fd74e"># 1. Enable the NAT engine globally</font>
sonic(config)# nat enable
 <font color="#5fd74e"># 2. Define a NAT pool using the WAN uplink IP (192.168.200.166)</font>
sonic(config)# nat pool wan-pool 192.168.200.166
 <font color="#5fd74e"># 3. Bind the pool to masquerade all outbound routed traffic</font>
sonic(config)# nat binding bind-wan wan-pool
 <font color="#5fd74e"># 4. Apply NAT zone to the WAN interface</font>
sonic(config)# interface ethernet 1
sonic(config-if-1)# nat-zone 1
sonic(config-if-1)# exit
:::

### <font color="#1d50a2">**Verification**</font>

After completing the configuration, follow these steps to verify that the PPPoE session is successfully established:

1. **Client Dial-in:&#x20;**&#x43;reate a PPPoE connection on the client PC and dial in using your username and password.
2. **Check Session Status:&#x20;**&#x4F;nce successfully connected, execute the following command  to view real-time session information.

:::BlockQuote{indent="1"}
sonic# show pppoe-session
:::

<font color="#1d50a2">**Expected Output\:**</font>

```text
 Id  Iface      SessionId  RemoteMac          RemoteIp       LocalIp        LocalIf    PppoeServer     Uptime
---- ---------  -----------  -----------------  -------------  -------------  ---------  --------------  --------
   0 Ethernet3          384  00:e0:4c:68:06:0d  192.168.100.10 192.168.100.1  ppp0       pppoe-server-1  0:00:37
```

***

# <font color="#1d50a2">**Conclusion**</font>

This guide has verified the comprehensive PPPoE Server capabilities of AsterNOS, transforming a standard gateway into a high-performance vBNG. The completed scenarios demonstrate its deployment flexibility, seamlessly supporting both enterprise centralized RADIUS integration and standalone operations with local authentication and NAT.
