Master CCNA

How to Master CCNA Ebook

 

 

My book will help you Master CCNA

Master CCNP SWITCH

How to master CCNP SWITCH ebook

 

 

My book will help you Master CCNP SWITCH

Master CCNP ROUTE

How to master CCNP ROUTE Ebook

 

 

My book will help you Master CCNP ROUTE

Print

BGP Attribute Local Preference

Written by Rene Molenaar on . Posted in BGP

Scenario:

You work as a network engineer for a laboratium in San Francisco which is specialized in genetic engineering. To exchange research information with other laboratoria and universities you have built a network using BGP. At this moment you have not configured any path selection for BGP and you want to make sure you have a little more control to influence your routing. Local preference is one of the BGP attributes that you are going to use to fix this.

Goal:

  • All IP addresses have been preconfigured for you as specified in the topology picture.
  • Configure IBGP within AS 1.
  • Configure EBGP between router Franklin and Jacobs.
  • Configure EBGP between router Jacobs and Pinto.
  • Configure EBGP between router Pinto and Franco.
  • Configure EBGP between router Hunisker and Franco.
  • Advertise all networks from AS1, AS2, AS3 and AS4 in BGP.
  • Ensure AS1 can reach any network in AS2, AS3 or AS4.
  • You are only allowed to use the local preference attribute for the upcoming tasks.
  • Configure router Franklin so all networks learned through EBGP have a local preference of 500.
  • Configure router Hunisker so network 6.6.6.0/24 has a local preference of 600.
  • Configure router Hunisker so all networks from AS 4 have a local preference of 700.
  • Configure router Hunisker so network 66.66.66.0/24 has a local preference of 800, you are not allowed to use an access-list.

IOS:

c3640-jk9o3s-mz.124-16.bin

Topology:

BGP Attribute Local Preference

Video Solution:

You need to a flashplayer enabled browser to view this YouTube video

You need to register to download the GNS3 Topology File. (Registration is Free!)

Related Articles
Only registered users can write comments!

Comments (10)

  • avatar
    mardout

    It's a good lab. Yes, I like it. But, unfortunately, I don't see any discussion here. So, I have aquestion.
    What is the point of tuning Local preference on Hunisker router for network 1.1.1.0/24 which is internal for AS1.

  • avatar
    Thuan Do

    Can we use prefix-list instead?

  • avatar
    angipp01

    "Configure router Hunisker so network 1.1.1.0/24 has a local preference of 800, you are not allowed to use an access-list."

    I am have diffululty with this last step. Can someone help me.
    router bgp 1
    no synchronization
    bgp log-neighbor-changes
    neighbor 1.1.1.1 remote-as 1
    neighbor 1.1.1.1 update-source Loopback0
    neighbor 1.1.1.1 route-map R1 in
    neighbor 2.2.2.2 remote-as 1
    neighbor 2.2.2.2 update-source Loopback0
    neighbor 2.2.2.2 next-hop-self
    neighbor 3.3.3.3 remote-as 1
    neighbor 3.3.3.3 update-source Loopback0
    neighbor 3.3.3.3 next-hop-self
    neighbor 3.3.3.3 route-map localR6 in
    neighbor 7.7.7.7 remote-as 4
    neighbor 7.7.7.7 ebgp-multihop 2
    neighbor 7.7.7.7 update-source Loopback0
    neighbor 7.7.7.7 route-map AS4 in
    no auto-summary
    ip prefix-list 2 seq 5 permit 1.1.1.0/24 le 32
    access-list 1 permit 6.6.6.0 0.0.0.255
    access-list 1 permit 7.7.7.0 0.0.0.255
    !
    !
    !
    route-map localR6 permit 10
    match ip address 1
    set local-preference 600
    !
    route-map localR6 permit 20
    !
    route-map AS4 permit 10
    match ip address 1
    set local-preference 700
    !
    route-map AS4 permit 20
    !
    route-map R1 permit 10
    match ip address 1
    set local-preference 800
    !
    route-map R1 permit 20


  • avatar
    angipp01

    I beleive the last step cannot work.
    In the lasb it states to only advertise routes into BGP for AS2-4 not AS1. This is why you will not show any internet networks in BGP "show ip bgp." Therefore, you cannot set local pref, to 1.1.1.0 network.

  • avatar
    jarisaizprua

    Where should be the connected networks 6.6.6.0/24 and 1.1.1.0/24?????

  • avatar
    jarisaizprua

    Sorry, I didn't realize about the configuration's file that it's included here.

  • avatar
    jarisaizprua

    Done,

    How do you expect to apply a BGP route policy to the network 1.1.1.0/24 which is only in the IGP table????

    Only the routers FRANKLIN and HUNISKER have different configuration.

    ##############################################################
    !
    hostname FRANKLIN
    !
    router bgp 1
    bgp default local-preference 500
    neighbor 1.1.1.1 remote-as 1
    neighbor 1.1.1.1 update-source Loopback0
    neighbor 1.1.1.1 next-hop-self
    neighbor 2.2.2.2 remote-as 1
    neighbor 2.2.2.2 update-source Loopback0
    neighbor 2.2.2.2 next-hop-self
    neighbor 4.4.4.4 remote-as 1
    neighbor 4.4.4.4 update-source Loopback0
    neighbor 4.4.4.4 next-hop-self
    neighbor 5.5.5.5 remote-as 2
    neighbor 5.5.5.5 ebgp-multihop 2
    neighbor 5.5.5.5 update-source Loopback0
    neighbor 5.5.5.5 default-originate
    !
    ##############################################################
    !
    hostname HUNISKER
    !
    router bgp 1
    neighbor 1.1.1.1 remote-as 1
    neighbor 1.1.1.1 update-source Loopback0
    neighbor 1.1.1.1 next-hop-self
    neighbor 2.2.2.2 remote-as 1
    neighbor 2.2.2.2 update-source Loopback0
    neighbor 2.2.2.2 next-hop-self
    neighbor 3.3.3.3 remote-as 1
    neighbor 3.3.3.3 update-source Loopback0
    neighbor 3.3.3.3 next-hop-self
    neighbor 3.3.3.3 route-map AS4-NETWORK6 in
    neighbor 7.7.7.7 remote-as 4
    neighbor 7.7.7.7 ebgp-multihop 2
    neighbor 7.7.7.7 update-source Loopback0
    neighbor 5.5.5.5 default-originate
    neighbor 7.7.7.7 route-map AS4-NETWORK6 in
    !
    ip as-path access-list 1 permit ^4$
    !
    access-list 1 permit 6.6.6.0 0.0.0.255
    !
    route-map AS4-NETWORK6 permit 10
    match ip address 1
    set local-preference 600
    !
    route-map AS4-NETWORK6 permit 20
    match as-path 1
    set local-preference 700
    !
    route-map AS4-NETWORK6 permit 30
    !
    ##############################################################

  • avatar
    jarisaizprua

    For HUNISKER, the next line shouldn't be there, I made a mistake when I copied from Notepad.

    neighbor 5.5.5.5 default-originate

    It should:

    neighbor 7.7.7.7 default-originate

  • avatar
    ReneMolenaar

    Hi Guys,

    This lab had one of my monday-morning errors ;D Network 1.1.1.0/24 is internal to AS 1 so this task didn't make any sense. I just changed it and also created the final configurations + Video solution. Let me know if you still have any questions.

    Rene

  • avatar
    uscallesen

    Brilliant lab - as always there just so much more to it than meets the eye !