MERAprojects / ops-quagga

GNU General Public License v2.0
0 stars 0 forks source link

Incorrect AS path for BGP routes #1

Open xschily opened 8 years ago

xschily commented 8 years ago

sh In the attached topology on OpenSwitch-1 BGP router AS-path to OpenSwitch-3 will always be incorrect (either it will show route through OpenSwitch-2 with AS-path 64502 64503 or route through OpenSwitch-4 with AS-path 64501 64503)

xivamar commented 8 years ago
     OpenSwitch-1# show ip bgp
    Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
                  i internal, S Stale, R Removed
    Origin codes: i - IGP, e - EGP, ? - incomplete
    Local router-id 102.0.0.2
       Network          Next Hop            Metric LocPrf Weight Path
    *> 100.0.0.0/23     0.0.0.0                  0      0  32768  i
    *  101.0.0.0/20     101.0.0.1                0      0  32768 64501 i
    *> 101.0.0.0/20     102.0.0.1                0      0  32768 64501 i
    *  102.0.0.0/21     101.0.0.1                0      0  32768 64501 64502 i
    *> 102.0.0.0/21     102.0.0.1                0      0  32768 64502 i
    *> 103.0.0.0/22     101.0.0.1                0      0  32768 64501 64503 i
    *> 103.0.0.0/22     102.0.0.1                0      0  32768 64501 64503 i  <-- тут должно быть 64502 64503
    *> 120.0.0.0/24     101.0.0.1                0      0  32768 64501 64503 i  
    *> 120.0.0.0/24     102.0.0.1                0      0  32768 64501 64503 i  <-- тут должно быть 64502 64503
    Total number of entries 9
    OpenSwitch-1# 

Only one best route to network should be marked >. Presently all routes are marked as best. The path should be corresponding to nexthop. Now they are the same.