10-11-2011 05:10 AM - edited 03-07-2019 02:43 AM
hi all,
i was asked to do port forwarding for a range of UDP ports on our router. inside host is 192.168.2.150 and it needs to be mapped to a public IP 203.120.209.X. what i did was the below:
Router(config)#ip nat pool PORTFWD 192.168.2.150 192.168.2.150 netmask 255.255.255.0 type rotary
Router(config)#access-list 100 permit udp any any range 10000 10200
Router(config)# ip nat inside destination list 100 pool PORTFWD
my question is how can i ensure the 192.168.2.150 is mapped to 203.120.209.X with this kind of setup? thanks in advance!
10-11-2011 05:30 AM
Hi,
Why don't you do like this:
route-map UDPPORTS
match access-group 100
ip nat inside source static 192.168.1.50 203.120.209.x route-map UDPPORTS
Then try to connect from outside to the public address on corresponding port, do it for 2 or 3 ports to test and do sh ip nat translation to see the dynamic entries created.
Regards.
Alain.
10-11-2011 07:00 AM
Hi Alain,
I was considering using a route map but wasn't sure how. Let me try this out when I get back to work. Thanks a lot!
Sent from Cisco Technical Support iPhone App
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