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.
BGP Attribute Local Preference
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:

Video Solution:
You need to register to download the GNS3 Topology File. (Registration is Free!)
- Related Articles
Comments (10)
-
mardout 2011-08-19 09:58:53
-
angipp01 2011-08-28 18:46:24"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
-
angipp01 2011-08-28 19:02:38I 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.
-
jarisaizprua 2011-08-29 19:35:44Where should be the connected networks 6.6.6.0/24 and 1.1.1.0/24?????
-
jarisaizprua 2011-08-29 20:07:54Sorry, I didn't realize about the configuration's file that it's included here.
-
jarisaizprua 2011-08-29 22:57:22Done,
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
!
##############################################################
-
jarisaizprua 2011-08-29 23:00:59For 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
-
ReneMolenaar 2011-09-05 17:14:30Hi 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
-
uscallesen 2011-09-08 13:34:09Brilliant lab - as always there just so much more to it than meets the eye !





