<?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: AS Path prepending to two different peers in the same AS in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/AS-Path-prepending-to-two-different-peers-in-the-same-AS/m-p/132864#M19734</link>
    <description>&lt;P&gt;Thanks for that.&amp;nbsp; That makes complete sense.&amp;nbsp; I guess the question I have is how do you apply it?&amp;nbsp; Is it applied anywhere?&amp;nbsp; I have used route maps like this before:&lt;/P&gt;&lt;P&gt;set routemap bgp-in-65534 id 10 match network 10.0.0.0/8 all&lt;/P&gt;&lt;P&gt;set routemap bgp-in-65534 id 10 match network 172.16.0.0/12 all&lt;/P&gt;&lt;P&gt;set routemap bgp-in-65534 id 10 match network 192.168.0.0/16 all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then I apply them like this:&lt;/P&gt;&lt;P&gt;set route-redistribution to bgp-as 65534 from bgp-as-number 53XXX network 10.7.0.0/24 action accept&lt;/P&gt;&lt;P&gt;set route-redistribution to bgp-as 65534 from bgp-as-number 53XXX network 10.7.0.0/24 match-type exact on&lt;/P&gt;&lt;P&gt;set route-redistribution to bgp-as 65534 from bgp-as-number 53XXX network 172.16.100.0/24 action accept&lt;/P&gt;&lt;P&gt;set route-redistribution to bgp-as 65534 from bgp-as-number 53XXX network 172.16.100.0/24 match-type exact on&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in the case above as long as my bgp-in-65534 routemap is matched and therefore in the BGP routing table I can then redistribute what I learned from 53XXX into 65534.&amp;nbsp; But in this case I’m learning and announcing routes from AS to AS.&amp;nbsp; My question is how do I advertise routes or redistribute routes to two different peers differently, in the same AS.&amp;nbsp; Does that make sense?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see in your example below that if peerR1 matches x.x.x.x/y then the AS path should be prepended 10 times and if it matches from peerR2, prepend once.&amp;nbsp; Where in your config do you show who you announce that to?&amp;nbsp; Or do you?&amp;nbsp; I believe what you are doing is determining for yourself which path you should take based on what you learned from which router.&amp;nbsp; But what I'm trying to do is announce what I learned with prepended AS paths.&amp;nbsp; I can see how in your example you may be able to do something like set route-redistribution to bgp-as 11111 from &lt;FONT face="courier new,courier"&gt;[aggregate bgp-as-number bgp-as-path default-origin interface kernel ospf2 ospf2ase rip static route]&lt;/FONT&gt; but the “TO” part is only options are&amp;nbsp;&lt;FONT face="courier new,courier"&gt;[bgp ospf rip]&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is where I’m getting stuck.&amp;nbsp; Does my question make sense?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Paul&lt;/P&gt;</description>
    <pubDate>Fri, 29 Oct 2021 12:37:47 GMT</pubDate>
    <dc:creator>Paul_Warnagiris</dc:creator>
    <dc:date>2021-10-29T12:37:47Z</dc:date>
    <item>
      <title>AS Path prepending to two different peers in the same AS</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/AS-Path-prepending-to-two-different-peers-in-the-same-AS/m-p/132851#M19729</link>
      <description>&lt;P&gt;Hello Checkmates.&amp;nbsp; My goal here is to setup BGP with one ISP that is providing me access to two different POPs for diversity.&amp;nbsp; AS12345 in this example is my ISP.&amp;nbsp; My AS is 65001.&amp;nbsp; They have a POP in CHI and NYC that I peer with.&amp;nbsp; I would like to advertise 2.2.2.0 to ISPA in NYC normally and 3.3.3.0 to them as well, but with the AS path prepended 5 times.&amp;nbsp; Then to ISPB in CHI I would like to advertise 3.3.3.0 normally and 2.2.2.0 to them with the AS path prepended 5 times.&lt;/P&gt;&lt;P&gt;In a Cisco world I would use a route map and I would apply it to a neighbor.&amp;nbsp; Looking through all documentation I can find on the Check Point site I can create route maps, and I can advertise them to my neighboring AS, but I can't advertise them to two different peers in the same AS differently.&amp;nbsp; Unless I'm missing something.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the 8040 Gaia Advanced Routing Guide i I’m only seeing a way to announce a route-map to a AS, not a peer in the AS.&amp;nbsp; In the case of this customer they will have a neighbor AS, but they will have two different routers in that AS that I want to treat differently.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;From the example in&amp;nbsp;&lt;SPAN&gt;sk103047 from&amp;nbsp;&lt;/SPAN&gt;(IV-3) Configuration of BGP AS PATH Prepend it shows prepending the path 2 times and 10 times.&amp;nbsp; But its prepending it to the same router.&amp;nbsp; And the example can do that because its advertising to an AS, not a neighbor.&amp;nbsp; Am I missing something?&lt;/P&gt;&lt;P&gt;This is what I'm trying to do.&amp;nbsp; The below example uses routers, but assume they are Check Points in an HA cluster.&amp;nbsp; The transit networks will be /29...the basics are covered.&amp;nbsp; The advertising and the path prepends are not.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BGP-Example.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/14093i80B4471D524A603C/image-size/large?v=v2&amp;amp;px=999" role="button" title="BGP-Example.png" alt="BGP-Example.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is what the SK shows below and I don't see any information anywhere else the says this can be done.&amp;nbsp; I have had SEs tell me it can be done, but no one that can tell me how....&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BGP-Example2.png" style="width: 626px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/14094i472B45D96DF5B57B/image-size/large?v=v2&amp;amp;px=999" role="button" title="BGP-Example2.png" alt="BGP-Example2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts or guidance?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Paul&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 02:03:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/AS-Path-prepending-to-two-different-peers-in-the-same-AS/m-p/132851#M19729</guid>
      <dc:creator>Paul_Warnagiris</dc:creator>
      <dc:date>2021-10-29T02:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: AS Path prepending to two different peers in the same AS</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/AS-Path-prepending-to-two-different-peers-in-the-same-AS/m-p/132852#M19730</link>
      <description>&lt;P&gt;Hello Paul,&lt;/P&gt;&lt;P&gt;Luckily , i have done this recently and the below is the configuration I used (peer R1 and peer R2 are the two ISP routers)&lt;/P&gt;&lt;P&gt;set routemap peerR1 id 15 on&lt;/P&gt;&lt;P&gt;set routemap peerR1 id 15 match network x.x.x.x/y all&lt;/P&gt;&lt;P&gt;set routemap peerR1 id 15 match protocol static&lt;/P&gt;&lt;P&gt;set routemap peerR1 id 15 action aspath-prepend-count 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;set routemap peerR2 id 15 on&lt;/P&gt;&lt;P&gt;set routemap peerR2 id 15 match network x.x.x.x/y all&lt;/P&gt;&lt;P&gt;set routemap peerR2 id 15 match protocol static&lt;/P&gt;&lt;P&gt;set routemap peerR2 id 15 action aspath-prepend-count 1 (or leave the line out for the default setting)&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 07:48:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/AS-Path-prepending-to-two-different-peers-in-the-same-AS/m-p/132852#M19730</guid>
      <dc:creator>Peter_Lyndley</dc:creator>
      <dc:date>2021-10-29T07:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: AS Path prepending to two different peers in the same AS</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/AS-Path-prepending-to-two-different-peers-in-the-same-AS/m-p/132864#M19734</link>
      <description>&lt;P&gt;Thanks for that.&amp;nbsp; That makes complete sense.&amp;nbsp; I guess the question I have is how do you apply it?&amp;nbsp; Is it applied anywhere?&amp;nbsp; I have used route maps like this before:&lt;/P&gt;&lt;P&gt;set routemap bgp-in-65534 id 10 match network 10.0.0.0/8 all&lt;/P&gt;&lt;P&gt;set routemap bgp-in-65534 id 10 match network 172.16.0.0/12 all&lt;/P&gt;&lt;P&gt;set routemap bgp-in-65534 id 10 match network 192.168.0.0/16 all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then I apply them like this:&lt;/P&gt;&lt;P&gt;set route-redistribution to bgp-as 65534 from bgp-as-number 53XXX network 10.7.0.0/24 action accept&lt;/P&gt;&lt;P&gt;set route-redistribution to bgp-as 65534 from bgp-as-number 53XXX network 10.7.0.0/24 match-type exact on&lt;/P&gt;&lt;P&gt;set route-redistribution to bgp-as 65534 from bgp-as-number 53XXX network 172.16.100.0/24 action accept&lt;/P&gt;&lt;P&gt;set route-redistribution to bgp-as 65534 from bgp-as-number 53XXX network 172.16.100.0/24 match-type exact on&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in the case above as long as my bgp-in-65534 routemap is matched and therefore in the BGP routing table I can then redistribute what I learned from 53XXX into 65534.&amp;nbsp; But in this case I’m learning and announcing routes from AS to AS.&amp;nbsp; My question is how do I advertise routes or redistribute routes to two different peers differently, in the same AS.&amp;nbsp; Does that make sense?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see in your example below that if peerR1 matches x.x.x.x/y then the AS path should be prepended 10 times and if it matches from peerR2, prepend once.&amp;nbsp; Where in your config do you show who you announce that to?&amp;nbsp; Or do you?&amp;nbsp; I believe what you are doing is determining for yourself which path you should take based on what you learned from which router.&amp;nbsp; But what I'm trying to do is announce what I learned with prepended AS paths.&amp;nbsp; I can see how in your example you may be able to do something like set route-redistribution to bgp-as 11111 from &lt;FONT face="courier new,courier"&gt;[aggregate bgp-as-number bgp-as-path default-origin interface kernel ospf2 ospf2ase rip static route]&lt;/FONT&gt; but the “TO” part is only options are&amp;nbsp;&lt;FONT face="courier new,courier"&gt;[bgp ospf rip]&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is where I’m getting stuck.&amp;nbsp; Does my question make sense?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Paul&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 12:37:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/AS-Path-prepending-to-two-different-peers-in-the-same-AS/m-p/132864#M19734</guid>
      <dc:creator>Paul_Warnagiris</dc:creator>
      <dc:date>2021-10-29T12:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: AS Path prepending to two different peers in the same AS</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/AS-Path-prepending-to-two-different-peers-in-the-same-AS/m-p/132865#M19735</link>
      <description>&lt;P&gt;In the Cisco world I would have done it like this:&lt;/P&gt;&lt;P&gt;router bgp xxxxx&lt;BR /&gt;bgp log-neighbor-changes&lt;BR /&gt;network 65.xxx.xxx.0 mask 255.255.255.0&lt;BR /&gt;neighbor 144.xxx.xxx.49 remote-as 9321&lt;BR /&gt;neighbor 144.xxx.xxx.49 route-map to-vz out&lt;BR /&gt;!&lt;BR /&gt;access-list 10 permit 65.xxx.xxx.0 0.0.0.255&lt;BR /&gt;access-list 10 deny any&lt;BR /&gt;!&lt;BR /&gt;route-map to-vz permit 10&lt;BR /&gt;match ip address 10&lt;BR /&gt;set as-path prepend 53xxx 53xxx 53xxx&lt;BR /&gt;!&lt;BR /&gt;route-map to-vz permit 20&lt;BR /&gt;!&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 12:50:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/AS-Path-prepending-to-two-different-peers-in-the-same-AS/m-p/132865#M19735</guid>
      <dc:creator>Paul_Warnagiris</dc:creator>
      <dc:date>2021-10-29T12:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: AS Path prepending to two different peers in the same AS</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/AS-Path-prepending-to-two-different-peers-in-the-same-AS/m-p/132869#M19737</link>
      <description>&lt;P&gt;hi Paul,&lt;/P&gt;&lt;P&gt;set bgp external remote-as 65534 peer 192.168.1.1 export-routemap peerR1 preference 1 on&lt;/P&gt;&lt;P&gt;set bgp external remote-as 65534 peer 192.168.1.1 export-routemap peerR2 preference 2 on&lt;/P&gt;&lt;P&gt;set bgp external remote-as 65534 peer 192.168.1.2 export-routemap peerR2 preference 1 on&lt;/P&gt;&lt;P&gt;set bgp external remote-as 65534 peer 192.168.1.1 export-routemap peerR1 preference 2 on&lt;/P&gt;&lt;P&gt;or similar to suit your environment&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 14:13:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/AS-Path-prepending-to-two-different-peers-in-the-same-AS/m-p/132869#M19737</guid>
      <dc:creator>Peter_Lyndley</dc:creator>
      <dc:date>2021-10-29T14:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: AS Path prepending to two different peers in the same AS</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/AS-Path-prepending-to-two-different-peers-in-the-same-AS/m-p/132871#M19738</link>
      <description>&lt;P&gt;Boom!&amp;nbsp; You are the man. That was the missing piece.&amp;nbsp; I appreciate your time.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 14:29:29 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/AS-Path-prepending-to-two-different-peers-in-the-same-AS/m-p/132871#M19738</guid>
      <dc:creator>Paul_Warnagiris</dc:creator>
      <dc:date>2021-10-29T14:29:29Z</dc:date>
    </item>
  </channel>
</rss>

