06-03-2023 08:29 AM
Hey, I am a student and new to Cisco packet tracer.
I have a question about NAT/PAT.
We have to configure NAT/PAT on our router to try to get to a server on the outside.
Only our LAN pool has to get to it.
I don't know if we must put it on router 3 or router 2?
Here is the network file.
Thanks in advance.
Solved! Go to Solution.
06-03-2023
10:31 AM
- last edited on
06-06-2023
03:32 AM
by
Translator
Hello @Student HoGent
R3 would be the right place.
But, you need to have route on the Internet Routers in order to reply to 192.168.x.x. You also need a static route on R3 pointing to Internet Router on network 64.100.x.x.x and then you can advertise this static route on the OSPF with
redistribute static
command.
Lastly you put the same IP address on the R3 interface and Internet router interface. I am adding the file down below for you reference.
06-03-2023
10:31 AM
- last edited on
06-06-2023
03:32 AM
by
Translator
Hello @Student HoGent
R3 would be the right place.
But, you need to have route on the Internet Routers in order to reply to 192.168.x.x. You also need a static route on R3 pointing to Internet Router on network 64.100.x.x.x and then you can advertise this static route on the OSPF with
redistribute static
command.
Lastly you put the same IP address on the R3 interface and Internet router interface. I am adding the file down below for you reference.
06-03-2023 10:44 AM
Thx @Flavio Miranda
I really appreciate that you helped me, I find NAT/PAT a difficult subject.
06-03-2023 10:53 AM
It is indeed. Not only for beginners but for everyone, believe me.
06-03-2023 03:38 PM
Hello
If this was relating to a real scenario network you would apply NAT on ALL 3 rtrs as each site LAN would most probably have none public routable addressing, However in this case as RTR2 is facing the "internet" this would be the place to initiate NAT so to hide the internal networks of all 3 rtrs (including the TFTP server) which are presently reachable to each other via OSPF.
Please see attached working PT file, It will show amended NAT/PAT and ACL statements, in addition to an dynamically advertised default route via OSPF towards RTRs 1& 3 allowing all Lan users access to the internet via dynamic NAT and also internet access towards the tftp server via static PAT.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide