Static NAT configuration: ip nat inside/outside, debug ip packet and verification
Sign in to read this lesson
In the lab PC1 and WEB are routers turned into hosts with no ip routing, pointing to SERHED with ip default-gateway. First, without NAT, debug ip packet on WEB shows that the packet's source is 10.50.0.11. Then on SERHED Gi0/0 is set as ip nat inside, Gi0/1 as ip nat outside, and the command ip nat inside source static 10.50.0.11 203.0.113.11 is entered. show ip nat translations shows the static entry. After NAT, WEB receives the packets from 203.0.113.11 and sends its replies to that address.
What you will learn
- Lab trick:
no ip routingturns a router into a host; it then needs anip default-gateway.show ip routethen shows the Default gateway instead of a routing table. debug ip packetshows the IP packets a router receives and sends (s=source,d=destination). Don't use it on a production network: it loads the router.- Interface roles first: the inside side is
ip nat inside, the outside side isip nat outside. ip nat inside source static 10.50.0.11 203.0.113.11: a permanent inside local → inside global mapping.show ip nat translations: the static entry appears with---. After NAT, the source in WEB's debug output is 203.0.113.11.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.