Setup my mikrotik as a bgp client from public route server

Hello, for learning purposes i would like to setup my mikrotik router to receive bgp information from public bgp servers like RIPE RIS live or Routeviews, i’ve already tried to setup using remote adress remote as etc but i can’t get it to work. The most of the time i get an error “bad remote as for the current local role” any help would be appreciated.

Thank you

Start by basics, read what is iBGP what is eBGP, and in which case what ASNs should be used.
There are a lot of articles and examples out on the internet, very very basic stuff is also in the manual:
https://help.mikrotik.com/docs/spaces/ROS/pages/328220/BGP#BGP-BGPBasics

like this…:

/routing bgp connection
add address-families=ipv6 (or ip) as=your_as disabled=no input.filter=eBGP-peer-in local.address=your_addr .role=ebgp-peer multihop=yes name=eBGP-peer-v6-1 output.filter-chain=eBGP-peer-out .network=bgp-networks remote.address=remote_addr .as=remote_as routing-table=main
add address-families=ipv6 (or ip) as=your_as disabled=no input.filter=eBGP-peer-in local.address=your_addr .role=ebgp-peer multihop=yes name=eBGP-peer-v6-2 output.filter-chain=eBGP-peer-out .network=bgp-networks remote.address=remote_addr .as=remote_as routing-table=main

For info i don’t own an ASN myself it is for learning purposes.

Can you give me an example configuration connecting to RIPE RIS live or Routeviews server but i don’t have ASN (it’s maybe a problem?)

I’m not using RIPE RIS live or Routeviews server, this example is for Cymru bogons BGP session.