Scenario
R1 is the edge router of a small office. Gi0/0 faces the office LAN, 192.168.1.0/24, which uses private addresses. Gi0/1 faces the provider and owns the public address 203.0.113.2/29, with the provider router at 203.0.113.1. Every office PC must reach the Internet through that one address, and the web server 192.168.1.10 must also be reachable from outside at 203.0.113.3.
Topology
Requirements
- 1Gi0/0 is marked as the NAT inside interface
- 2Gi0/1 is marked as the NAT outside interface
- 3ACL 1 selects the office network 192.168.1.0/24 for translation
- 4PAT: translate ACL 1 onto the Gi0/1 address with overload
- 5A default route sends everything else to the provider router, 203.0.113.1
- 6Static NAT publishes the web server 192.168.1.10 as 203.0.113.3
R1 has addresses on both interfaces but no NAT and no route to the Internet. Type ? for the commands you can use. Start with: enable
R1> show running-config
CCNA lab · about 12 min
NAT: share one public address and publish a server
Mark the inside and outside interfaces, translate the whole office with PAT onto the outside address, add a default route and publish one server with static NAT.
This lab is included in the CCNA plans and in the free trial.