Hi guys,
I hope you're doing well. I have upgraded some dozens of CCRs from v6 to v7, they are running fine, but it looks like the prefix count information has been lost (or it changed location).
Thank you @DarkNate, I hope Mikrotik solves this bug soonPrefix count is dead on ROS v7.8 at least. You cannot verify how many routes a peer sent to you, but you can check how many routes you sent to a remote peer via /routing bgp ad print
Hi,
What would be the appropriate parameter? I would like to see all the prefixes being received from the IXP interface, they share the same BGP session (since it points to the route servers), but gateway addresses are different for certain prefixes.
Best regards
/routing :foreach item in=[bgp session find] do={ :local rnam "unknown" :local radd [bgp session get $item remote.address] :local prfix "32" :if ([:typeof $radd] = "ip6") do={:set prfix "128"} :local srch [bgp connection find where remote.address="$radd/$prfix"] :if ([:len $srch] = 1) do={:set rnam [bgp connection get $srch name]} :local cnt4 [:len [route find where belongs-to="bgp-IP-$radd"]] :local cnt6 [:len [route find where belongs-to="bgp-IP6-$radd"]] :put "BGP $radd ($rnam) IPv4 $cnt4 IPv6 $cnt6" }
For which version in V7 is this? It produces all peers with 0 as output for me on 7.9 (maybe because all my BGP sessions are in a separate VRF to isolate Control- and Data plane?)v7 only code
/routing :foreach item in=[bgp session find] do={ :local rnam "unknown" :local radd [bgp session get $item remote.address] :local prfix "32" :if ([:typeof $radd] = "ip6") do={:set prfix "128"} :local srch [bgp connection find where remote.address="$radd/$prfix"] :if ([:len $srch] = 1) do={:set rnam [bgp connection get $srch name]} :local cnt4 [:len [route find where belongs-to="bgp-IP-$radd"]] :local cnt6 [:len [route find where belongs-to="bgp-IP6-$radd"]] :put "BGP $radd ($rnam) IPv4 $cnt4 IPv6 $cnt6" }
BGP stats over SNMP was never available on MikroTik.and to my understanding, that also existed in previous Mikrotik software versions.
This gives me the information on IPv4 I've sent to peers, but doesn't seem to show IPv6 sent to peers. Either that or I'm not sending any routes to my IPv6 peers. I was just recently assigned an ASN, IPv4, and IPv6 from ARIN and I'm attempting to make sure I have it configured correctly. Is this supposed to show them all?Prefix count is dead on ROS v7.8 at least. You cannot verify how many routes a peer sent to you, but you can check how many routes you sent to a remote peer via /routing bgp ad print