Beruflich Dokumente
Kultur Dokumente
Cisco Support Community / Network Infrastructure / Network Infrastructure Documents / IPv6 Policy Based Routing (PBR) Options
All community
09-17-2012 05:52 AM
ashirkar
Introduction
Prerequisite:
Policy Based routing packet forwarding overview
Background:
Topology Diagram:
Veri cation:
Veri cation Command:
Reference:
Introduction
Policy Based Routing (PBR) provides a exible means of routing packets by con guring de ned policy for tra c ows.
PBR gives more control over routing, for example in case of high-cost link; you can specify a path for certain tra c as
priority tra c. Normal routing is destination based but PBR gives you exibility in the terms of routing packets by
extending and complementing the existing mechanisms provided by routing protocols.
3) Input interface
This document explains with an example how to do IPV6 policy routing to control tra c in internetwork.
Prerequisite:
Understanding of route-map
https://supportforums.cisco.com/t5/network-infrastructure-documents/ipv6-policy-based-routing-pbr/ta-p/3134085 1/8
1/19/2018 IPv6 Policy Based Routing (PBR) - Cisco Support Community
It is similar like if.....then statement, if certain condition gets true then we does something.
Example:
Match ipv6 address/prefix-list.. (Matching of IPV6 packet based on access-list or pre x-list)
Match length.. (We can also match the based on its length in bytes)
Set interface …….. (Use only when you have point to point interface)
D) (Optional) con gure local PBR; Packets generated by router are not policy routed. If you want to policy route tra c
generated by router, you must globally use the following command.
E) CEF PBR for IPV6……No special con guration is required to enable cef PBR for IPv6 it will enable default once we
enable cef and PBR on the router.
Background:
In this network setup a policy route is con gured on R1 to control pre xes that exist on SW1 (i.e. vlan2 and vlan3).
https://supportforums.cisco.com/t5/network-infrastructure-documents/ipv6-policy-based-routing-pbr/ta-p/3134085 2/8
1/19/2018 IPv6 Policy Based Routing (PBR) - Cisco Support Community
1) In First instance match the packet from the VLAN2 of SW1 and set the next hop to be R2 global address 2222::2
2) In second instance match the packet from the VLAN3 of SW1 and set the next hop to be R3 global address 2222::3
Topology Diagram:
The routing table on R1 shows there are two paths for R1 to reach the pre x present on R4 end (2001::1, 2001::2).
O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
https://supportforums.cisco.com/t5/network-infrastructure-documents/ipv6-policy-based-routing-pbr/ta-p/3134085 3/8
1/19/2018 IPv6 Policy Based Routing (PBR) - Cisco Support Community
R1#traceroute 2001::1
1 2222::3 48 msec
First con gure ipv6 access-list to match ipv6 source subnets i.e vlan 2 and vlan 3, and then con gure route-map with 2
instances, where rst will match vlan 2 tra c and send it to R2 and second matches vlan 3 tra c send to R3.Once you
create route-map you need to apply this to incoming interface, In our case it's fa0/1.
R1(con g-ipv6-acl)#exit
R1(con g)#
R1(con g)#
R1(con g-route-map)#exit
R1(con g)#
R1(con g)#
https://supportforums.cisco.com/t5/network-infrastructure-documents/ipv6-policy-based-routing-pbr/ta-p/3134085 4/8
1/19/2018 IPv6 Policy Based Routing (PBR) - Cisco Support Community
R1(con g-if)#
Veri cation:
To test new policy, issue extended traceroute commands on SW1 for VLAN2 having source address 2012:0:0:1::1 and
destination address as 2001::1 (which is the subnet present on R router 4 (). The below output shows tra c passing
through R2 (2222::2)
Similarly, issue extended traceroute commands on SW1 for VLAN3 having source address 2012:0:0:2::1and destination
address as 2001::1 (which is the subnet present on R router 4. The below output shows tra c passing through R3
(2222::3)
R1#sh route-map
Match clauses:
Set clauses:
https://supportforums.cisco.com/t5/network-infrastructure-documents/ipv6-policy-based-routing-pbr/ta-p/3134085 5/8
1/19/2018 IPv6 Policy Based Routing (PBR) - Cisco Support Community
Match clauses:
Set clauses:
R1#
Reference:
Understanding Policy Routing
15 Helpful
Share
COMMENTS
09-29-2012 02:38 AM
fm network New Member
Good Explanation
10-06-2012 01:56 A
ashirkar Gold
Hello,
Regards,
Ashish Shirkar
10-14-2012 05:55 AM
akshay_w24 New Member
Excellent............
https://supportforums.cisco.com/t5/network-infrastructure-documents/ipv6-policy-based-routing-pbr/ta-p/3134085 6/8
1/19/2018 IPv6 Policy Based Routing (PBR) - Cisco Support Community
11-04-2012 11:44 PM
SunilKhanna Silver
Gold
11-07-2012 05:09 A
ashirkar
Dear Sunil,
Regards,
Ashish Shirkar
troubleshoot catalyst_6500 con guration error_message catalyst_6000 ios catalyst_4500 faq catalyst_3750 ospf
ip_routing catalyst_4000 vlan cat_os bgp routing ipv6 catos router supervisor catalyst_3550 memory_issues
3709 15
VIEWS HELPFUL
5
COMMENTS
Recommended
https://supportforums.cisco.com/t5/network-infrastructure-documents/ipv6-policy-based-routing-pbr/ta-p/3134085 7/8
1/19/2018 IPv6 Policy Based Routing (PBR) - Cisco Support Community
Top
Facebook
Twitter
+
Google
YouTube
LinkedIn
Instagram
Contacts Privacy Statement
Feedback Cookie Policy
Site Map Trademarks
Terms & Conditions Help
https://supportforums.cisco.com/t5/network-infrastructure-documents/ipv6-policy-based-routing-pbr/ta-p/3134085 8/8