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

How to configure default routing so different default routes are used based on the source of the packet (Policy Based Routing)

Core Issue

How to configure default routing so different default routes are used based on the source of the packet, such as based on which devices or users are originating the packets.

The default route is already configured on the router, and you want to policy route certain users to different Internet Service Providers (ISPs).

Resolution

Issue the set ip default next-hop command in the route-map command configuration mode.

Configure Policy-Based Routing (PBR) specifying a different default IP next hop for interested traffic by issuing a route-map command. This is a sample configuration for the traffic sourced from 10.1.1.0/24, coming in on interface Ethernet0, policy routed to next-hop x.x.x.x:

int Ethernet0

ip address 10.1.1.1 255.255.255.0

ip policy-map new-gateway

route-map new-gateway permit 10

match ip address 10

set ip default next-hop x.x.x.x

access-list 10 permit 10.1.1.0 0.0.0.255

Note: The traffic that does not match the policy uses the default route configured in the router.

For more information on PBR, refer to

Configuring IP Routing Protocol-Independent Features

Policy Based Routing.

For more information on default routes, refer to Configuring a Gateway of Last Resort Using IP Commands.

Problem Type

Policy Based Routing (PBR) issues

Configure

RP (Routing Protocol) Related Technologies

Policy-based routing
Version history
Revision #:
1 of 1
Last update:
‎06-22-2009 04:08 PM
Updated by:
 
Labels (1)