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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Multiple default routes

Hi,

Is there a way to let a router choose one of multiple default routes depending of source ip address or source interface?

I have a C4015 with multiple vlans. There is a firewall connected to this switch. The C4015 has a static route (0.0.0.0/0) pointed to the interface of the firewall.

For testing purposes i have a second firewall interface (with an ip adress in a different subnet) connected to the switch.

Now i want traffic to 0.0.0.0/0 with a specific source address or a specific source vlan interface to be routed to the second (test) firewall interface.

thanks in advance

2 ACCEPTED SOLUTIONS

Accepted Solutions
Hall of Fame Super Blue

Re: Multiple default routes

DennisV99 wrote:

Hi,

Is there a way to let a router choose one of multiple default routes depending of source ip address or source interface?

I have a C4015 with multiple vlans. There is a firewall connected to this switch. The C4015 has a static route (0.0.0.0/0) pointed to the interface of the firewall.

For testing purposes i have a second firewall interface (with an ip adress in a different subnet) connected to the switch.

Now i want traffic to 0.0.0.0/0 with a specific source address or a specific source vlan interface to be routed to the second (test) firewall interface.

thanks in advance

Dennis

Yes, you can use PBR (Policy Based Routing) to do this which allows you to set the next-hop based on source IP address.

Just to clarify - what exactly is your switch - haven't heard of a C4015 ?

Jon

Re: Multiple default routes

Yes for your requirement go with PBR check out the below link hope this will help you

http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a008009481d.shtml

Regards

Ganesh.H

3 REPLIES
Hall of Fame Super Blue

Re: Multiple default routes

DennisV99 wrote:

Hi,

Is there a way to let a router choose one of multiple default routes depending of source ip address or source interface?

I have a C4015 with multiple vlans. There is a firewall connected to this switch. The C4015 has a static route (0.0.0.0/0) pointed to the interface of the firewall.

For testing purposes i have a second firewall interface (with an ip adress in a different subnet) connected to the switch.

Now i want traffic to 0.0.0.0/0 with a specific source address or a specific source vlan interface to be routed to the second (test) firewall interface.

thanks in advance

Dennis

Yes, you can use PBR (Policy Based Routing) to do this which allows you to set the next-hop based on source IP address.

Just to clarify - what exactly is your switch - haven't heard of a C4015 ?

Jon

Re: Multiple default routes

Yes for your requirement go with PBR check out the below link hope this will help you

http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a008009481d.shtml

Regards

Ganesh.H

New Member

Re: Multiple default routes

Jon, Ganesh.H,

Thanks.

I think PBR does what i'm looking for.

Jon,

It's a 4010

482
Views
0
Helpful
3
Replies