NAT terms: inside local, inside global, outside local, outside global
This lesson is open to everyone. The other lessons open with a package: sign in or sign up, then choose a package.
Key points
- Inside / outside: says where the host is. The NAT router's interfaces are defined with
ip nat insideandip nat outside. - Local / global: says from where the address is seen: local = from inside, global = from outside.
- Inside local: the inside host's own address (for example 10.50.0.11). Inside global: the public address that host appears as outside (for example 203.0.113.11).
- Outside global: the outside host's real address. Outside local: the outside host's address as seen from inside. With ordinary inside source NAT these two are the same.
- These four terms are the columns of the
show ip nat translationsoutput: Pro, Inside global, Inside local, Outside local, Outside global.
Why four terms?
When you configure NAT and look at the show ip nat translations output, you will see four columns: Inside global, Inside local, Outside local, Outside global. Before moving on to the labs, you need to understand these terms precisely.
It helps to think about the two words separately:
| Word | What it means |
|---|---|
| Inside | The host is in our network (on the inside of the NAT router) |
| Outside | The host is in an outside network (for example the Internet) |
| Local | This is how the address is seen from the inside network |
| Global | This is how the address is seen from the outside network |
The interfaces of a NAT router are defined as inside or outside with NAT commands, and the networks attached to them take the same names.
The four addresses
In the static NAT example from the previous lesson, PC1 (10.50.0.11) is translated to 203.0.113.11 and visits the WEB server at 203.0.113.80.
| Term | Cisco's definition (in simple words) | In the example |
|---|---|---|
| Inside local | The IP address assigned to a host on the inside network | 10.50.0.11 (PC1's own address) |
| Inside global | A legitimate (public) address from the ISP; one or more inside local addresses appear outside as this address | 203.0.113.11 |
| Outside local | The IP address of an outside host as it appears to the inside network | 203.0.113.80 |
| Outside global | The real IP address assigned to an outside host by its owner | 203.0.113.80 (WEB's own address) |
Note: inside global is not simply "the address of the router's outside interface". It is the address an inside host appears as outside. With PAT it may indeed be the router's outside interface address. With static and dynamic NAT, however, it is a separate public address or an address from the pool.
Why are outside local and outside global the same?
With ordinary inside source NAT we only translate the addresses of inside hosts and don't touch the addresses of outside hosts. So WEB's real address (outside global) and the address it appears as from inside (outside local) are both 203.0.113.80.
NAT can translate outside addresses too. For example, when inside hosts ping a certain address, the NAT router could forward it to WEB. Then WEB would appear with a different address from inside, and outside local and outside global would differ. This goes beyond CCNA level; here outside local and outside global will be the same.
Reading a translation entry
In the next lessons you will see entries like these:
Pro Inside global Inside local Outside local Outside global icmp 203.0.113.100:1 10.50.0.11:1 203.0.113.80:1 203.0.113.80:1 --- 203.0.113.100 10.50.0.11 --- ---
| Column | Meaning |
|---|---|
| Pro | Protocol: icmp, tcp, udp. A line with --- is just an address mapping (no port) |
| Inside global | The address the inside host appears as outside (plus the port or ICMP identifier) |
| Inside local | The inside host's own address |
| Outside local | The outside host's address as seen from inside |
| Outside global | The outside host's real address |
The first line shows one specific ICMP connection, and the second line (---) shows the 10.50.0.11 ↔ 203.0.113.100 address mapping.
Check yourself
5 questions · answers are shown instantly · 3 correct answers complete the lesson
1What is an inside local address?
2PC1 (10.50.0.11) appears outside as 203.0.113.11. Which term is 203.0.113.11?
3What do the words "local" and "global" mean?
4With ordinary inside source NAT, how do outside local and outside global addresses compare?
5In which command's output do we see these four terms as columns?
Comments
Sign in to comment.