
4. DSL Router Configuration Examples
NAPT Configuration Example
Customer Premises (CP)
Systems
10.1.3.2
Core
Router
155.1.3.1Console Port
|
| Connection | |
DSL |
| Ethernet | |
WAN |
| eth1 | |
dsl1 | DSL | ||
155.1.3.2 | 10.1.3.1 | ||
Router |
Hub
Web Server |
10.1.3.3 |
10.1.3.4
Telnet
Server
10.1.3.8
| |
|
|
NAPT Mapping Public IP Addresses | Private IP Addresses |
|
|
inbound 155.1.3.2, destination Port 23 | 10.1.3.4 (Telnet server) |
|
|
inbound 155.1.3.2, destination Port 80 | 10.1.3.2 (Web server) |
|
|
In this NAPT example:
The DSL router is configured for NAPT using a single public IP address.
When using NAPT, the DSL interface (dsl1) must be numbered because the Ethernet interface will be configured within the private address space.
NAPT static mapping is configured for a server (Telnet port 23) on the Ethernet interface, but the address is publicly available.
The commands and syntax for this example are:
ip routing enable
ifn address eth1 10.1.3.1 255.255.255.0 ifn address dsl1 155.1.3.2 255.255.255.0 ip route create upstream eth1 155.1.3.1 nat napt address 155.1.3.2
nat napt map tcp 10.1.3.4 23 nap napt map tcp 10.1.3.2 80 nat napt enable
November 2003 |