12-21-2018 07:53 PM - edited 02-21-2020 08:36 AM
When scripting on a router to translate the following network's addresses to 192.168.x.x/24 addresses, which commands should be used?
172.16.4.0/24 to 192.168.1.0/24
The NAT pool is for the entire network.
This can exclude the ACL statement since I know how to do it.
What I need to know is what the NAT pool statement is supposed to be and the source list statement's format.
Thanks
Nader
12-21-2018 08:15 PM
Hi @NaderHussai,
I hope this is what you mean:
R(config)#ip nat pool <name> 172.16.4.0 172.16.4.255 netmask 255.255.255.0
R(config)#access-list <n°> permit 192.168.1.0 0.0.0.255
R(config)#ip nat inside source list <n°> pool <name>
Regards
01-02-2019 05:49 PM
01-02-2019 06:56 PM
Hi @NaderHussain,
Imagining the rest of your network, I propose these changes:
router ospf 6
network 172.16.12.4 0.0.0.3 area 2 <- remove this (the public network should not be included in the internal routing protocol)
network 192.168.5.0 0.0.0.3 area 0 <- change to area 0
network 192.168.4.0 0.0.0.255 area 0 <- add this line
ip nat pool PoolA 172.16.12.5 172.16.12.6 netmask 255.255.255.252 <- change the public IPs
access-list 5 permit 192.168.5.0 0.0.0.3
access-list 5 permit 192.168.4.0 0.0.0.255 <- add this line
Regards
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