Link to home
Start Free TrialLog in
Avatar of mikey250
mikey250

asked on

BGP USING LOCAL_PREF & MED ATTRIBUTES

i have configured 3 routers:

sanjose3 - main router
ISP1A - another route path
ISP1B - another route path

ive now added:

- a local_pref on ISP1A
- & a badmetric on ISP1A
- a goodmetric on ISP1B

- always compare on Sanjose3
sanjose3 - then "clear ip bgp *"
sanjose3 - then "sh ip bgp"

sanjose3#sh ip bgp
BGP table version is 2, local router ID is 200.100.50.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*> 200.100.50.0     0.0.0.0                  0         32768 i
sanjose3#

1.  according to my instructions after doing the "sh ip bgp" command, im supposed to see on sanjose3 2 paths to the 10.0.0.0 network but each path should have different metrics.  why can I only see one path as above?
-----------------------------------------------------
Building configuration...

Current configuration : 799 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname sanjose3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
!
!
!
!
interface Ethernet0
 ip address 200.100.50.1 255.255.255.0
!
 interface Serial0
 ip address 192.168.1.6 255.255.255.252
 clock rate 56000
 no fair-queue
!
interface Serial1
 ip address 172.24.1.17 255.255.255.252
 clock rate 56000
!
interface BRI0
 no ip address
 encapsulation hdlc
 shutdown
!
router bgp 300
 no synchronization
 bgp always-compare-med
 bgp log-neighbor-changes
 network 200.100.50.0
 neighbor 172.24.1.18 remote-as 400
 neighbor 192.168.1.5 remote-as 200
 no auto-summary
!
ip http server
ip classless
!
!
!
!
line con 0
line aux 0
line vty 0 4
 login
!
end

sanjose3#
---------------------------------------
Building configuration...

Current configuration : 878 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname ISP1A
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
!
!
!
!
interface Ethernet0
 no ip address
 shutdown
!
interface Serial0
 ip address 192.168.1.5 255.255.255.252
 no fair-queue
!
interface Serial1
 ip address 10.1.1.1 255.255.255.252
 clock rate 56000
!
router bgp 200
 no synchronization
 bgp log-neighbor-changes
 network 10.0.0.0
 neighbor 10.1.1.2 remote-as 400
 neighbor 10.1.1.2 route-map viaAS400 in
 neighbor 192.168.1.6 remote-as 300
 neighbor 192.168.1.6 route-map badmetric out
 no auto-summary
!
ip http server
ip classless
!
!
!
route-map viaAS400 permit 10
 set local-preference 150
!
route-map badmetric permit 10
 set metric 150
!
!
line con 0
 exec-timeout 0 0
line aux 0
line vty 0 4
 login
!
end

ISP1A#
--------------------------------
Building configuration...

Current configuration : 825 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname ISP1B
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
!
!
!
!
interface Ethernet0
 no ip address
 shutdown
!
interface Serial0
 ip address 172.24.1.18 255.255.255.252
 no fair-queue
!
interface Serial1
 ip address 10.1.1.2 255.255.255.252
!
interface BRI0
 no ip address
 encapsulation hdlc
 shutdown
!
router bgp 400
 no synchronization
 bgp log-neighbor-changes
 network 10.0.0.0
 neighbor 10.1.1.1 remote-as 200
 neighbor 172.24.1.17 remote-as 300
 neighbor 172.24.1.17 route-map goodmetric out
 no auto-summary
!
ip http server
ip classless
!
!
!
route-map goodmetric permit 10
 set metric 50
!
!
line con 0
 exec-timeout 0 0
line aux 0
line vty 0 4
 login
!
end

ISP1B#
ASKER CERTIFIED SOLUTION
Avatar of JFrederick29
JFrederick29
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Did my comment take care of this?
Avatar of mikey250
mikey250

ASKER

apologies for taking so long to reply. my account has not been accessible until today.

yes this did rectify the problem.  my instructions were wrong and i will have to whatch out for this kind of error in my instructions.