NAT Question
NightShade03
Member Posts: 1,383 ■■■■■■■□□□
in CCNA & CCENT
I understand NAT and how it works although there is one thing that has me confused. The book question is "Any request on any port from the inside global address must be forwarded to the internal web server. The internal web server is 192.168.1.50 and the inside global is 5.1.1.10".
A: ip nat inside source static 192.168.1.50 5.1.1.10
What I don't get is the source part. Does source just mean that any "Source" coming from the inside global address just gets forwarded to the internal web server?
NOTE: The question doesn't specify ports which is what may be throwing me off.
A: ip nat inside source static 192.168.1.50 5.1.1.10
What I don't get is the source part. Does source just mean that any "Source" coming from the inside global address just gets forwarded to the internal web server?
NOTE: The question doesn't specify ports which is what may be throwing me off.
Comments
-
sandman748 Member Posts: 104Correct me if I'm wrong here but does this command not statically map that internal ip address to the ip address of the outgoing interface? Therefore anything going out from 192.168.1.50 would become 5.1.1.10 and anything coming in on 5.1.1.10 is translated back to 192.168.1.50.
The source part of the command indicated whats coming into the router. In this case a static ip address being 192.168.1.50 but it could also be used to reference an ACL
e.g. ip nat inside source list 10 - would reference any ip addresses included in ACL 10Working on CCIE Collaboration:
Written Exam Completed June 2015 ~ 100 hrs of study
Lab Exam Scheduled for Dec 2015 -
Danny0990 Member Posts: 14 ■□□□□□□□□□NightShade03 wrote: »I understand NAT and how it works although there is one thing that has me confused. The book question is "Any request on any port from the inside global address must be forwarded to the internal web server. The internal web server is 192.168.1.50 and the inside global is 5.1.1.10".
A: ip nat inside source static 192.168.1.50 5.1.1.10
What I don't get is the source part. Does source just mean that any "Source" coming from the inside global address just gets forwarded to the internal web server?
NOTE: The question doesn't specify ports which is what may be throwing me off.
the 'source' is just identifying the address translation
ip nat inside source static
inside_local_source_IP_address to inside_global_source_IP_address
and vice-versa