Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Changing destination port based on source address

Hi,

I was hoping someone could help me configure my Cisco 800 series.

I have an internal netowrk on the 192.168.0.x subnet and my router connects it to a remote network on subnet 172.16.1.x

All of my local computers connect to a specific computer on the remote network (172.16.1.5) on port 2500, however one coomputer needs this connection redirecting to a different port (2501). Hence

If computer A with IP address 192.168.0.2 connects to 172.16.1.5 on port 2500 the connection will happen as normal.

If computer B with IP address 192.168.0.3 connects to 172.16.1.5 on port 2500 the connection is rerouted to destination 172.16.1.5 on port 2501

I think I need to use ip nat outside source static tcp but I'm not entirely sure of the syntax - please help!

Martin

2 REPLIES

Re: Changing destination port based on source address

Hi

I feel you can deploy static NAT at the destination site.

The command syntax will be like this ..

ip nat inside source static tcp x.x.x.x 2501 172.16.1.5 2500

ip nat inside source static { tcp | udp }

x.x.x.x -- you can make use of one unusable ip from the 172.16.1.0 block.

So from the pc (192.168.0.3)u can access x.x.x.x(new ip) on port 2501 which will inturn get redirected to ip 172.16.1.5 port 2500.

regds

New Member

Re: Changing destination port based on source address

Hi,

I do not have access to the router at the other end of the link, and all computers at this end (due to a software limitation) must attempt to contact the same IP and port at the remote end, however 192.168.0.3 needs its destination port changing from 2500 to 2501. This is not possible in the software being used, so I was hoping to do this at the router.

Martin

189
Views
0
Helpful
2
Replies
CreatePlease to create content