CiscoTik

Networking Administration

CiscoTik

Networking Administration

CiscoTik

آموزش شبکه های مبتنی بر سیسکو و میکروتیک و ...

طبقه بندی موضوعی
محبوب ترین مطالب
  • ۹۲/۱۲/۱۲
    eBGP
نویسندگان

۳ مطلب با کلمه‌ی کلیدی «bgp route reflector» ثبت شده است

  • ۲
  • ۰

BGP Route-Reflector 1

سلام.
سناریویی آماده کردم در مورد BGP Route Reflector .
.................................................................................

Consider a network consisting of 100 routers. Having this many routers leads to alarge number of TCP BGP peers. In fact, you can easily calculate the number of peers by using the formula n(n-1)/2, where n is the number of BGP routers.
NOTE

To avoid routing loops, BGP only propagates updates learned from IBGP connections to other IBGP sessions that are fully meshed. Fully meshed networks contain a BGP peer to every BGP speaker in the network. For a 100-router network, there are 100(100-1)/2 = 100(99)/2 = 4950 TCP peers.
IBGP works well in small networks, and as the network grows even to just 100 routers, the scalability and administration of BGP becomes a task you must carefully consider.
BGP deals with large BGP networks using two methods:
· Route reflectors
· Confederations (advanced form of route reflectors; confederations are beyond the scope of this chapter.)

شرح ، توضیحات و پیکربندی به شرح زیر میباشد.

..............................................................................

the Routers R1–R5 are part of a large company and route reflectors are configured on R1 and R2 for redundancy purposes.Enable OSPF on the IGP routers by enabling all interfaces in area 0, so you can take advantage of loopbacks for the source and destination address for all IBGP peer sessions.

onfigure IBGP on R1 and use the loopback addresses as the next hop addresses because as long as you have IP connectivity, BGP should remain active. In
fact, good IBGP design always uses loopbacks so that one routing failure does not result in loss (TCP fails) of IBGP connectivity.

lo 0 for all routers : 131.108.254.x (x is number of each routers)

ospf configs on all router : R1-R5:

R1(config)#router ospf 1
R1(config-router)# network 0.0.0.0 255.255.255.255 area 0


The reason that OSPF is chosen for the preferred path is that OSPF has a lower nadministrative distance of 110, compared to 200 for IBGP.

if EBGP is configured between two routers and OSPF is the interior routing protocol, EBGP administrative distance is 20, far lower than OSPF (AD is 110). By default, a lower AD is always preferred; therefore, the next hop address is the EBGP
314 connection.

To change this default behavior without the changing AD values, use the network <network subnet-mask> backdoor command. Specifying the network allows the router to choose OSPF as the preferred path rather than the EBGP discovered path.
Changing the administrative distance is not always the most desirable method because all routers typically need modification, as in this scenario.




  • ۲
  • ۰

eBGP

باسلام

امروز یک سناریو دیگه رو آماده کردم

شرح سناریو

..............................................................

You will notice that all the IP addressing schemes are /24, except for the serial link between R1 and R2. The serial link contains a mask, 255.255.255.252 or /30. BGP has no issues with VLSM. The 16 loopbacks on R1 are advertised to R2 using the redistribute connected command. The no-auto summary command ensures that R2 sees all 16 individual routes. The access list on R2 must be set with a mask of 0.0.254.255, or all even networks match these criteria. The dual-path connections between R1 and R2 allow redundancy. There are two EBGP sessions between R1 and R2; therefore, the route map on R2 is applied to both EBGP peers in case of link failure.


شکل شبیه سازی شده سناریوی




sho ip bgp on R2

  • ۲
  • ۰

BGP community

سلام

شرح سناریو

..........................................................................

R1 is configured for EBGP and IBGP. The EBGP connection to the remote peer address, 141.199.2.2, is the Internet gateway. Therefore, you must send the
community to the remote peer and apply an outbound route map, so the Internetrouters do not use R1 as a transit path. You have yet to apply the route map named setcommunity (arbitrary name).  Apply the well-known community no-export, which informs the neighboring router not to use R1 for any traffic not destined for the network 131.108.0.0/16.

configure the four routers, R1–R4, for IBGP, and set the same policies on all four routers.



comunity






ensure that R1 does not receive any default routes from R2, R3, or R4 (sets the next-hop-self attribut. Ensure that R1 sets the community to the value 2000.


R1(config)#route-map setcommunity
R1(config-route-map)#set community no-export
R1(config-router)#neighbor 141.199.2.2 route-map setcommunity out
یعنی مسیرهایی که با این مقدار دریافت میشوند،دیگر به همسایه های eBGP تبلیغ نشوند.یعنی به روتر 5 هیچ مسیری از AS1 تبلیغ نشود.