Showing results for 
Search instead for 
Did you mean: 

HTTP redirect using a Cisco 3750 switch



I have tried search but cound found anything for the 3750 switch about how to redirect HTTP, HTTPS & SMTP traffic to altenative gateway, than our standard gateway on our network, so here goes:

The network that need the HTTP, HTTPS and SMTP traffic redirect is and should be redirect to where as all other traffic need to be direct to

Can the 3750 switch do this typo of refirect and if how?? Im pulling my hair out here as I can find anything on the Cisco site stating how or even if it is possible!  Any help on this would be appreciated. 

2 Replies 2

Jon Marshall
VIP Community Legend VIP Community Legend
VIP Community Legend


I haven't tried using PBR sending the packets back out of the same vlan interface but you could try this -

Note that there are a couple of provisos

1) the switch must have IP Services image - IP Base does not support PBR

2) the switch must be running the routing template "sh sdm prefer" will show what template you are using. If you need to enable the routing template then the switch requires a reboot.

3) obviously the switch must be running ip routing

if the above are met then try this PBR config -

access-list 101 permit tcp eq 25 any

access-list 101 permit tcp eq 80 any

access-list 101 permit tcp eq 443 any

route-map PBR permit 10

match ip address 101

set ip next-hop

int vlan xxx

ip address 192.168.5.x

ip policy route-map PBR

the above assumes you have a default route pointing to so you only have to PBR the destined traffic.


There is also a good document available here explaining how to configure and setup PBR with 3560/3750 switches

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers