<?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 Re: IP Prefix List Question in Routing and SD-WAN</title>
    <link>https://community.cisco.com/t5/routing-and-sd-wan/ip-prefix-list-question/m-p/3910123#M320089</link>
    <description>&lt;P&gt;Exactly as I thought.&amp;nbsp; Much appreciated, thank you.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2019 11:09:30 GMT</pubDate>
    <dc:creator>kramer977</dc:creator>
    <dc:date>2019-08-19T11:09:30Z</dc:date>
    <item>
      <title>IP Prefix List Question</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/ip-prefix-list-question/m-p/3909829#M320042</link>
      <description>&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Hi all,&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Quick question about prefix lists. I'm peering with a partner and injecting a route map IN (BGP), which restricts the prefixes advertised to us, but a quick question, because I'm trying to save the amount of config to be written up. The partner is advertising a lot of /23 and /24s.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Example: Let's say the partner is advertising&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://192.168.206.0/23" target="_blank" rel="noopener noreferrer"&gt;192.168.206.0/23&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://192.168.207.0/24" target="_blank" rel="noopener noreferrer"&gt;192.168.207.0/24&amp;nbsp;&lt;/A&gt;as two separate prefixes.&amp;nbsp; To save 2 entries for both prefixes, I thought of writing up a config in this manner:&lt;BR /&gt;ip prefix-list CISCO seq 5 permit&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://192.168.206.9/23" target="_blank" rel="noopener noreferrer"&gt;192.168.206.0/23&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;le 24.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;My understand is that this will allow both the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://192.168.206.0/23" target="_blank" rel="noopener noreferrer"&gt;192.168.206.0/23&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://192.168.207.0/24" target="_blank" rel="noopener noreferrer"&gt;192.168.207.0/24&lt;/A&gt;.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Does this look correct?&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 15:57:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/ip-prefix-list-question/m-p/3909829#M320042</guid>
      <dc:creator>kramer977</dc:creator>
      <dc:date>2019-08-18T15:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: IP Prefix List Question</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/ip-prefix-list-question/m-p/3909831#M320043</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ip prefix-list CISCO seq 5 permit 192.168.206.0/23 le 24.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;would indeed filter both routes, however, in your specific case:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ip prefix-list CISCO seq 5 permit 192.168.206.0/23&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;would be sufficient, since 192.168.207.0/24 overlaps with 192.168.206.0/23.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 16:22:50 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/ip-prefix-list-question/m-p/3909831#M320043</guid>
      <dc:creator>Georg Pauwen</dc:creator>
      <dc:date>2019-08-18T16:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: IP Prefix List Question</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/ip-prefix-list-question/m-p/3909832#M320044</link>
      <description>&lt;P&gt;Hi Georg,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;In my case though, 2 separate prefixes will be advertised:&amp;nbsp;&lt;SPAN&gt;192.168.206.0/23&amp;nbsp;and&amp;nbsp;192.168.207.0/24.&amp;nbsp; When dealing with ip prefix lists, if you don't specify le or ge, doesn't the exact prefix match? If it was an access list, I see the /23 covering /24 and allowing, but I thought the prefix lists work a little different and match exact, without the le/ge defined. Wouldn't that be the purpose of introducing&amp;nbsp;the le/ge variables?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So in my case, if I were to configure "ip prefix-list CISCO seq 5 permit 192.168.206.0/23", wouldn't the advertised prefix of 192.168.207.0/24 be blocked?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 16:34:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/ip-prefix-list-question/m-p/3909832#M320044</guid>
      <dc:creator>kramer977</dc:creator>
      <dc:date>2019-08-18T16:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: IP Prefix List Question</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/ip-prefix-list-question/m-p/3909836#M320045</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tested this n GNS3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ip prefix-list CISCO seq 5 permit 192.168.206.0/23&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;filters both the 23 and the 24 route. I guess if you don't specify an 'le' it will block everything above /23.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 17:11:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/ip-prefix-list-question/m-p/3909836#M320045</guid>
      <dc:creator>Georg Pauwen</dc:creator>
      <dc:date>2019-08-18T17:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: IP Prefix List Question</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/ip-prefix-list-question/m-p/3909839#M320046</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Do you mean it filtered&amp;nbsp;&lt;SPAN&gt;192.168.206.0/23 and&amp;nbsp;192.168.206.0/24, but not the&amp;nbsp;192.168.207.0/24?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So in my case it's true, we require the le 24.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 17:23:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/ip-prefix-list-question/m-p/3909839#M320046</guid>
      <dc:creator>kramer977</dc:creator>
      <dc:date>2019-08-18T17:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: IP Prefix List Question</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/ip-prefix-list-question/m-p/3909841#M320047</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you don't require the 'le 24'. Below are the configs I used, both routes are being blocked:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;R1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;router bgp 1&lt;BR /&gt;bgp log-neighbor-changes&lt;BR /&gt;neighbor 192.168.1.2 remote-as 1&lt;BR /&gt;neighbor 192.168.1.2 route-map DENY in&lt;BR /&gt;!&lt;BR /&gt;ip prefix-list CISCO seq 5 deny 192.168.206.0/23&lt;BR /&gt;!&lt;BR /&gt;route-map DENY permit 10&lt;BR /&gt;match ip address prefix-list CISCO&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;R2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;router bgp 1&lt;BR /&gt;bgp log-neighbor-changes&lt;BR /&gt;network 192.168.206.0 mask 255.255.254.0&lt;BR /&gt;network 192.168.207.0&lt;BR /&gt;neighbor 192.168.1.1 remote-as 1&lt;BR /&gt;!&lt;BR /&gt;ip route 192.168.206.0 255.255.254.0 Null0&lt;BR /&gt;ip route 192.168.207.0 255.255.255.0 Null0&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 17:29:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/ip-prefix-list-question/m-p/3909841#M320047</guid>
      <dc:creator>Georg Pauwen</dc:creator>
      <dc:date>2019-08-18T17:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: IP Prefix List Question</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/ip-prefix-list-question/m-p/3910060#M320077</link>
      <description>&lt;P&gt;Hello Georg,&lt;/P&gt;
&lt;P&gt;your configuration is using a route-map with deny action and then invokes a prefix-list with deny statement.&lt;/P&gt;
&lt;P&gt;In my opinion both prefixes are blocked by the implicit deny any action of the route-map&lt;/P&gt;
&lt;P&gt;Try to add the following&lt;/P&gt;
&lt;P&gt;route-map DENY permit 20&lt;/P&gt;
&lt;P&gt;and you will see both routes accepted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I agree with original poster if you want to have a prefix-list matching both 192.168.206.0/23 and 1+92.168.207.0/24 I would use the following syntax&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ip prefix-list CISCO permit 192.168.206.0/23 le 24.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the original poster:&lt;/P&gt;
&lt;P&gt;the partner is sending to you both /23 and /24 with purpose of allowing you to use the most specific route&lt;/P&gt;
&lt;P&gt;Filtering the routes the partner is sending to you may not be a wise decision.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit:&lt;/P&gt;
&lt;P&gt;for the original poster&lt;/P&gt;
&lt;P&gt;After reading again your first post in the thread I now understand you are just trying to save lines on the prefix-list used in the route-map&amp;nbsp; not to filter received routes to minimize number of received prefixes (like denying /24 if /23 exists)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope to help&lt;/P&gt;
&lt;P&gt;Giuseppe&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 09:22:14 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/ip-prefix-list-question/m-p/3910060#M320077</guid>
      <dc:creator>Giuseppe Larosa</dc:creator>
      <dc:date>2019-08-19T09:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: IP Prefix List Question</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/ip-prefix-list-question/m-p/3910102#M320083</link>
      <description>&lt;P&gt;Hi Giuseppe,&lt;/P&gt;&lt;P&gt;Yes, it's been requested that I accept both prefixes, but both prefixes will not be advertised to us at the same time.&amp;nbsp; They have redundancy and fail over with in their network which will automatically control what advertisements are advertised to us, in the event of an outage.&amp;nbsp; This is why they requested that both specific prefixes are allowed on our end.&lt;/P&gt;&lt;P&gt;I have a question out of curiosity.&amp;nbsp; If I remove the le 24, for eg:&amp;nbsp;&amp;nbsp;ip prefix-list CISCO seq 5 permit&amp;nbsp;192.168.206.0/23,&lt;/P&gt;&lt;P&gt;would this prefix list statement ONLY accept&amp;nbsp;192.168.206.0/23,&amp;nbsp;and essentially deny any of these prefixes:&amp;nbsp;192.168.206.0/24 +&amp;nbsp;192.168.207.0/24?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 10:28:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/ip-prefix-list-question/m-p/3910102#M320083</guid>
      <dc:creator>kramer977</dc:creator>
      <dc:date>2019-08-19T10:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: IP Prefix List Question</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/ip-prefix-list-question/m-p/3910107#M320086</link>
      <description>&lt;P&gt;Hello kramer977,&lt;/P&gt;
&lt;P&gt;yes the partner is doing some traffic engineering using more specific routes for this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&lt;/P&gt;
&lt;P&gt;I have a question out of curiosity. If I remove the le 24, for eg: ip prefix-list CISCO seq 5 permit 192.168.206.0/23,&lt;/P&gt;
&lt;P&gt;would this prefix list statement ONLY accept 192.168.206.0/23, and essentially deny any of these prefixes: 192.168.206.0/24 + 192.168.207.0/24?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes it should allow only 192.168.206.0/23 and not the more specific prefixes.&lt;/P&gt;
&lt;P&gt;when no operator like le or ge is present the prefix-list looks for an exact match with the prefix.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope to help&lt;/P&gt;
&lt;P&gt;Giuseppe&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 10:35:43 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/ip-prefix-list-question/m-p/3910107#M320086</guid>
      <dc:creator>Giuseppe Larosa</dc:creator>
      <dc:date>2019-08-19T10:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: IP Prefix List Question</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/ip-prefix-list-question/m-p/3910123#M320089</link>
      <description>&lt;P&gt;Exactly as I thought.&amp;nbsp; Much appreciated, thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 11:09:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/ip-prefix-list-question/m-p/3910123#M320089</guid>
      <dc:creator>kramer977</dc:creator>
      <dc:date>2019-08-19T11:09:30Z</dc:date>
    </item>
  </channel>
</rss>

