How to route different ports to the same ip address

Unanswered Question
Sep 18th, 2007

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
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
sundar.palaniappan Tue, 09/18/2007 - 13:17

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.


Actions

This Discussion