Code: Select all
/ip route print detail where routing-mark=VRF1 dst-address=192.168.99.11/32
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, B - blackhole, U - unreachable, P - prohibit
0 ADb dst-address=192.168.99.11/32 gateway=192.168.99.2 gateway-status=192.168.99.2 recursive via 192.168.98.33 ether1 distance=200 scope=40 target-scope=30 routing-mark=VRF1 bgp-as-path="65000"
bgp-local-pref=50 bgp-med=0 bgp-origin=incomplete bgp-ext-communities="RT:65010:0,RT:65010:2"
1 Db dst-address=192.168.99.11/32 gateway=192.168.99.1 gateway-status=192.168.99.1 recursive via 192.168.98.33 ether1 distance=200 scope=40 target-scope=30 routing-mark=VRF1 bgp-as-path="65000"
bgp-local-pref=150 bgp-med=0 bgp-origin=incomplete bgp-ext-communities="RT:65010:0,RT:65010:2"
When disabling peer 192.168.99.2 (pref 50), the route via 192.168.99.1 (pref 150) becomes active
Code: Select all
/routing bgp peer disable numbers=2
/ip route print detail where routing-mark=VRF1 dst-address=192.168.99.11/32
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, B - blackhole, U - unreachable, P - prohibit
0 ADb dst-address=192.168.99.11/32 gateway=192.168.99.1 gateway-status=192.168.99.1 recursive via 192.168.98.33 ether1 distance=200 scope=40 target-scope=30 routing-mark=VRF1 bgp-as-path="65000"
bgp-local-pref=150 bgp-med=0 bgp-origin=incomplete bgp-ext-communities="RT:65010:0,RT:65010:2"
Code: Select all
/routing bgp peer enable numbers=2
/ip route print detail where routing-mark=VRF1 dst-address=192.168.99.11/32
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, B - blackhole, U - unreachable, P - prohibit
0 ADb dst-address=192.168.99.11/32 gateway=192.168.99.2 gateway-status=192.168.99.2 recursive via 192.168.98.33 ether1 distance=200 scope=40 target-scope=30 routing-mark=VRF1 bgp-as-path="65000"
bgp-local-pref=50 bgp-med=0 bgp-origin=incomplete bgp-ext-communities="RT:65010:0,RT:65010:2"
1 Db dst-address=192.168.99.11/32 gateway=192.168.99.1 gateway-status=192.168.99.1 recursive via 192.168.98.33 ether1 distance=200 scope=40 target-scope=30 routing-mark=VRF1 bgp-as-path="65000"
bgp-local-pref=150 bgp-med=0 bgp-origin=incomplete bgp-ext-communities="RT:65010:0,RT:65010:2"
Code: Select all
/routing bgp vpnv4-route print detail where dst-address=192.168.99.11/32
Flags: L - label-present
0 L route-distinguisher=192.168.99.1:0 dst-address=192.168.99.11/32 gateway=192.168.99.1 interface=ether1 in-label=10029 out-label=10029 bgp-as-path="65000" bgp-local-pref=150 bgp-med=0 bgp-origin=incomplete
bgp-ext-communities="RT:65010:0,RT:65010:2"
1 L route-distinguisher=192.168.99.2:0 dst-address=192.168.99.11/32 gateway=192.168.99.2 interface=ether1 in-label=20025 out-label=20025 bgp-as-path="65000" bgp-local-pref=50 bgp-med=0 bgp-origin=incomplete
bgp-ext-communities="RT:65010:0,RT:65010:2"