Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

Routing using port number

Is there a way to route an ip addresse based on which port the traffic is coming out of. Example; 192.168.0.100:80 to 10.0.0.100, 192.168.0.100:4032 to 10.0.0.101?

2 REPLIES
Bronze

Re: Routing using port number

New Member

Re: Routing using port number

Yes you can

first define extended access list to match your port numbers

for example:

ip access-list extended test

permit tcp/udp src dst eq port (applicable only on TCP/UDP protocols)

route-map test

match ip address test (name of the extended access list)

next apply that on the iface you want via ip policy route-map test

and you are ready to go :)

95
Views
0
Helpful
2
Replies
CreatePlease to create content