BGP Commands-Cisco VS Mikrotik
BGP Commands-Cisco VS Mikrotik
show ip bgp neighbor 1.1.1.1 advertised- routing bgp advertisements print peer=peer_name
routes
clear ip bgp 172.31.254.2 soft out routing bgp peer resend peer1
This is a command that will give you more detailed information about a BGP peer including MD5
auth, timers, prefixes received and the state of the peering as well as other info.
This will allow you to see what BGP prefixes are actually being advertised to a peer and the
nexthop that will be advertised
This will allow you to see what BGP prefixes are actually being received from a peer and the
nexthop that will be advertised
This will allow you to see what all BGP prefixes that are in the routing table – both active and not.
This is a slight difference between Cisco and MikroTik since Cisco keeps BGP routes that aren’t in
the routing table in the bgp table, whereas MikroTik routers keep all routes in the routing table
with a distinction between active and not.
This will allow you to force the BGP peer to resend all prefixes without tearing down the peering
– similar to a soft clear in Cisco IOS.
[admin@BGP-MikroTik] > routing bgp peer resend peer_name
This will allow you to force RouterOS to resend all prefixes to the peer without tearing down the
peering – similar to a soft clear in Cisco IOS.
Here is a very basic BGP peering config with the minimum required to get BGP running for
RouterOS. It includes setting the BGP AS, a peering and several networks to advertise.
This will configure the peering to originate or advertise a 0.0.0.0/0 route to the peer regardless of
whether or not a default route already exists in the routing table. You can use the
alternate default-originate=if-installed to only advertise a default route if one exists in the routing
table.