← Back to Posts

Quiz Question

BGP qustion | Why router R2 choose route via 172.16.27.0 even when metric was higher 150?

R2#sh running-config | sec bgp
router bgp 1000
 bgp log-neighbor-changes
 redistribute connected
 neighbor 10.12.0.1 remote-as 1000
 neighbor 172.16.25.0 remote-as 64513
 neighbor 172.16.26.0 remote-as 64512
 neighbor 172.16.27.0 remote-as 64512
R2#
R2#show ip bgp 198.51.100.0
BGP routing table entry for 198.51.100.0/32, version 10
Paths: (3 available, best #3, table default)
  Advertised to update-groups:
     2         
  Refresh Epoch 2
  64513 65000
    172.16.25.0 from 172.16.25.0 (172.32.5.0)
      Origin incomplete, localpref 100, valid, external
      rx pathid: 0, tx pathid: 0
  Refresh Epoch 1
  64512 65000
    172.16.26.0 from 172.16.26.0 (172.32.6.0)
      Origin incomplete, metric 140, localpref 100, valid, external
      rx pathid: 0, tx pathid: 0
  Refresh Epoch 1
  64512 65000
    172.16.27.0 from 172.16.27.0 (6.6.2.2)                   ---> WHY Router selected it?
      Origin incomplete, metric 150, localpref 100, valid, external, best
      rx pathid: 0, tx pathid: 0x0