<?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: Prefix Lists, Prefix Trees, oh my in General Topics</title>
    <link>https://community.checkpoint.com/t5/General-Topics/Prefix-Lists-Prefix-Trees-oh-my/m-p/192453#M32243</link>
    <description>&lt;P&gt;An example of what I think might work:&lt;/P&gt;&lt;P&gt;set routemap TestRM id 10 on&lt;BR /&gt;set routemap TestRM id 10 allow&lt;BR /&gt;set routemap TestRM id 10 match as 65012 on&lt;BR /&gt;set routemap TestRM id 10 match neighbor 172.28.1.xx on&lt;BR /&gt;set routemap TestRM id 10 match network 192.168.56.0/22 exact&lt;BR /&gt;set routemap TestRM id 10 match network 192.168.182.0/23 all&lt;BR /&gt;set routemap TestRM id 10 match network 172.22.0.0/16 all&lt;BR /&gt;set routemap TestRM id 10 match network 172.23.0.0/16 all&lt;BR /&gt;set routemap TestRM id 10 match protocol bgp&lt;BR /&gt;set routemap TestRM id 10 action preference 50&lt;BR /&gt;set routemap TestRM id 11 on&lt;BR /&gt;set routemap TestRM id 11 allow&lt;BR /&gt;set routemap TestRM id 11 match as 65012 on&lt;BR /&gt;set routemap TestRM id 11 match neighbor 172.28.1.xx on&lt;BR /&gt;set routemap TestRM id 11 match network 192.168.56.0/22 exact&lt;BR /&gt;set routemap TestRM id 11 match network 192.168.182.0/23 all&lt;BR /&gt;set routemap TestRM id 11 match network 172.22.0.0/16 all&lt;BR /&gt;set routemap TestRM id 11 match network 172.23.0.0/16 all&lt;BR /&gt;set routemap TestRM id 11 match protocol bgp&lt;BR /&gt;set routemap TestRM id 11 action preference 100&lt;/P&gt;&lt;P&gt;Is the above routemap equivalent to the following prefix-list/routemap combination?&lt;/P&gt;&lt;P&gt;set prefix-list TestPL sequence-number 10 prefix 192.168.56.0/22 exact&lt;BR /&gt;set prefix-list TestPL sequence-number 20 prefix 192.168.182.0/23 all&lt;BR /&gt;set prefix-list TestPL sequence-number 30 prefix 172.22.0.0/16 all&lt;BR /&gt;set prefix-list TestPL sequence-number 40 prefix 172.23.0.0/16 all&lt;BR /&gt;set prefix-list TestPL sequence-number 50 prefix 172.24.0.0/16 all&lt;/P&gt;&lt;P&gt;set routemap RM_TestRM id 10 on&lt;BR /&gt;set routemap RM_TestRM id 10 allow&lt;BR /&gt;set routemap RM_TestRM id 10 match as 65012 on&lt;BR /&gt;set routemap RM_TestRM id 10 match neighbor 172.28.1.18 on&lt;BR /&gt;set routemap RM_TestRM id 10 match prefix-list TestPL preference 50 on&lt;BR /&gt;set routemap RM_TestRM id 10 match protocol bgp&lt;BR /&gt;set routemap RM_TestRM id 11 on&lt;BR /&gt;set routemap RM_TestRM id 11 allow&lt;BR /&gt;set routemap RM_TestRM id 11 match as 65012 on&lt;BR /&gt;set routemap RM_TestRM id 11 match neighbor 172.28.1.28 on&lt;BR /&gt;set routemap RM_TestRM id 11 match prefix-list TestPL preference 100 on&lt;BR /&gt;set routemap RM_TestRM id 11 match protocol bgp&lt;/P&gt;&lt;P&gt;NOTE: Additional networks being added during redesign&lt;/P&gt;&lt;P&gt;The restrict command that can be at the end of each of those prefix-list lines is not clear as to if I need to provide it or not and is restrict off equivalent of not providing it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Sep 2023 19:13:16 GMT</pubDate>
    <dc:creator>Charles_Palmer</dc:creator>
    <dc:date>2023-09-12T19:13:16Z</dc:date>
    <item>
      <title>Prefix Lists, Prefix Trees, oh my</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Prefix-Lists-Prefix-Trees-oh-my/m-p/192450#M32242</link>
      <description>&lt;P&gt;I am looking at my routing design between my Cisco and CheckPoint environments. About 4 years ago, I implemented various route maps in my CheckPoint environment, and they have been working fine. I did not use prefix lists or prefix trees at the time of this implementation because I don't think they were supported yet. Since I am redesigning, I figured I would implement prefix lists like I have in my Cisco environment to vastly reduce the size of my existing route maps. Looking for documentation on this is proving much more difficult that I would have thought it would be. The basic documentation provided in the documentation give syntax for Prefix-Lists and Prefix-Trees but there isn't a very good discussion of what the difference between the two is and use cases for each. The following two definitions don't explain anything to me:&lt;BR /&gt;Prefix-List:&lt;SPAN&gt;Simulate a sequential lookup and return the first matched entry as the true match.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Prefix-Tree:&lt;SPAN&gt;Return the longest match as the true match.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;There is one routemap example that uses prefix list and that looks to be how I would expect it, but it still isn't clear about how it would actually work. If I build a prefix-list with multiple different ip address/subnet mask pairs, is it going to check against each entry until it finds a match for the ip/mask that it is currently testing or something else. I am assuming I would build my prefix-list with a sequence order of frequency of usage to speed up matching, but the above definition doesn't well aid in understanding. And I can't seem to find any discussion or examples where someone has implemented this with the explanation of how it works.&lt;/P&gt;&lt;P&gt;If anyone has worked out the cryptic part of this, I would appreciate enlightening.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Charles&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 18:54:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Prefix-Lists-Prefix-Trees-oh-my/m-p/192450#M32242</guid>
      <dc:creator>Charles_Palmer</dc:creator>
      <dc:date>2023-09-12T18:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Prefix Lists, Prefix Trees, oh my</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Prefix-Lists-Prefix-Trees-oh-my/m-p/192453#M32243</link>
      <description>&lt;P&gt;An example of what I think might work:&lt;/P&gt;&lt;P&gt;set routemap TestRM id 10 on&lt;BR /&gt;set routemap TestRM id 10 allow&lt;BR /&gt;set routemap TestRM id 10 match as 65012 on&lt;BR /&gt;set routemap TestRM id 10 match neighbor 172.28.1.xx on&lt;BR /&gt;set routemap TestRM id 10 match network 192.168.56.0/22 exact&lt;BR /&gt;set routemap TestRM id 10 match network 192.168.182.0/23 all&lt;BR /&gt;set routemap TestRM id 10 match network 172.22.0.0/16 all&lt;BR /&gt;set routemap TestRM id 10 match network 172.23.0.0/16 all&lt;BR /&gt;set routemap TestRM id 10 match protocol bgp&lt;BR /&gt;set routemap TestRM id 10 action preference 50&lt;BR /&gt;set routemap TestRM id 11 on&lt;BR /&gt;set routemap TestRM id 11 allow&lt;BR /&gt;set routemap TestRM id 11 match as 65012 on&lt;BR /&gt;set routemap TestRM id 11 match neighbor 172.28.1.xx on&lt;BR /&gt;set routemap TestRM id 11 match network 192.168.56.0/22 exact&lt;BR /&gt;set routemap TestRM id 11 match network 192.168.182.0/23 all&lt;BR /&gt;set routemap TestRM id 11 match network 172.22.0.0/16 all&lt;BR /&gt;set routemap TestRM id 11 match network 172.23.0.0/16 all&lt;BR /&gt;set routemap TestRM id 11 match protocol bgp&lt;BR /&gt;set routemap TestRM id 11 action preference 100&lt;/P&gt;&lt;P&gt;Is the above routemap equivalent to the following prefix-list/routemap combination?&lt;/P&gt;&lt;P&gt;set prefix-list TestPL sequence-number 10 prefix 192.168.56.0/22 exact&lt;BR /&gt;set prefix-list TestPL sequence-number 20 prefix 192.168.182.0/23 all&lt;BR /&gt;set prefix-list TestPL sequence-number 30 prefix 172.22.0.0/16 all&lt;BR /&gt;set prefix-list TestPL sequence-number 40 prefix 172.23.0.0/16 all&lt;BR /&gt;set prefix-list TestPL sequence-number 50 prefix 172.24.0.0/16 all&lt;/P&gt;&lt;P&gt;set routemap RM_TestRM id 10 on&lt;BR /&gt;set routemap RM_TestRM id 10 allow&lt;BR /&gt;set routemap RM_TestRM id 10 match as 65012 on&lt;BR /&gt;set routemap RM_TestRM id 10 match neighbor 172.28.1.18 on&lt;BR /&gt;set routemap RM_TestRM id 10 match prefix-list TestPL preference 50 on&lt;BR /&gt;set routemap RM_TestRM id 10 match protocol bgp&lt;BR /&gt;set routemap RM_TestRM id 11 on&lt;BR /&gt;set routemap RM_TestRM id 11 allow&lt;BR /&gt;set routemap RM_TestRM id 11 match as 65012 on&lt;BR /&gt;set routemap RM_TestRM id 11 match neighbor 172.28.1.28 on&lt;BR /&gt;set routemap RM_TestRM id 11 match prefix-list TestPL preference 100 on&lt;BR /&gt;set routemap RM_TestRM id 11 match protocol bgp&lt;/P&gt;&lt;P&gt;NOTE: Additional networks being added during redesign&lt;/P&gt;&lt;P&gt;The restrict command that can be at the end of each of those prefix-list lines is not clear as to if I need to provide it or not and is restrict off equivalent of not providing it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 19:13:16 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Prefix-Lists-Prefix-Trees-oh-my/m-p/192453#M32243</guid>
      <dc:creator>Charles_Palmer</dc:creator>
      <dc:date>2023-09-12T19:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Prefix Lists, Prefix Trees, oh my</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Prefix-Lists-Prefix-Trees-oh-my/m-p/192455#M32244</link>
      <description>&lt;P&gt;That looks right to me. I can check for you, as my colleague and I spent literally 5 months last year with TAC until we finally got it working.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 19:25:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Prefix-Lists-Prefix-Trees-oh-my/m-p/192455#M32244</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-09-12T19:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Prefix Lists, Prefix Trees, oh my</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Prefix-Lists-Prefix-Trees-oh-my/m-p/192456#M32245</link>
      <description>&lt;P&gt;If you could verify, that would be awesome. Sadly I don't currently have the resources for a test environment (mainly my time to try to get GNS3 working again after another update). I don't have to use prefix lists, but you can see that it saves me a few lines here. But I have more than a dozen other route maps with even more networks that this.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 19:28:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Prefix-Lists-Prefix-Trees-oh-my/m-p/192456#M32245</guid>
      <dc:creator>Charles_Palmer</dc:creator>
      <dc:date>2023-09-12T19:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Prefix Lists, Prefix Trees, oh my</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Prefix-Lists-Prefix-Trees-oh-my/m-p/192457#M32246</link>
      <description>&lt;P&gt;I will reach out to you offline mate.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 19:29:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Prefix-Lists-Prefix-Trees-oh-my/m-p/192457#M32246</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-09-12T19:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Prefix Lists, Prefix Trees, oh my</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Prefix-Lists-Prefix-Trees-oh-my/m-p/192530#M32257</link>
      <description>&lt;P&gt;Just to update quick...Charles and I connected offline and I gave him examples of working setup, so I think that will help. He will update here once everything works.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 12:52:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Prefix-Lists-Prefix-Trees-oh-my/m-p/192530#M32257</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-09-13T12:52:57Z</dc:date>
    </item>
  </channel>
</rss>

