NAT Configuration Reference
Complete reference for Carrier-Grade NAT44 (CGN) configuration in the Nokia BNG Lab.Overview
The lab implements Deterministic Large-Scale NAT44 to provide IPv4 connectivity to subscribers using private address space. This allows multiple subscribers to share a single public IPv4 address while maintaining traceability.Key Features
- Deterministic Port Allocation: Predictable port ranges per subscriber
- Large-Scale NAT: Support for thousands of subscribers
- ISA-Based: Hardware-accelerated NAT using ISA cards
- Application Layer Gateways (ALGs): Support for PPTP, RTSP, SIP
- Logging and Traceability: RADIUS accounting with port range info
Architecture Overview
ISA Configuration
ISA Card and NAT Group
ISA Hardware Configuration
ISA Hardware Configuration
- NAT Group: 1
- MDA: 2/1 (ISA card in slot 2, MDA 1)
- Active MDA Limit: 1 (single active ISA)
- Session Watermarks:
- Low: 80% (warning threshold)
- High: 90% (critical threshold)
NAT Filter Configuration
IP Filter for NAT Trigger
- Entry 1: Destination is CGN pool → Accept (no NAT)
- Entry 2: Source is CGN pool → Apply NAT
- Default: Accept (for other traffic)
NAT Outside Configuration (VPRN 9999)
NAT Outside Pool and Interface
NAT Outside Pool and Interface
BNG1 Configuration
- Type: large-scale (CGN)
- Mode: NAPT (NAT with Port Address Translation)
- NAT Group: 1 (uses ISA 2/1)
- Subscriber Limit: 8 subscribers
- Deterministic: Enabled (predictable port allocation)
- Port Reservation: 64 ports per subscriber
- Public IP: 99.99.99.99
BNG2 Configuration
NAT Policy Configuration
- PPTP: VPN pass-through
- RTSP: Video streaming
- SIP: VoIP signaling
NAT Inside Configuration (VPRN 9998)
NAT Inside and Prefix Mapping
NAT Inside and Prefix Mapping
Deterministic Port Allocation
Port Range Calculation
Formula:Port Mapping Table (BNG1)
| Inside IP | Outside IP | Port Range | Block Size |
|---|---|---|---|
| 100.80.0.0 | 99.99.99.99 | 1024-9023 | 8000 ports |
| 100.80.0.1 | 99.99.99.99 | 9024-17023 | 8000 ports |
| 100.80.0.2 | 99.99.99.99 | 17024-25023 | 8000 ports |
| 100.80.0.3 | 99.99.99.99 | 25024-33023 | 8000 ports |
| 100.80.0.4 | 99.99.99.99 | 33024-41023 | 8000 ports |
| 100.80.0.5 | 99.99.99.99 | 41024-49023 | 8000 ports |
| 100.80.0.6 | 99.99.99.99 | 49024-57023 | 8000 ports |
| 100.80.0.7 | 99.99.99.99 | 57024-65023 | 8000 ports |
Port Reservation Benefits
Port Reservation = 64 ports:- Reduces logging overhead
- Simplifies traceability
- Allocates ports in blocks of 64
- Easier to identify subscriber from port
NAT Traffic Flow
Outbound Traffic (Inside → Outside)
- Subscriber sends packet with private IP
- Packet hits IP filter entry 2 (src = CGN pool)
- Filter action triggers NAT
- ISA card performs NAT lookup/translation
- Source IP changed to 99.99.99.99
- Source port mapped to deterministic range
- Packet forwarded to Internet via VPRN 9999
Inbound Traffic (Outside → Inside)
RADIUS Accounting for NAT
NAT-Specific Attributes
Verification Commands
Troubleshooting
NAT not working / No outbound connectivity
NAT not working / No outbound connectivity
Check:Debug:
- ISA NAT group operational
- NAT filter applied to SLA profile
- NAT policy linked to pool
- Prefix map enabled
Port exhaustion
Port exhaustion
Symptoms: New connections fail, existing workCheck port usage:Solutions:
- Increase port-reservation (more ports per sub)
- Add more public IPs to pool
- Implement port limits per subscriber
- Enable port timeout/reuse
Deterministic mapping not working
Deterministic mapping not working
Verify configuration:Check:
- Admin state enabled
- Port-reservation configured
- Subscriber limit matches pool
- First-outside-address configured
ALG not working (VoIP/VPN fails)
ALG not working (VoIP/VPN fails)
Check ALG config:Verify ALGs enabled:
- PPTP for VPN
- SIP for VoIP
- RTSP for video
Performance Considerations
ISA Session Limits
- Low watermark (80%): Warning, monitor closely
- High watermark (90%): Critical, scale or optimize
Port Optimization
Smaller port blocks = More subscribers:- Smaller blocks = more logging events
- Larger blocks = fewer ports per subscriber