<?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: What is the best way to redistribute all interfaces and Static routes into BGP? in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/What-is-the-best-way-to-redistribute-all-interfaces-and-Static/m-p/184098#M33791</link>
    <description>&lt;P&gt;Wow, thanks for the detailed answer!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will test this and get back on the results when I have time.&lt;/P&gt;&lt;P&gt;-A&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jun 2023 13:50:03 GMT</pubDate>
    <dc:creator>Austin_Ponten</dc:creator>
    <dc:date>2023-06-15T13:50:03Z</dc:date>
    <item>
      <title>What is the best way to redistribute all interfaces and Static routes into BGP?</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/What-is-the-best-way-to-redistribute-all-interfaces-and-Static/m-p/183981#M33788</link>
      <description>&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="BGP_LAB.jpg" style="width: 382px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/21418i1D4304B35D5F527C/image-size/large?v=v2&amp;amp;px=999" role="button" title="BGP_LAB.jpg" alt="BGP_LAB.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi, looking to optimize this BGP implementation for a customer, and I am doing this for the first time so I read these:&lt;/P&gt;&lt;P&gt;&lt;A href="https://dl3.checkpoint.com/paid/f3/f313d7128484db88a73976b2d9e886ae/CP_R77.20.60_600_700_1100_1200R_1400_AdvRoutingGuide.pdf?HashKey=1686736335_e5517a13325bab552475369b61ed1e1d&amp;amp;xtn=.pdf" target="_blank" rel="noopener"&gt;https://dl3.checkpoint.com/paid/f3/f313d7128484db88a73976b2d9e886ae/CP_R77.20.60_600_700_1100_1200R_1400_AdvRoutingGuide.pdf?HashKey=1686736335_e5517a13325bab552475369b61ed1e1d&amp;amp;xtn=.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.checkpoint.com/results/sk/sk100501" target="_blank" rel="noopener"&gt;https://support.checkpoint.com/results/sk/sk100501&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.checkpoint.com/t5/Security-Gateways/announcing-Routes-via-BGP/td-p/8154#" target="_blank" rel="noopener"&gt;https://community.checkpoint.com/t5/Security-Gateways/announcing-Routes-via-BGP/td-p/8154#&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I am having trouble understanding why my route maps and route-redistribution statements are not working and wondering if someone has a better guide to tell me how to simply advertise ALL connected interfaces and ALL static routes and I can work from there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far I have tried SEVERAL variations of route maps but this is a general one:&lt;/P&gt;&lt;P&gt;set routemap bgp-inbound id 1 on&lt;/P&gt;&lt;P&gt;set routemap bgp-inbound id 1 allow&lt;/P&gt;&lt;P&gt;set routemap bgp-outbound id 1 on&lt;/P&gt;&lt;P&gt;set routemap bgp-outbound id 1 allow&lt;/P&gt;&lt;P&gt;set bgp external remote-as 65000 export-routemap bgp-outbound preference 1 on&lt;/P&gt;&lt;P&gt;set bgp external remote-as 65000 import-routemap bgp-inbound preference 1 on&lt;/P&gt;&lt;P&gt;set bgp internal import-routemap bgp-inbound preference 1 on&lt;/P&gt;&lt;P&gt;set bgp internal export-routemap bgp-outbound preference 1 on&lt;/P&gt;&lt;P&gt;set route-redistribution to bgp-as 65000 from interface all on&lt;/P&gt;&lt;P&gt;set route-redistribution to bgp-as 65000 from static-route all-ipv4-routes on&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Show_route.jpg" style="width: 720px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/21422i88E5123E43257CE6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Show_route.jpg" alt="Show_route.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This 10.0.0.0/8 is the static route I would like to be distributed into BGP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Peers_Advertised_Routes.jpg" style="width: 664px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/21423i0860402514465881/image-size/large?v=v2&amp;amp;px=999" role="button" title="Peers_Advertised_Routes.jpg" alt="Peers_Advertised_Routes.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dont see it advertised...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the most optimal way to fix this? I don't want to advertise every single static route as per Lesley_Willems2 solution in&amp;nbsp;&lt;A href="https://community.checkpoint.com/t5/Security-Gateways/announcing-Routes-via-BGP/td-p/8154#" target="_blank" rel="noopener"&gt;https://community.checkpoint.com/t5/Security-Gateways/announcing-Routes-via-BGP/td-p/8154#&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated, and Ill try to clarify things that I have overcomplicated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 14:04:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/What-is-the-best-way-to-redistribute-all-interfaces-and-Static/m-p/183981#M33788</guid>
      <dc:creator>Austin_Ponten</dc:creator>
      <dc:date>2023-06-14T14:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to redistribute all interfaces and Static routes into BGP?</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/What-is-the-best-way-to-redistribute-all-interfaces-and-Static/m-p/184009#M33789</link>
      <description>&lt;P&gt;Are you also redistributing kernel routes?&lt;BR /&gt;Pretty sure this is needed here.&lt;BR /&gt;See:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/R81.10/WebAdminGuides/EN/CP_R81.10_Gaia_Advanced_Routing_AdminGuide/Topics-GARG/Route-Redistribution-to-IPv4-BGP-Configuring-in-Gaia-Clish.htmv" target="_blank"&gt;https://sc1.checkpoint.com/documents/R81.10/WebAdminGuides/EN/CP_R81.10_Gaia_Advanced_Routing_AdminGuide/Topics-GARG/Route-Redistribution-to-IPv4-BGP-Configuring-in-Gaia-Clish.htmv&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 18:53:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/What-is-the-best-way-to-redistribute-all-interfaces-and-Static/m-p/184009#M33789</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-06-14T18:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to redistribute all interfaces and Static routes into BGP?</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/What-is-the-best-way-to-redistribute-all-interfaces-and-Static/m-p/184065#M33790</link>
      <description>&lt;P&gt;If you want to propagate ALL IPv4 directly connected interfaces AND also ALL IPv4 static routes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;set routemap bgp-outbound id 1 on
set routemap bgp-outbound id 1 allow
set routemap bgp-outbound id 1 match as 65000 on
set routemap bgp-outbound id 1 match protocol direct
set routemap bgp-outbound id 2 on
set routemap bgp-outbound id 2 allow
set routemap bgp-outbound id 2 match as 65000 on
set routemap bgp-outbound id 2 match protocol static
set bgp external remote-as 65000 export-routemap bgp-outbound preference 1 family inet on&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Only static routes pointing to nexthop IP address of 0.0.0.0 (in your case only static route 10.0.0.0/8):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;set routemap bgp-outbound id 1 on
set routemap bgp-outbound id 1 allow
set routemap bgp-outbound id 1 match as 65000 on
set routemap bgp-outbound id 1 match nexthop 0.0.0.0 on
set routemap bgp-outbound id 1 match protocol static
set bgp external remote-as 65000 export-routemap bgp-outbound preference 1 family inet on
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best practise is first restrict everything which is not desired to be propagated over BGP (sync, internal networks, default gateway, ...), and after that allow all what is really needed to be propagated.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 10:51:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/What-is-the-best-way-to-redistribute-all-interfaces-and-Static/m-p/184065#M33790</guid>
      <dc:creator>JozkoMrkvicka</dc:creator>
      <dc:date>2023-06-15T10:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to redistribute all interfaces and Static routes into BGP?</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/What-is-the-best-way-to-redistribute-all-interfaces-and-Static/m-p/184098#M33791</link>
      <description>&lt;P&gt;Wow, thanks for the detailed answer!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will test this and get back on the results when I have time.&lt;/P&gt;&lt;P&gt;-A&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 13:50:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/What-is-the-best-way-to-redistribute-all-interfaces-and-Static/m-p/184098#M33791</guid>
      <dc:creator>Austin_Ponten</dc:creator>
      <dc:date>2023-06-15T13:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to redistribute all interfaces and Static routes into BGP?</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/What-is-the-best-way-to-redistribute-all-interfaces-and-Static/m-p/184172#M33823</link>
      <description>&lt;P&gt;Works right away!&amp;nbsp; Now I see what you mean by it advertises everything including the sync interface...&lt;/P&gt;&lt;P&gt;So should I then start with the restrictions like this?&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;set routemap bgp-outbound id 1 on
set routemap bgp-outbound id 1 restrict
set routemap bgp-outbound id 1 match as 65000 on
set routemap bgp-outbound id 1 match interface Sync on&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 07:29:16 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/What-is-the-best-way-to-redistribute-all-interfaces-and-Static/m-p/184172#M33823</guid>
      <dc:creator>Austin_Ponten</dc:creator>
      <dc:date>2023-06-16T07:29:16Z</dc:date>
    </item>
  </channel>
</rss>

