02-04-2020 06:06 AM
I been using static nat and has been cumbersome to manage. For example I will do a /24 static nat to make all the NATs are known for monitoring. Question came up that can we NAT a subnet and they will always line up with last octet the same
example
ip nat inside source static network 10.10.10.0 192.168.1.0 /24
10.10.10.1 will always get 192.168.1.1
10.10.10.240 will always get 192.168.1.240
Solved! Go to Solution.
02-04-2020 07:46 AM
Hello
@jfeo wrote:
Ok that is how I can match the end host. Can I apply this do any VRF?
ip nat inside source list 100 pool Nat-Host vrf xxx
02-04-2020 07:00 AM
Hello,
I don't think this is possible. If you want the last octets to match, you need individual entries:
ip nat inside source static 10.10.10.1 192.168.1.1
ip nat inside source static 10.10.10.2 192.168.1.2
ip nat inside source static 10.10.10.3 192.168.1.3
etc.
etc.
etc.
02-04-2020 07:12 AM - edited 02-04-2020 07:17 AM
Hello
@jfeo wrote:
I been using static nat and has been cumbersome to manage. For example I will do a /24 static nat to make all the NATs are known for monitoring. Question came up that can we NAT a subnet and they will always line up with last octet the same
Yes you can , either statically or dyamically
Example of Dynamic nat matchng host
access-list 100 permit ip 10.10.10.0 0.0.0255 any
ip nat pool Nat-Host 192.168.1.2 192.168.1.253 prefix-length 24 type match-host
ip nat inside source list 100 pool Nat-Host
The above nat example will nat inside local hosts residing in the 10.10.10.0 /24 subnet to its related natted inside global ip address of 192.168.1.x
02-04-2020 07:34 AM
Ok that is how I can match the end host. Can I apply this do any VRF?
02-04-2020 07:46 AM
Hello
@jfeo wrote:
Ok that is how I can match the end host. Can I apply this do any VRF?
ip nat inside source list 100 pool Nat-Host vrf xxx
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