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

Separate Default Gateways for each VLAN on a 3750 switch

What is the best method to configure a different DG for each VLAN.I have two internet routers connected to the switch and I would like to route specific VLANs over each ISP connection. Can I simply define a unique DG for each VLAN interface ?

Everyone's tags (3)
5 REPLIES
Cisco Employee

Re: Separate Default Gateways for each VLAN on a 3750 switch

You can configure PBR to achieve that.

New Member

Re: Separate Default Gateways for each VLAN on a 3750 switch

Thanks, will I be able to set and apply the route-map to a VLAN interface,  instead of a physical port ?

New Member

Re: Separate Default Gateways for each VLAN on a 3750 switch

Yes

you can apply PBR on vlan interface

New Member

Re: Separate Default Gateways for each VLAN on a 3750 switch

I have created the following ACL and Route-map, to route all traffic in VLAN 161 to Router 192.168.161.19. However the last command does not work, how do I apply the route-map policy to the vlan interface 161 ? Also will the other Vlans continue to use the switch's Default Gateway?

!! define port for ATT Router
int gigabitethernetn/n/n
desc ATT EVPN Router
no switchport

!! create ACL to match traffic
access-list 101 permit ip 192.168.161.0 0.0.0.255 any

!! create route-map
route-map reroute161traffic permit 10
match ip address 101
set ip next-hop 192.168.161.19

!!! apply route-map to interface
int vlan161
ip policy route-map reroute161traffic (This does not work)

Cisco Employee

Re: Separate Default Gateways for each VLAN on a 3750 switch

What software image are you running? Only "IP Services" support PBR on switch.

2213
Views
0
Helpful
5
Replies
CreatePlease to create content