Multiple default routes

Answered Question
Dec 11th, 2009

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

I have this problem too.
0 votes
Correct Answer by Ganesh Hariharan about 6 years 12 months ago

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

Correct Answer by Jon Marshall about 6 years 12 months ago

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Correct Answer
Jon Marshall Fri, 12/11/2009 - 07:20

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

DennisV99_2 Fri, 12/18/2009 - 03:49

Jon, Ganesh.H,

Thanks.

I think PBR does what i'm looking for.

Jon,

It's a 4010

Actions

This Discussion