Showing results for 
Search instead for 
Did you mean: 

Multiple Default gateways for individual VLANS


I have a Catalyst 4506, running IOS 12.1. I currently have a default route for all traffic to be forwarded to our current internet connection. We are putting in a second internet connection and i would like to have a default gateway to go to the second internet connection for one certain VLAN, and no others. Is this possible and if so how do i go about doing it.

3 Replies 3

Prashanth Krishnappa
Cisco Employee
Cisco Employee

You could set up Policy based routing..

Make sure you are running a newer IOS such as 12.2(18)EW2 since we have many PBR bug fixes

Here is an example

First set up access-list to match traffic

access-list 1 permit

access-list 2 permit

access-list 3 permit

Configure route-map statements

route-map students permit 10

match ip address 2

set ip default next-hop <<--First g/w


route-map admin permit 20

match ip address 1 3

set ip default next-hop <<--2nd g/w

Then apply these route maps to VLAN interfaces

interface Vlan1

ip address x.x.x.x

ip policy route-map students


interface Vlan2

ip address x.x.x.x

ip policy route-map admin

That is exactly what i want to do, my problem is this is a live network and i am setting up this gateway as a test, I want to test our firewall on the network, but not in the live VLAN, is it possible to do the route map without bothering the existing routes?

Just create a test vlan and test it there first....


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