Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Bubbabowski
New Contributor

Set network prefix for second BGP Neighbor only

We are migrating our Internet circuit to BGP from static.  We already have an MPLS connection using BGP routing.  How do I announce our public IP block from the Internet circuit only?

Example: Our MPLS circuit is 1.1.1.1 and we're announcing internal networks (but this seems to be global and not specific to any neighbor).  Our Internet circuit will be 2.2.2.2 with local-as 65001.  The 'config network' command seems to be global, so how can I 'config network' and add a prefix of our public IP block 3.3.3.1/26 only for the Internet neighbor?

1 Solution
vinceneil666

Hi,

 

Yeah, as I staed above.. this should work.:) :

 

config router bgp set as 65001 config neighbor edit 1.1.1.1 set activate6 disable set soft-reconfiguration enable set prefix-list-out "FILTER-OUT"   and then    config router prefix-list edit "FILTER-OUT" config rule edit 1 set prefix 3.3.3.3/26 unset ge unset le next

View solution in original post

5 REPLIES 5
vinceneil666
Contributor

Not sure what I understand completley ? .. but here goes :) 

 

 

somthin like this:

 

config router bgp set as xxxxx

config neighbor

edit "ip.add.re.ss" set activate6 disable set soft-reconfiguration enable set prefix-list-out "FILTER-OUT" set remote-as 'number' set send-community6 disable

 

and then 

 

config router prefix-list edit "FILTER-OUT"

config rule edit 1

set prefix 'the prefix'

unset ge unset le next

Bubbabowski

Thanks for the response, I'll try to be more clear.  I don't want to announce our Public IP block from our MPLS bpg config, only from the internet bgp config.

 

 

config router bgp set as 65001 set router-id 172.16.0.1 config neighbor edit "1.1.1.1" set remote-as 100 set send-community6 disable next end config network edit 1 set prefix 172.16.0.0 255.255.0.0

config neighbor edit "2.2.2.2" set remote-as 100 set local-as 65002 set send-community6 disable next end config network edit 1 set prefix 3.3.3.3/26                   <--- How do I announce this for this neighbor only?

vinceneil666

Hi,

 

Yeah, as I staed above.. this should work.:) :

 

config router bgp set as 65001 config neighbor edit 1.1.1.1 set activate6 disable set soft-reconfiguration enable set prefix-list-out "FILTER-OUT"   and then    config router prefix-list edit "FILTER-OUT" config rule edit 1 set prefix 3.3.3.3/26 unset ge unset le next

Bubbabowski

Ok, great.  I just wanted to make sure I explained it right.  I'll give it a shot tonight.  Thanks!

Bubbabowski

One more Question.  Do you know how I could announce a network with the :999 community?  This will allow me to announce a network smaller than /24 to my network provider.  In the Cisco world, it would be "set community 100:999".  Thanks again.

 

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors