Avatar of jskfan
jskfanFlag for Cyprus

asked on 

BGP Local Preference

on the diagram below we can make R4  choose R3 instead of R2 to get to Network 1.1.1.0/24 behind R1
However, what if we have R5 on AS2 that has one link connected to R4 and one link connected to R2, then is R5 will choose R4 to get to 1.1.1.0/24 or it will choose R2  ?

R3(config)# route-map LocalPref permit 10
R3(config-route-map)#set local-preference 700

R3(config)# Router bgp 2
R3(config-router)neighbor 192.168.13.1 route-map LocalPref in



User generated image
RoutersNetworking ProtocolsNetwork Architecture

Avatar of undefined
Last Comment
jskfan
Avatar of Predrag Jovic
Predrag Jovic
Flag of Poland image

The way it is described it would be poorly designed network.

All BGP nodes inside of the same AS need be connected in full mesh. R4 when receives NLRIs from eBGP neighbors will never advertise those to another iBGP neighbor. NLRIs will be advertised only to directly connected eBGP neighbors. So, even if link between R5 and R3 do not exist you still need to configure R5 as neighbor for all other routers in the same AS (R2, R3 & R4 need to be configured as BGP peers for R5 even if some physical link is missing (physical link between R5 & R3)). Additionally BGP is relying on IGP to provide routes how to reach BGP peers.

There are 2 ways to go around full mesh rule:
 - BGP route reflectors
 - BGP confederations
But again, those are ways to reduce number of peering inside of AS and still have a "full mesh".
Avatar of jskfan
jskfan
Flag of Cyprus image

ASKER

do you mean, they need to be as shown below:
User generated image
Avatar of jskfan
jskfan
Flag of Cyprus image

ASKER

instead of physical Full Mesh:  N(N-1)/2  Links we can use:

BGP  Confederation OR Route Reflector
ASKER CERTIFIED SOLUTION
Avatar of Predrag Jovic
Predrag Jovic
Flag of Poland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of jskfan
jskfan
Flag of Cyprus image

ASKER

Thanks
Routers
Routers

A router is a networking device that forwards data packets between computer networks. Routers perform the "traffic directing" functions on the Internet. The most familiar type of routers are home and small office cable or DSL routers that simply pass data, such as web pages, email, IM, and videos between computers and the Internet. More sophisticated routers, such as enterprise routers, connect large business or ISP networks up to the powerful core routers that forward data at high speed along the optical fiber lines of the Internet backbone. Though routers are typically dedicated hardware devices, use of software-based routers has grown increasingly common.

49K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo