Vídeo sobre BGP no RouterOS v7.
.
.
.
.
Caso deseja contribuir vou estar deixando a chave pix: 56766764-8f9e-4dec-b998-52887b0043a9
Link do grupo do whatsapp: https://chat.whatsapp.com/KcnZJ6kWjt2...
.
.
.
.
.
.
.
#Config realizada no mikrotik:
/routing bgp template
set AS-64888 as=64888 disabled=no name=AS-64888 router-id=100.100.100.1 \
routing-table=main
/ip address
add address=172.16.0.2/30 interface=ether1 network=172.16.0.0
add address=100.100.100.1 interface=lo network=100.100.100.1
/ip firewall address-list
add address=100.100.100.0/22 list=PREFIXO-AS-64888
add address=100.100.100.0/23 list=PREFIXO-AS-64888
add address=100.100.100.0/24 list=PREFIXO-AS-64888
add address=100.100.101.0/24 list=PREFIXO-AS-64888
add address=100.100.102.0/24 list=PREFIXO-AS-64888
add address=100.100.103.0/24 list=PREFIXO-AS-64888
add address=100.100.102.0/23 list=PREFIXO-AS-64888
add address=0.0.0.0/0 list=Default-Route-IPv4
/ip route
add blackhole disabled=no dst-address=100.100.100.0/22 gateway="" \
routing-table=main suppress-hw-offload=no
add blackhole disabled=no distance=1 dst-address=100.100.100.0/23 gateway="" \
routing-table=main scope=30 suppress-hw-offload=no
add blackhole disabled=no distance=1 dst-address=100.100.100.0/24 gateway="" \
routing-table=main scope=30 suppress-hw-offload=no
add blackhole disabled=no distance=1 dst-address=100.100.101.0/24 gateway="" \
routing-table=main scope=30 suppress-hw-offload=no
add blackhole disabled=no distance=1 dst-address=100.100.102.0/24 gateway="" \
routing-table=main scope=30 suppress-hw-offload=no
add blackhole disabled=no distance=1 dst-address=100.100.103.0/24 gateway="" \
routing-table=main scope=30 suppress-hw-offload=no
add blackhole disabled=no distance=1 dst-address=100.100.102.0/23 gateway="" \
routing-table=main scope=30 suppress-hw-offload=no
add disabled=no distance=250 dst-address=0.0.0.0/0 gateway=172.16.0.1 pref-src=\
100.100.100.1 routing-table=main scope=30 suppress-hw-offload=no \
target-scope=10
/routing bgp connection
add address-families=ip as=64888 disabled=no local.role=ebgp name=\
OPERADORA-IPv4 nexthop-choice=force-self output.filter-chain=\
AS64888-C01-IPv4-OUT .network=PREFIXO-AS-64888 .redistribute=\
connected,static remote.address=172.16.0.1/32 .as=64999 router-id=\
100.100.100.1 routing-table=main templates=AS-64888
/routing filter rule
add chain=AS64888-C01-IPv4-IN disabled=no rule=\
"if (dst == 0.0.0.0/0) { accept; }"
add chain=AS64888-C01-IPv4-IN disabled=no rule="reject;"
add chain=AS64888-C01-IPv4-OUT disabled=no rule=\
"if (dst in 100.100.100.0/22 && dst-len in 22-24) { accept; }"
add chain=AS64888-C01-IPv4-OUT disabled=no rule="reject;"