Blog Network

MikroTik BGP Examples

MikroTik BGP Examples
Netbudur Blog Infrastructure, hosting and server guides

RouterOS v7 BGP yapılandırması v6’dan farklıdır: connection, template ve session nesneleri ayrılmıştır; local.role zorunludur. Eski komutlar doğrudan kopyalanmamalıdır.

Laboratuvar örneği

/routing bgp template
add name=netbudur-ebgp as=65010 router-id=192.0.2.1 output.network=bgp-networks

/ip firewall address-list
add list=bgp-networks address=203.0.113.0/24

/ip route
add dst-address=203.0.113.0/24 blackhole

/routing bgp connection
add name=upstream1 remote.address=198.51.100.1 remote.as=65020 local.role=ebgp templates=netbudur-ebgp

Değerler örnektir. output.network listesindeki prefix’in route tablosunda eşleşen rotası bulunmalıdır. Gerçek ağda giriş/çıkış filtreleri kurulmadan oturum açılmamalı; yalnızca yetkili prefix’ler ilan edilmelidir. Önce export alın, ayrı yönetim erişimini doğrulayın ve laboratuvarda test edin.

Resmî teknik kaynaklar

Official technical sources

Check the vendor’s current documentation before applying version-specific steps.

Related service

Netbudur Network Altyapısı →