05-05-2021 03:29 AM
Is there a way to perform conditional NAT similar to way its explained in this article https://www.ciscozine.com/using-route-maps-for-conditional-nat/ with the Nexus 9K platform?
It doesn't appear I can use the route-map command on my NAT rules.
Thanks
05-05-2021 04:00 AM
Nexus is more of Switch, its not like Full blown Router to give all options as expected.
But good nexus do support some NAT Features - but it is limited
05-05-2021 07:25 AM
Hello,
the 'route-map' keyword is not supported (check the link below for the command reference) but you can specify an ACL...not sure what that results in...
So if you take the example from Ciscozine, the corresponding syntax on the Nexus would look like this:
ip access-list extended client-serverweb
permit ip host 172.16.0.5 host 10.0.1.100
ip access-list extended client-serverssh
permit ip host 172.16.0.5 host 192.168.2.100
!
ip nat inside source static 172.16.0.5 172.16.100.5 list client-serverweb
ip nat inside source static 172.16.0.5 172.16.200.5 list client-serverssh
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