01-23-2009 09:53 AM - edited 03-06-2019 03:37 AM
I need to have 2 static NAT statements to one inside IP address for FTP on a 6500. Is this possible? If so, what is the command syntax?
Thanks.
Solved! Go to Solution.
01-23-2009 01:34 PM
A route-map allows you to do policy NAT. Policy NAT gives you the ability in your case, to define the NAT based on the source IP addresses accessing the FTP server.
So if one set of source IP addresses needed to access the FTP server on one public IP and another set of source addresses (totally different source IP's) needed to access the FTP server on the other one then you could do it.
So are the source IP addresses like this or could it be any source IP address accessing either public IP address, in which case you can't do it.
Jon
01-23-2009 12:21 PM
I assume you are talking about static natting in your firewall. If so, you cannot PAT the same port to the same address.
regards,
01-23-2009 12:45 PM
I am talking about static NAT in a 6500 switch.
01-23-2009 12:59 PM
Mike
You can't NAT two IP addresses to the same private IP address on the same port because the switch has no way of knowing which private to public IP address you want to use - remember static NAT is bi-directional so if a connection was initiated from the private address how would the switch know which public IP address to map it to.
Jon
01-23-2009 01:13 PM
Seperate ports on the 6500. Eg.
Port 1 --- Outside network
Port 2 --- Different outside network
Port 3 --- Inside network
01-23-2009 01:14 PM
Sorry Mike i'm a bit confused. When i talked about ports i meant TCP ports not physical switch ports. Are you talking about physical switch ports ?
Jon
01-23-2009 01:24 PM
Well, both. They both have to be NATed to an internal FTP server. So outside FTP 1 (X.X.X.X) and outside FTP 2 (Y.Y.Y.Y) both need to go to inside FTP address (Z.Z.Z.Z). So I see that there is a route-map available on the static nat commands. Was hoping this was the way to do it, if any.
01-23-2009 01:34 PM
A route-map allows you to do policy NAT. Policy NAT gives you the ability in your case, to define the NAT based on the source IP addresses accessing the FTP server.
So if one set of source IP addresses needed to access the FTP server on one public IP and another set of source addresses (totally different source IP's) needed to access the FTP server on the other one then you could do it.
So are the source IP addresses like this or could it be any source IP address accessing either public IP address, in which case you can't do it.
Jon
01-23-2009 02:04 PM
Jon,
That is what I am trying to do. It is not any source IP addresses, it is specific ones (from seperate networks) trying to get to the same FTP server. I just don't know the syntax on the 6500. I have only done it on ASA.
Mike
01-23-2009 02:10 PM
Jon,
I found this document.
http://www.cisco.com/en/US/docs/ios/12_2t/12_2t4/feature/guide/ftnatrt.html#wp1024922
This is what I needed to do. Thanks for pointing me in the right direction.
Mike
01-23-2009 02:14 PM
Mike
Was just about to send you that link :-)
Thanks for the rating.
Jon
01-23-2009 02:29 PM
Mike,
Thanks for sharing the link.
Regars,
01-23-2009 01:04 PM
This applies to switches as well.
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