From: ying chang (ying_c@xxxxxxxxxxx)
Date: Sat Apr 13 2002 - 09:32:44 GMT-3
By default, whichever arrives first will be chosen when they come from the
same eBGP peers. Below is the command if you want to change the default:
bgp bestpath compare-routerid
To compare similar routes received from external BGP (eBGP) peers during the
best path selection process and switch the best path to the route with the
lowest router ID, use the bgp bestpath compare-routerid command in router
configuration mode. To return the router to the default setting, use the no
form of this command.
>From: "Hung, Sing-Yu" <Sing-Yu.Hung@pccw.com>
>Reply-To: "Hung, Sing-Yu" <Sing-Yu.Hung@pccw.com>
>To: ccielab@groupstudy.com
>Subject: bgp router id?
>Date: Sat, 13 Apr 2002 14:56:41 +0800
>
>Hi,
>
> Does bgp will prefer the path with the lowest router ID? Why
>172.16.4.0 route will prefer 10.10.10.6 with have a higher router ID?
>
>
>r7#bgp 172.16.4.0
>BGP routing table entry for 172.16.4.0/24, version 5
>Paths: (2 available, best #2)
> Advertised to non peer-group peers:
> 10.10.10.8
> 600
> 10.10.10.5 (metric 20) from 10.10.10.5 (10.10.10.5)
> Origin IGP, localpref 100, valid, external, ref 2
> 600
> 10.10.10.6 (metric 20) from 10.10.10.6 (10.10.10.6)
> Origin IGP, localpref 100, valid, external, best, ref 2
>
>r5#bgp
>BGP table version is 10, local router ID is 10.10.10.5
>Status codes: s suppressed, d damped, h history, * valid, > best, i -
>internal
>Origin codes: i - IGP, e - EGP, ? - incomplete
>* 172.16.4.0/24 10.10.10.5 0 600 i
>*> 10.10.10.6 0 600 i
>
>r7#
>router bgp 500
> neighbor 10.10.10.5 remote-as 600
> neighbor 10.10.10.5 ebgp-multihop 255
> neighbor 10.10.10.5 update-source Loopback0
> neighbor 10.10.10.6 remote-as 600
> neighbor 10.10.10.6 ebgp-multihop 255
> neighbor 10.10.10.6 update-source Loopback0
>
>
>
>
>Bradford Hung
This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 10:58:07 GMT-3