MikroTik RouterOS Configuration

Configuration guide for MikroTik routers.

Terminal Command Template

/routing bgp instance
set default as=<YOUR_ASN> router-id=<YOUR_ROUTER_ID>

/routing bgp peer
add name=ixpn-rs1 remote-address=<neighbor-address> remote-as=<neighbor-as> instance=default
add name=ixpn-rs2 remote-address=<neighbor-address> remote-as=<neighbor-as> instance=default

/routing bgp network
add network=<YOUR_PREFIX> synchronize=no

Filter Configuration

Ideally, you should set up filters to only accept routes from the route servers and only advertise your own prefix.

/routing filter
add chain=ixpn-in action=accept
add chain=ixpn-out prefix=<YOUR_PREFIX> action=accept
add chain=ixpn-out action=discard