First of all I'm new to MT and RouterOS coming from IOS.
I have 2 established BGP sessions to 2 ISPs. I receive full updates from both of them. The problem is the network we are using (e.g. 1.2.3.0/24) is not advertised to them, no updates are sent from the edge router to the ISPs.
The network is added with "network" command. From what I've been told here on forum, (unlike cisco) there's no need for this network to be in the routing table in order to be advertised to the ISPs.
I use in filter to assign the local preference to the routes I receive and out filter to make sure nothing except the desired network is advertised and to prepend the ASN for the advertisments to the backup ISP. There's no redistribution involved.
Below is the actual BGP config (real IPs are not shown):
Code: Select all
/routing bgp instance
add as=12345 client-to-client-reflection=no disabled=no ignore-as-path-len=no name=BGP out-filter=\
"" redistribute-connected=no redistribute-ospf=no redistribute-other-bgp=no redistribute-rip=no \
redistribute-static=no router-id=1.2.3.1 routing-table=""
/routing bgp network
add disabled=no network=1.2.3.0/24 synchronize=no
/routing bgp peer
add address-families=ip as-override=no default-originate=never disabled=no hold-time=3m in-filter=\
isp1-in instance=BGP multihop=no name=isp1 nexthop-choice=default out-filter=isp1-out \
passive=no remote-address=1.1.1.1 remote-as=1111 remove-private-as=no route-reflect=no \
tcp-md5-key="" ttl=default use-bfd=no
add address-families=ip as-override=no default-originate=never disabled=no hold-time=3m in-filter=\
isp2-in instance=BGP multihop=no name=isp2 nexthop-choice=default out-filter=isp2-out \
passive=no remote-address=2.2.2.2 remote-as=2222 remove-private-as=no route-reflect=no \
tcp-md5-key="" ttl=default use-bfd=no
/routing filter
add action=accept bgp-origin=egp chain=isp1-out disabled=no invert-match=no prefix=1.2.3.0/24 \
set-bgp-prepend-path=""
add action=discard chain=isp1-out disabled=no invert-match=no set-bgp-prepend-path=""
add action=accept bgp-local-pref=500 chain=isp1-in disabled=no invert-match=no \
set-bgp-prepend-path=""
add action=accept bgp-origin=egp chain=isp2-out disabled=no invert-match=no prefix=1.2.3.0/24 \
set-bgp-prepend=3 set-bgp-prepend-path=""
add action=discard chain=isp2-out disabled=no invert-match=no set-bgp-prepend-path=""
add action=accept bgp-local-pref=100 chain=isp2-in disabled=no invert-match=no \
set-bgp-prepend-path=""