RE: BGP MED

From: Jason (jgraun@xxxxxxxxx)
Date: Fri Apr 05 2002 - 23:37:12 GMT-3


   
Well iBGP as an Admin distance of 200 while eBGP has an admin distance
of 20

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Peter Dostal
Sent: Friday, April 05, 2002 6:58 PM
To: ccielab@groupstudy.com
Subject: BGP MED

I have a problem with BGP path selection process. Based on the BGP path
selection process I would say that router R2 should choose iBGP path
over
eBGP (because of lower MED). Any suggestions?
Thanks,

Peter

R1----FrameRelay----R2
| |
------Ethernet-------
          |
          R3

*********************************************
hostname R1
!
interface FastEthernet1/1
 ip address 192.168.2.3 255.255.255.0
!
interface Serial1/0
 ip address 192.168.1.1 255.255.255.0
 encapsulation frame-relay
 no keepalive
 no fair-queue
 frame-relay interface-dlci 100
!
router bgp 2
 bgp log-neighbor-changes
 neighbor 192.168.1.2 remote-as 2
 neighbor 192.168.1.2 next-hop-self
 neighbor 192.168.2.1 remote-as 1
 neighbor 192.168.2.1 route-map BGP_MAP in
 no auto-summary
!
route-map BGP_MAP permit 10
 set local-preference 100

*********************************************
hostname R2
!
interface FastEthernet0/0
 ip address 192.168.2.2 255.255.255.0
!
interface Serial0/0
 ip address 192.168.1.2 255.255.255.252
 encapsulation frame-relay
 no keepalive
 no fair-queue
 frame-relay interface-dlci 100
!
router bgp 2
 bgp log-neighbor-changes
 neighbor 192.168.1.1 remote-as 2
 neighbor 192.168.1.1 next-hop-self
 neighbor 192.168.2.1 remote-as 1
 neighbor 192.168.2.1 route-map BGP_MAP in
 no auto-summary
!
route-map BGP_MAP permit 10
 set local-preference 100
!
*********************************************
hostname R3
!
interface FastEthernet0/1
 ip address 192.168.2.1 255.255.255.0
!
interface Loopback0
 ip address 170.2.1.1 255.255.255.240
!
router bgp 1
 bgp log-neighbor-changes
 network 170.2.1.0 mask 255.255.255.240
 neighbor 192.168.2.2 remote-as 2
 neighbor 192.168.2.2 route-map BGP_MAP out
 neighbor 192.168.2.3 remote-as 2
 no auto-summary
!
route-map BGP_MAP permit 10
 set metric 20

*********************************************
R1#sh ip bgp
BGP table version is 8, local router ID is 172.10.1.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
*> 170.2.1.0/28 192.168.2.1 0 100 0 1 i
* i 192.168.1.2 20 100 0 1 i
*********************************************
R2#sh ip bgp
BGP table version is 8, local router ID is 192.168.2.2
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
* i170.2.1.0/28 192.168.1.1 0 100 0 1 i
*> 192.168.2.1 20 100 0 1 i
*********************************************



This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 10:57:57 GMT-3