Improve company productivity with a Business Account.Sign Up

x
?
Solved

BGP USING LOCAL_PREF & MED ATTRIBUTES

Posted on 2009-04-01
3
Medium Priority
?
464 Views
Last Modified: 2012-05-06
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#
0
Comment
Question by:mikey250
  • 2
3 Comments
 
LVL 43

Accepted Solution

by:
JFrederick29 earned 2000 total points
ID: 24041966
Change the network statement on ISP1A and ISP1B to the following:

ISP1A:

router bgp 200
no network 10.0.0.0
network 10.1.1.0 mask 255.255.255.252

ISP1B:

router bgp 400
no network 10.0.0.0
network 10.1.1.0 mask 255.255.255.252
0
 
LVL 43

Expert Comment

by:JFrederick29
ID: 24091218
Did my comment take care of this?
0
 

Author Comment

by:mikey250
ID: 24105583
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.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

New Server 172.16.200.2  was moved from behind Router R2 f0/1 to behind router R1 int f/01 and has now address 172.16.100.2. But we want users still to be able to connected to it by old IP. How to do it ? We can used destination NAT (DNAT).  In DNAT…
It happens many times that access list (ACL) have to be applied to outgoing router interface in order to limit some traffic.This article is about how to test ACL from the router which is not very intuitive for everyone. Below scenario shows simple s…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question