Policy-Based Routing Configuration Examples - Cisco Catalyst 4500 Series Software Configuration Manual

Cisco ios xe release 3.9.xe and cisco ios release 15.2(5)ex
Hide thumbs Also See for Catalyst 4500 Series:
Table of Contents

Advertisement

Policy-Based Routing Configuration Examples

Policy-Based Routing Configuration Examples
The following sections provide PBR configuration examples:
For information on how to configure policy-based routing, see the section
Configuration Tasks"
Equal Access
The following example provides two sources with equal access to two different service providers.
Packets arriving on interface fastethernet 3/1 from the source 1.1.1.1 are sent to the switch at 6.6.6.6 if
the switch has no explicit route for the destination of the packet. Packets arriving from the source 2.2.2.2
are sent to the switch at 7.7.7.7 if the switch has no explicit route for the destination of the packet. All
other packets for which the switch has no explicit route to the destination are discarded.
Switch (config)# access-list 1 permit ip 1.1.1.1
access-list 2 permit ip 2.2.2.2
!
interface fastethernet 3/1
ip policy route-map equal-access
!
route-map equal-access permit 10
match ip address 1
set ip default next-hop 6.6.6.6
route-map equal-access permit 20
match ip address 2
set ip default next-hop 7.7.7.7
route-map equal-access permit 30
set default interface null0
If the packets you want to drop do not match either of the first two route-map clauses, then change |
Note
set default interface null0 to set interface null0.
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
42-16
match-length
set ip qos and set ipv6 qos
set ip tos and set ipv6 tos
set ip precedence and set ipv6 precedence
set ip df and set ipv6 df
set ipv6 next-hop recursive
set ipv6 next-hop verify-availability
Equal Access, page 42-16
Differing Next Hops, page 42-17
Deny ACE, page 42-17
in this chapter.
Chapter 42
Configuring Policy-Based Routing
"Policy-Based Routing

Advertisement

Table of Contents
loading

Table of Contents