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

R1Provider

Requirements

  1. 1Gi0/0 is marked as the NAT inside interface
  2. 2Gi0/1 is marked as the NAT outside interface
  3. 3ACL 1 selects the office network 192.168.1.0/24 for translation
  4. 4PAT: translate ACL 1 onto the Gi0/1 address with overload
  5. 5A default route sends everything else to the provider router, 203.0.113.1
  6. 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.

Start the free trial Try the free VLAN lab Today's free lab

All labs

About this lab

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.

About 12 minutes. Included in the CCNA plans and the free trial.

Questions about this lab

Is this a real Cisco router?

No. It is a small simulator written by CertAce. It understands a handful of commands and keeps the state of one router, so you can practise the ideas without lab gear. Real devices print more, and the exam may ask for things this lab does not cover. CertAce is not affiliated with Cisco.

What is the difference between NAT and PAT?

Basic NAT maps one private address to one public address. PAT, also called NAT overload, maps many private addresses to one public address and tells connections apart by port number. Most home and small-office routers do PAT.

Why use an ACL in a NAT rule?

The ACL chooses which inside addresses are eligible for translation. It does not block anything. The rule list 1 in 'ip nat inside source list 1 ...' refers to that selector.

What are the four NAT address names?

Inside local is the private address of the host. Inside global is the public address it is translated to. Outside global is the real address of the remote host, and outside local is how the remote host looks from inside. In this lab, 192.168.1.10 is the inside local and 203.0.113.3 its inside global.

CertAce is not affiliated with or endorsed by Cisco Systems. CCNA and Cisco are trademarks of Cisco Systems, Inc. The simulator and every command output here were written by CertAce.