Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Jeff_Post
Participant

BGP routemap

Hi Everyone,

  I was hoping to get some help on advertising specific BGP routes via a routemap.  We have a VPN between our Checkpoint 5000 series gateway cluster running R81.10 and an Azure Virtual network gateway with BGP routing.  I am looking to advertise only the following routes:

10.100.16.0/24, 10.150.30.0/24, 10.150.40.0/24, and 10.70.75.0/24.  I have a routemap

set routemap BOYAzureexport id 20 on
set routemap BOYAzureexport id 20 allow
set routemap BOYAzureexport id 20 match network 10.100.16.0/24 all
set routemap BOYAzureexport id 20 match network 10.150.30.0/24 all
set routemap BOYAzureexport id 20 match network 10.150.40.0/24 all
set routemap BOYAzureexport id 20 match network 10.70.75.0/24 all
set routemap BOYAzureexport id 20 action aspath-prepend-count 1

 

To apply the routemap I used:

set bgp external remote-as 65512 export-routemap BOYAzureexport preference 10 on

 

I thought perhaps since I have an action in the routemap with id 20, I needed to duplicate that with id 21 without an action, but that didn't work either. 

set routemap BOYAzureexport id 21 on
set routemap BOYAzureexport id 21 allow
set routemap BOYAzureexport id 21 match network 10.60.16.0/24 all
set routemap BOYAzureexport id 21 match network 10.200.50.0/24 all
set routemap BOYAzureexport id 21 match network 10.200.60.0/24 all
set routemap BOYAzureexport id 21 match network 10.60.65.0/24 all

I can get BGP to advertise all my static routes by adding

set routemap BOYAzureexport id 21 on
set routemap BOYAzureexport id 21 allow
set routemap BOYAzureexport id 21 match protocol static

But I don't want to advertise the static route table to Azure.

Any help would be appreciated.

Thank you,

Jeff

 

0 Kudos
0 Replies

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events