<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic S-Series Policy Based Routing example targets all traffic in FAQs</title>
    <link>https://community.extremenetworks.com/t5/faqs/s-series-policy-based-routing-example-targets-all-traffic/m-p/42680#M125</link>
    <description>Article ID: 13123 &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Products&lt;/B&gt;&lt;BR /&gt;
S-Series &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Discussion&lt;/B&gt;&lt;BR /&gt;
There are three parts to a route map for Policy Based Routing (PBR):&lt;OL&gt; 
&lt;LI&gt;The ACL to define the traffic which will be affected. 
&lt;/LI&gt;&lt;LI&gt;The IP of the next hop to which the traffic will be sent. 
&lt;/LI&gt;&lt;LI&gt;The command applying it to the interface.&lt;/LI&gt;&lt;/OL&gt;
This config has an additional parameter under the interface stating 'policy priority only', which affects ACL-permit-matching traffic.&lt;UL&gt; 
&lt;LI&gt;'policy priority only' uses the PBR next hop, but if it is unavailable, drops the packet. 
&lt;/LI&gt;&lt;LI&gt;'policy priority first' uses the PBR next hop, but if it is unavailable, falls back to the routing table (FIB). This is the default behavior. 
&lt;/LI&gt;&lt;LI&gt;'policy priority last' uses the FIB, but if no route is found, falls back to the PBR next hop.&lt;/LI&gt;&lt;/UL&gt;
So here, ACL-permit-matching traffic crossing the interface is sent only to the next hop - and the routing table is ignored. By design, ACL-deny-matching traffic and non-matching traffic never uses the PBR next hop. &lt;BR /&gt;
&lt;BR /&gt;
The configuration below will send all traffic from the interface vlan.0.1313 to 172.26.5.21. The ACL 100 matches any IP traffic, thus will match all traffic that crosses the interface to which the route map is applied. If you used a more specific ACL (i.e. using more rules), the packet must match all the rules for the route map action to be applied to the packet. &lt;BR /&gt;
Note: You can use the same route map on multiple interfaces. &lt;BR /&gt;
&lt;BR /&gt;
# router configuration&lt;BR /&gt;
!&lt;BR /&gt;
# **** VRF default (default) ****&lt;BR /&gt;
configure terminal&lt;BR /&gt;
!&lt;BR /&gt;
 ip access-list extended 100&lt;BR /&gt;
  permit ip any any&lt;BR /&gt;
  exit&lt;BR /&gt;
 route-map policy PC permit 2&lt;BR /&gt;
  match ip address 100&lt;BR /&gt;
  set next-hop 172.26.5.21&lt;BR /&gt;
  exit&lt;BR /&gt;
!&lt;BR /&gt;
 interface vlan.0.1&lt;BR /&gt;
  ip address 172.26.5.20 255.255.255.0 primary &lt;BR /&gt;
  no shutdown&lt;BR /&gt;
  exit&lt;BR /&gt;
 interface vlan.0.1313&lt;BR /&gt;
  ip address 172.26.13.209 255.255.255.240 primary &lt;BR /&gt;
  ip policy route-map PC&lt;BR /&gt;
  ip policy priority only&lt;BR /&gt;
  no shutdown&lt;BR /&gt;
  exit&lt;BR /&gt;
 interface vlan.0.1314&lt;BR /&gt;
  ip address 172.26.13.225 255.255.255.240 primary &lt;BR /&gt;
  no shutdown&lt;BR /&gt;
  exit&lt;BR /&gt;
!&lt;BR /&gt;
#&lt;BR /&gt;
It is common to not want traffic that is being routed from one local interface to a second interface on the same device to go to the PBR-specified next hop, but rather would like it to be routed locally to avoid the extra hop. You do this by adding a sequence number in the PBR that denies that traffic. &lt;BR /&gt;
&lt;BR /&gt;
The configuration below contains this modification, so will send all traffic from the interface vlan.0.1313 to 172.26.5.21, &lt;I&gt;except&lt;/I&gt; if it is destined for locally connected subnet 172.26.13.224 255.255.255.240 (the command uses reverse masking). Route-map sequence 1 denies traffic destined for locally connected subnets so it will be routed via the routing table, without being sent to the next hop. &lt;BR /&gt;
&lt;BR /&gt;
# router configuration&lt;BR /&gt;
!&lt;BR /&gt;
# **** VRF default (default) ****&lt;BR /&gt;
configure terminal&lt;BR /&gt;
!&lt;BR /&gt;
 ip access-list extended 100&lt;BR /&gt;
  permit ip any any&lt;BR /&gt;
  exit&lt;BR /&gt;
 ip access-list extended 101&lt;BR /&gt;
  deny ip 172.26.13.224 0.0.0.15&lt;BR /&gt;
  exit&lt;BR /&gt;
 route-map policy PC permit 1&lt;BR /&gt;
  match ip address 101&lt;BR /&gt;
  exit&lt;BR /&gt;
 route-map policy PC permit 2&lt;BR /&gt;
  match ip address 100&lt;BR /&gt;
  set next-hop 172.26.5.21&lt;BR /&gt;
  exit&lt;BR /&gt;
!&lt;BR /&gt;
 interface vlan.0.1&lt;BR /&gt;
  ip address 172.26.5.20 255.255.255.0 primary &lt;BR /&gt;
  no shutdown&lt;BR /&gt;
  exit&lt;BR /&gt;
 interface vlan.0.1313&lt;BR /&gt;
  ip address 172.26.13.209 255.255.255.240 primary &lt;BR /&gt;
  ip policy route-map PC&lt;BR /&gt;
  ip policy priority only&lt;BR /&gt;
  no shutdown&lt;BR /&gt;
  exit&lt;BR /&gt;
 interface vlan.0.1314&lt;BR /&gt;
  ip address 172.26.13.225 255.255.255.240 primary &lt;BR /&gt;
  no shutdown&lt;BR /&gt;
  exit&lt;BR /&gt;
!&lt;BR /&gt;
#&lt;BR /&gt;
For more information about configuring route maps, please consult the S-Series &lt;A href="https://extranet.enterasys.com/downloads/Pages/S.aspx" target="_blank" rel="nofollow noreferrer noopener"&gt;Configuration and CLI Guides&lt;/A&gt;.</description>
    <pubDate>Fri, 06 Dec 2013 23:47:00 GMT</pubDate>
    <dc:creator>FAQ_User</dc:creator>
    <dc:date>2013-12-06T23:47:00Z</dc:date>
    <item>
      <title>S-Series Policy Based Routing example targets all traffic</title>
      <link>https://community.extremenetworks.com/t5/faqs/s-series-policy-based-routing-example-targets-all-traffic/m-p/42680#M125</link>
      <description>Article ID: 13123 &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Products&lt;/B&gt;&lt;BR /&gt;
S-Series &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Discussion&lt;/B&gt;&lt;BR /&gt;
There are three parts to a route map for Policy Based Routing (PBR):&lt;OL&gt; 
&lt;LI&gt;The ACL to define the traffic which will be affected. 
&lt;/LI&gt;&lt;LI&gt;The IP of the next hop to which the traffic will be sent. 
&lt;/LI&gt;&lt;LI&gt;The command applying it to the interface.&lt;/LI&gt;&lt;/OL&gt;
This config has an additional parameter under the interface stating 'policy priority only', which affects ACL-permit-matching traffic.&lt;UL&gt; 
&lt;LI&gt;'policy priority only' uses the PBR next hop, but if it is unavailable, drops the packet. 
&lt;/LI&gt;&lt;LI&gt;'policy priority first' uses the PBR next hop, but if it is unavailable, falls back to the routing table (FIB). This is the default behavior. 
&lt;/LI&gt;&lt;LI&gt;'policy priority last' uses the FIB, but if no route is found, falls back to the PBR next hop.&lt;/LI&gt;&lt;/UL&gt;
So here, ACL-permit-matching traffic crossing the interface is sent only to the next hop - and the routing table is ignored. By design, ACL-deny-matching traffic and non-matching traffic never uses the PBR next hop. &lt;BR /&gt;
&lt;BR /&gt;
The configuration below will send all traffic from the interface vlan.0.1313 to 172.26.5.21. The ACL 100 matches any IP traffic, thus will match all traffic that crosses the interface to which the route map is applied. If you used a more specific ACL (i.e. using more rules), the packet must match all the rules for the route map action to be applied to the packet. &lt;BR /&gt;
Note: You can use the same route map on multiple interfaces. &lt;BR /&gt;
&lt;BR /&gt;
# router configuration&lt;BR /&gt;
!&lt;BR /&gt;
# **** VRF default (default) ****&lt;BR /&gt;
configure terminal&lt;BR /&gt;
!&lt;BR /&gt;
 ip access-list extended 100&lt;BR /&gt;
  permit ip any any&lt;BR /&gt;
  exit&lt;BR /&gt;
 route-map policy PC permit 2&lt;BR /&gt;
  match ip address 100&lt;BR /&gt;
  set next-hop 172.26.5.21&lt;BR /&gt;
  exit&lt;BR /&gt;
!&lt;BR /&gt;
 interface vlan.0.1&lt;BR /&gt;
  ip address 172.26.5.20 255.255.255.0 primary &lt;BR /&gt;
  no shutdown&lt;BR /&gt;
  exit&lt;BR /&gt;
 interface vlan.0.1313&lt;BR /&gt;
  ip address 172.26.13.209 255.255.255.240 primary &lt;BR /&gt;
  ip policy route-map PC&lt;BR /&gt;
  ip policy priority only&lt;BR /&gt;
  no shutdown&lt;BR /&gt;
  exit&lt;BR /&gt;
 interface vlan.0.1314&lt;BR /&gt;
  ip address 172.26.13.225 255.255.255.240 primary &lt;BR /&gt;
  no shutdown&lt;BR /&gt;
  exit&lt;BR /&gt;
!&lt;BR /&gt;
#&lt;BR /&gt;
It is common to not want traffic that is being routed from one local interface to a second interface on the same device to go to the PBR-specified next hop, but rather would like it to be routed locally to avoid the extra hop. You do this by adding a sequence number in the PBR that denies that traffic. &lt;BR /&gt;
&lt;BR /&gt;
The configuration below contains this modification, so will send all traffic from the interface vlan.0.1313 to 172.26.5.21, &lt;I&gt;except&lt;/I&gt; if it is destined for locally connected subnet 172.26.13.224 255.255.255.240 (the command uses reverse masking). Route-map sequence 1 denies traffic destined for locally connected subnets so it will be routed via the routing table, without being sent to the next hop. &lt;BR /&gt;
&lt;BR /&gt;
# router configuration&lt;BR /&gt;
!&lt;BR /&gt;
# **** VRF default (default) ****&lt;BR /&gt;
configure terminal&lt;BR /&gt;
!&lt;BR /&gt;
 ip access-list extended 100&lt;BR /&gt;
  permit ip any any&lt;BR /&gt;
  exit&lt;BR /&gt;
 ip access-list extended 101&lt;BR /&gt;
  deny ip 172.26.13.224 0.0.0.15&lt;BR /&gt;
  exit&lt;BR /&gt;
 route-map policy PC permit 1&lt;BR /&gt;
  match ip address 101&lt;BR /&gt;
  exit&lt;BR /&gt;
 route-map policy PC permit 2&lt;BR /&gt;
  match ip address 100&lt;BR /&gt;
  set next-hop 172.26.5.21&lt;BR /&gt;
  exit&lt;BR /&gt;
!&lt;BR /&gt;
 interface vlan.0.1&lt;BR /&gt;
  ip address 172.26.5.20 255.255.255.0 primary &lt;BR /&gt;
  no shutdown&lt;BR /&gt;
  exit&lt;BR /&gt;
 interface vlan.0.1313&lt;BR /&gt;
  ip address 172.26.13.209 255.255.255.240 primary &lt;BR /&gt;
  ip policy route-map PC&lt;BR /&gt;
  ip policy priority only&lt;BR /&gt;
  no shutdown&lt;BR /&gt;
  exit&lt;BR /&gt;
 interface vlan.0.1314&lt;BR /&gt;
  ip address 172.26.13.225 255.255.255.240 primary &lt;BR /&gt;
  no shutdown&lt;BR /&gt;
  exit&lt;BR /&gt;
!&lt;BR /&gt;
#&lt;BR /&gt;
For more information about configuring route maps, please consult the S-Series &lt;A href="https://extranet.enterasys.com/downloads/Pages/S.aspx" target="_blank" rel="nofollow noreferrer noopener"&gt;Configuration and CLI Guides&lt;/A&gt;.</description>
      <pubDate>Fri, 06 Dec 2013 23:47:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/faqs/s-series-policy-based-routing-example-targets-all-traffic/m-p/42680#M125</guid>
      <dc:creator>FAQ_User</dc:creator>
      <dc:date>2013-12-06T23:47:00Z</dc:date>
    </item>
  </channel>
</rss>

