cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3191
Views
0
Helpful
5
Replies

Separate Default Gateways for each VLAN on a 3750 switch

akeyr
Level 1
Level 1

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 ?

5 Replies 5

Jennifer Halim
Cisco Employee
Cisco Employee

You can configure PBR to achieve that.

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

Yes

you can apply PBR on vlan interface

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)

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

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:

Review Cisco Networking products for a $25 gift card