<?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: eBGP routemaps configuration in General Topics</title>
    <link>https://community.checkpoint.com/t5/General-Topics/eBGP-routemaps-configuration/m-p/117370#M21857</link>
    <description>&lt;P&gt;So how do you make this work then?&lt;/P&gt;</description>
    <pubDate>Fri, 30 Apr 2021 15:30:20 GMT</pubDate>
    <dc:creator>Ashley_Black</dc:creator>
    <dc:date>2021-04-30T15:30:20Z</dc:date>
    <item>
      <title>eBGP routemaps configuration</title>
      <link>https://community.checkpoint.com/t5/General-Topics/eBGP-routemaps-configuration/m-p/87240#M17513</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two pair of clusters running R80.10.&lt;/P&gt;&lt;P&gt;Each cluster peers to 2 PE peers and I want to make one of them primary and the other one standby.&lt;/P&gt;&lt;P&gt;Both clusters are peering ok and exchanging prefixes so that's not a problem, it's mainly about route filtering and attributes.&lt;/P&gt;&lt;P&gt;So my config looks something like this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For inbound prefixes, let's say PE routers are 10.10.10.1 and 10.10.10.2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;And I want to only accept the networks on the match statements + set local pref to 250 on prefixes coming from 10.10.10.1 and 150 for prefixes coming from 10.10.10.2&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;set routemap bgp-201 id 101 on
set routemap bgp-201 id 101 allow
set routemap bgp-201 id 101 match neighbor 10.10.10.1 on
set routemap bgp-201 id 101 match network 192.168.0.0/16 all
set routemap bgp-201 id 101 match network 10.10.222.64/26 exact
set routemap bgp-201 id 101 match network 10.10.222.64/26 exact
set routemap bgp-201 id 101 match network 172.18.0.0/16 all
set routemap bgp-201 id 101 match network 172.19.0.0/16 all
set routemap bgp-201 id 101 action localpref 250&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;set routemap bgp-202 id 101 on
set routemap bgp-202 id 101 allow
set routemap bgp-202 id 101 match neighbor 10.10.10.2 on
set routemap bgp-202 id 101 match network 192.168.0.0/16 all
set routemap bgp-202 id 101 match network 10.10.222.64/26 exact
set routemap bgp-202 id 101 match network 10.10.222.64/26 exact
set routemap bgp-202 id 101 match network 172.18.0.0/16 all
set routemap bgp-202 id 101 match network 172.19.0.0/16 all
set routemap bgp-202 id 101 action localpref 150&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The applied routemaps to the peers&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;set bgp external remote-as XYZ import-routemap bgp-201 preference 1 on
set bgp external remote-as XYZ import-routemap bgp-202 preference 1 on&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, this if I look at show route bgp, seems to do what I want but if I go to expert mode and do &lt;STRONG&gt;route -n&lt;/STRONG&gt; or even from clish &lt;STRONG&gt;show route all&lt;/STRONG&gt;, the ones I filtered above are shown as "hidden" so it's not actually suppressing the prefixes, is it? What does hidden mean here, because I can tell at routing level is not doing what I want. I know this, because there is an specific network being learned by BGP that is not on any of the match network statements above that's causing routing problems.&lt;/P&gt;&lt;P&gt;Then to make it complete, I tried to add export routemap to prepend AS +2 and ended it up not being advertising a single prefix so clearly I got that one entirely wrong.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;set routemap bgp-202-out id 101 on
set routemap bgp-202-out id 101 allow
set routemap bgp-202-out id 101 match neighbor 10.10.10.2 on
set routemap bgp-202-out id 101 action aspath-prepend-count 2

set bgp external remote-as XYZ peer 10.10.10.2 export-routemap bgp-202-out preference 1 on&lt;/LI-CODE&gt;&lt;P&gt;I got the redistribution set this way:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;set route-redistribution to bgp-as XYZ from interface eth1 on metric 10
set route-redistribution to bgp-as XYZ from interface eth2.8 on metric 10
set route-redistribution to bgp-as XYZ from interface eth2.19 on metric 10
set route-redistribution to bgp-as XYZ from interface bond1.42 on metric 10
set route-redistribution to bgp-as XYZ from interface bond1.43 on metric 10
set route-redistribution to bgp-as XYZ from interface bond1.45 on metric 10
set route-redistribution to bgp-as XYZ from interface bond1.45 on metric 10&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone shed some light on this? What is that I'm doing wrong here?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 03:24:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/eBGP-routemaps-configuration/m-p/87240#M17513</guid>
      <dc:creator>Javier_Pobeda</dc:creator>
      <dc:date>2020-06-04T03:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: eBGP routemaps configuration</title>
      <link>https://community.checkpoint.com/t5/General-Topics/eBGP-routemaps-configuration/m-p/87541#M17625</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Local preference applies only to IBGP. Here is the help text when you type "?' after local preference:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;gt; set routemap my_map id 10 action localpref ?&lt;/STRONG&gt;&lt;BR /&gt;Sets the local preference for iBGP routes which match this&lt;BR /&gt;Route Map.&lt;/P&gt;
&lt;P&gt;Value: 0 - 65535&lt;/P&gt;
&lt;P&gt;This action only applies to the iBGP protocol, and only to Route&lt;BR /&gt;Maps which are used with the "import-routemap" command.&lt;/P&gt;
&lt;P&gt;Instead of local-preference you need to use metric:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;gt; set routemap my_map id 10 action metric value&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;You are using EBGP and to apply a routemap per-peer you need to do something like this:&lt;/P&gt;
&lt;P&gt;&amp;gt; set bgp external remote-as 200 peer 10.10.10.10 &lt;STRONG&gt;import-routemap&lt;/STRONG&gt; my_map preference 1 on&lt;/P&gt;
&lt;P&gt;The routemap must be applied per peer as above.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please open a support case. There are routing-focals in support and they can help you out further.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 03:25:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/eBGP-routemaps-configuration/m-p/87541#M17625</guid>
      <dc:creator>Sundeep_Mudgal</dc:creator>
      <dc:date>2020-06-08T03:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: eBGP routemaps configuration</title>
      <link>https://community.checkpoint.com/t5/General-Topics/eBGP-routemaps-configuration/m-p/97295#M19106</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;gt; set bgp external remote-as 200 peer 10.10.10.10&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;import-routemap&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;my_map preference 1 on&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;----&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This action only applies to Route Maps used with the&lt;BR /&gt;"export-routemap" command. It will otherwise have no effect.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 15:09:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/eBGP-routemaps-configuration/m-p/97295#M19106</guid>
      <dc:creator>vinceneil666</dc:creator>
      <dc:date>2020-09-22T15:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: eBGP routemaps configuration</title>
      <link>https://community.checkpoint.com/t5/General-Topics/eBGP-routemaps-configuration/m-p/117370#M21857</link>
      <description>&lt;P&gt;So how do you make this work then?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 15:30:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/eBGP-routemaps-configuration/m-p/117370#M21857</guid>
      <dc:creator>Ashley_Black</dc:creator>
      <dc:date>2021-04-30T15:30:20Z</dc:date>
    </item>
  </channel>
</rss>

