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

How to route different ports to the same ip address

I currently have a setup where a router needs to route http and https to an ip address and 50, 51,and 500 to another ip, but they are the same ip (don't ask). Is it possible to specify ports when routing traffic?

1 REPLY

Re: How to route different ports to the same ip address

What you are asking can be done with Policy Routing.

Here's a sample configuration that would give you an idea of the configuration required.

int e0

ip policy route-map test

route-map test permit 10

match ip address 100

set ip next-hop 172.16.1.1

!

route-map test permit 20

match ip address 101

set ip next-hop 192.168.1.1

access-list 100 permit tcp any any eq 80

access-list 100 permit tcp any any eq 443

access-list 101 permit tcp any any eq 50

access-list 101 permit tcp any any eq 51

access-list 101 permit tcp any any eq 500

HTH

Sundar

PS: The title of your posting is conflicting with the actual requirement. If you are trying to route traffic destined to certain ports to one IP and other ports to another IP then it can be accomplished as shown above. However, if you have a different requirement can you please clarify that.

307
Views
0
Helpful
1
Replies
CreatePlease to create content