Documentation Index
Fetch the complete documentation index at: https://mintlify.com/abelperezr/nokia-bng-lab/llms.txt
Use this file to discover all available pages before exploring further.
RADIUS Server Configuration
The Nokia BNG Lab uses FreeRADIUS to provide Authentication, Authorization, and Accounting (AAA) services for subscriber sessions. The RADIUS server authenticates both IPoE (DHCP-based) and PPPoE subscribers.Server Overview
Container Type: Linux (network-multitool) Management IP: 10.77.1.10 RADIUS Software: FreeRADIUS 3.0.26 Configuration Location:/etc/raddb/
Log Location: /var/log/radius/
RADIUS Client Configuration
The RADIUS server must trust the BNG devices before accepting authentication requests:Client Definition
The shared secret
testlab123 must match the secret configured on the BNG devices in their RADIUS server definitions.Client Configuration Breakdown
- BNG1 Client
- BNG2 Client
IP Address: 10.77.1.2Shared Secret: testlab123Purpose: Authenticates subscribers from ONT1 using IPoETraffic: Access-Request, Accounting-Request packets from BNG1
User Database
The RADIUS server uses a flat-file user database for subscriber authentication and authorization:Subscriber Definitions
IPoE Subscriber (ONT1)
Authentication Method: MAC-based (MAC address as username) MAC Address:00:d0:f6:01:01:01
Password: testlab123
ONT1 RADIUS Attributes
ONT1 RADIUS Attributes
| Attribute | Value | Description |
|---|---|---|
| Cleartext-Password | testlab123 | Authentication password |
| Framed-Pool | cgnat | IPv4 address pool name (100.80.0.0/29) |
| Framed-IPv6-Pool | IPv6 | IPv6 WAN address pool |
| Alc-Delegated-IPv6-Pool | IPv6 | IPv6 prefix delegation pool |
| Alc-SLA-Prof-str | 100M | SLA profile (100 Mbps bandwidth) |
| Alc-Subsc-Prof-str | subprofile | Subscriber profile (accounting settings) |
| Alc-Subsc-ID-Str | ONT-001 | Unique subscriber identifier |
| Fall-Through | Yes | Continue processing other modules |
PPPoE Subscriber (ONT2)
Authentication Method: Username/password Username:test@test.com
Password: testlab123
ONT2 RADIUS Attributes
ONT2 RADIUS Attributes
| Attribute | Value | Description |
|---|---|---|
| Cleartext-Password | testlab123 | Authentication password |
| Framed-Pool | cgnat | IPv4 address pool name (100.80.0.0/29) |
| Framed-IPv6-Pool | IPv6 | IPv6 WAN address pool |
| Alc-Delegated-IPv6-Pool | IPv6 | IPv6 prefix delegation pool |
| Alc-SLA-Prof-str | 100M | SLA profile (100 Mbps bandwidth) |
| Alc-Subsc-Prof-str | subprofile | Subscriber profile (accounting settings) |
| Alc-Subsc-ID-Str | ONT-002-PPPOE | Unique subscriber identifier |
| Fall-Through | Yes | Continue processing other modules |
The
Alc-* attributes are Nokia-specific vendor attributes (Vendor-ID: 6527) that instruct the BNG on how to provision the subscriber session.RADIUS Attributes Explained
Standard RADIUS Attributes
Nokia Alcatel-Lucent VSAs
RADIUS Server Main Configuration
The main FreeRADIUS configuration file defines server behavior:Key Configuration Sections
Key Configuration Sections
Logging:
- Log directory:
/var/log/radius/ - Accounting logs:
/var/log/radius/radacct/
- PID file location:
/run/radiusd/ - Database directory:
/var/lib/radiusd/
- Module config:
/etc/raddb/mods-config/ - Module binaries:
/usr/lib/freeradius/
Authentication Flow
IPoE Authentication (ONT1)
Key Points:- BNG1 triggers authentication on DHCP Discover
- MAC address (00:d0:f6:01:01:01) is used as username
- RADIUS returns subscriber profile and policies
- BNG1 creates subscriber session and assigns IP
- Accounting Start is sent to RADIUS
PPPoE Authentication (ONT2)
Key Points:- PPPoE discovery phase completes before RADIUS
- Username (test@test.com) and password sent in Access-Request
- RADIUS validates credentials against authorize file
- BNG2 establishes PPP session with returned attributes
- IP assignment happens after PPP negotiation
Accounting
Accounting Record Types
The BNG sends accounting updates to track subscriber sessions:- Start
- Interim-Update
- Stop
Acct-Status-Type: StartSent when subscriber session is established.Includes:
- Session ID
- Subscriber ID
- Framed IP address
- SLA profile
- Timestamp
Accounting Configuration (BNG-side)
Interim updates every 720 seconds allow monitoring of active sessions and tracking bandwidth usage in near real-time.
Change of Authorization (CoA)
The RADIUS server can send CoA messages to dynamically modify subscriber sessions:Supported CoA Operations
Example CoA Commands
Container Configuration
The RADIUS container is configured via bindings in lab.yml:Startup Script
Theradius.sh script starts the FreeRADIUS service:
Running with
-X flag enables debug mode, which is useful for troubleshooting but should be disabled in production.Debugging RADIUS
Enable Debug Mode
Common Debug Output
View Accounting Records
Testing RADIUS Authentication
Using radtest
Expected Output
Security Considerations
Configuration Files
The complete RADIUS configuration files are located at:- Clients:
configs/radius/clients.tmpl.conf - Users:
configs/radius/authorize - Main Config:
configs/radius/radiusd.conf - Startup Script:
configs/radius/radius.sh - Network Config:
configs/radius/interfaces.tmpl