Skip to content
B BGPCast

Knowledge Base

How to connect your router to the BGPCast route server over BGP. Choose your hardware or software BGP implementation, copy the commands, and substitute your values from the app (peer IP, ASN).

1. Filter rules (next-hop to ISP + discard)
/routing filter rule
add chain=bgp_in comment="Nexthop to ISP" disabled=no rule="set gw <next-hop>; accept;"
add chain=discard disabled=no rule="reject;"
2. BGP template
/routing bgp template
add as=<your-asn> disabled=no name=bgpcast output.network=bgp-networks .no-client-to-client-reflection=yes routing-table=main
3. BGP connection
/routing bgp connection
add as=<your-asn> cisco-vpls-nlri-len-fmt=auto-bits connect=yes disabled=no hold-time=4m input.filter=bgp_in instance=bgp-instance-bgpcast keepalive-time=1m listen=yes \
    local.address=<your-ip> .role=ebgp multihop=yes name=bgpcast output.filter-chain=discard .network=bgp-networks .no-client-to-client-reflection=yes \
    remote.address=<bgpcast-ip> .as=<bgpcast-asn> routing-table=main templates=bgpcast vrf=main
4. Verify the session is established
/routing/bgp/session/print
Sign in to get your parameters

Common issues

Session not coming up (Active/Connect)
Check that <bgpcast-ip> is reachable and that outbound TCP/179 is not blocked by your firewall.
No established state, but port is open
Verify the ASN on both sides — they must match the parameters shown in the app.
Established, but 0 prefixes
Make sure you have subscribed to at least one category and that the peer is enabled in the app.
Session is flapping
A cloud peer requires multihop (TTL>1). Verify that multihop/ebgp-multihop is enabled.