bgp med comparision.

From: Chen Kwong Wai William (kwchen@netvigator.com)
Date: Tue Aug 12 2003 - 13:55:22 GMT-3


Dear all,

    Can any one explain to me what is the usage of these bgp commands,

    bgp deterministic-med
    bgp med missing-as-worst
    bgp always-compare-med

    I've try the following lab to test the commands

    (Route A) ----- (Router B) ---- (Router C)

    Both Router A & C generate a 150.150.150.0/24 router to Router B, and I
turn on the above three commands on Router B, and however, I cannot get the
"true" result.

       RouterB#sh ip bgp
       BGP table version is 3, local router ID is 193.16.0.1
       Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal
       Origin codes: i - IGP, e - EGP, ? - incomplete

           Network Next Hop Metric LocPrf
Weight Path
      *> 150.150.150.0/24 172.16.0.18 0
0 65532 i
      * 193.16.0.2 100
0 65530 i

      RouterB#sh run | begin bgp
      router bgp 65531
      bgp always-compare-med
      bgp log-neighbor-changes
      bgp deterministic-med
      bgp bestpath med missing-as-worst
      neighbor 172.16.0.18 remote-as 65532
      neighbor 193.16.0.2 remote-as 65530
      !

      RouterA#sh run | begin bgp
      router bgp 65530
      bgp log-neighbor-changes
      network 150.150.150.0 mask 255.255.255.0
      neighbor 193.16.0.1 remote-as 65531
      neighbor 193.16.0.1 route-map setmed out
      !

      RouterC#sh run | begin bgp
      router bgp 65532
      bgp router-id 4.4.4.4
      bgp log-neighbor-changes
      network 150.150.150.0 mask 255.255.255.0
      neighbor 172.16.0.17 remote-as 65531
      !

Best Regards,
William Chen



This archive was generated by hypermail 2.1.4 : Tue Sep 02 2003 - 18:53:57 GMT-3