Cisco WS-C3560-48PS-S Software Configuration Manual page 681

Software configuration guide
Hide thumbs Also See for WS-C3560-48PS-S:
Table of Contents

Advertisement

Chapter 30
Configuring IP Unicast Routing
Beginning in privileged EXEC mode, follow these steps to configure PBR:
Command
Step 1
configure terminal
Step 2
route-map map-tag [permit | deny] [sequence
number]
Step 3
match ip address {access-list-number |
access-list-name} [...access-list-number |
...access-list-name]
Step 4
set ip next-hop ip-address [...ip-address]
Step 5
exit
Step 6
interface interface-id
Step 7
ip policy route-map map-tag
Step 8
ip route-cache policy
Step 9
exit
Step 10
ip local policy route-map map-tag
Step 11
end
Step 12
show route-map [map-name]
Step 13
show ip policy
78-16156-01
Configuring Protocol-Independent Features
Purpose
Enter global configuration mode.
Define any route maps used to control where packets are
output, and enter route-map configuration mode.
map-tag—A meaningful name for the route map. The ip
policy route-map interface configuration command uses this
name to reference the route map. Multiple route maps might
share the same map tag name.
(Optional) If permit is specified and the match criteria are
met for this route map, the route is policy-routed as controlled
by the set actions. If deny is specified, the route is not
policy-routed.
sequence number (Optional)— Number that shows the
position of a new route map in the list of route maps already
configured with the same name.
Match the source and destination IP address that is permitted
by one or more standard or extended access lists.
If you do not specify a match command, the route map applies
to all packets.
Specify the action to take on the packets that match the
criteria. Set next hop to which to route the packet (the next hop
must be adjacent).
Return to global configuration mode.
Enter interface configuration mode, and specify the interface
to configure.
Enable PBR on a Layer 3 interface, and identify the route map
to use. You can configure only one route map on an interface.
However, you can have multiple route map entries with
different sequence numbers. These entries are evaluated in
sequence number order until the first match. If there is no
match, packets are routed as usual.
(Optional) Enable fast-switching PBR. You must first enable
PBR before enabling fast-switching PBR.
Return to global configuration mode.
(Optional) Enable local PBR to perform policy-based routing
on packets originating at the switch. This applies to packets
generated by the switch and not to incoming packets.
Return to privileged EXEC mode.
(Optional) Display all route maps configured or only the one
specified to verify configuration.
(Optional) Display policy route maps attached to interfaces.
Catalyst 3560 Switch Software Configuration Guide
30-73

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents