Skip to main content
Bubbabowski
New Member
March 15, 2019
Solved

Set network prefix for second BGP Neighbor only

  • March 15, 2019
  • 1 reply
  • 5362 views

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?

    Best answer by 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

    1 reply

    vinceneil666
    New Member
    March 15, 2019

    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
    New Member
    March 18, 2019

    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
    New Member
    March 18, 2019

    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