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?
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.
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
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.
This is actually a pretty cool feature, i didn't even know it existed until I was looking for a solution to advertise a subnet (prefix in BGP talk), only if a certain condition existed. This is exactly what conditional advertisements does
j ai une question j ai achete un routeur cisco 887VA-k9 , je le configuré avec la configuration ci- dessous
si je le lier avec mon pc portable sur l un de ses ports directement ça marche toute est bien ( la connexion internet + m...
Attached policy provides CLI access to the Cisco 4G router over text messaging. Two files are in the attached .tar file:
2. PDF with instructions on how to load and use the .tcl file.