CiscoTik

Networking Administration

CiscoTik

Networking Administration

CiscoTik

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

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

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

شکل فوق خروجی دستور sh ip bgp بر روی R2 میباشد.دستور redistribute connected که در R1 زده شد،تمام loopback های روتر 1 را در R2 تبلیغ کرد.البته دستور فوق بدین شکل در R1 زده شد:

R1(config-router)#redistribute connected metric 100

که یعنی تمام loopback های R1 در R2 تبلیغ شوند البته با متریک 100. همانطور که در شکل فوق میبینیم تمامی اینترفیس ها دارای متریک برابر 100 هستند...


شکل زیر(خروجی) بعد از نوشتتن route-map در R2 میباشد که بیانگر اینست ip های زوج وفرد دارای مقادیر متفاتی(weight و local-pref) میباشند.(به قسمت all config در روتر 2 توجه کنید)

 



بعد از تغییرات نهایی





نکته : دستور access-list 1 permit 131.108.0.0 0.0.254.0  بیانگر IP های زوج است.

all configs

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

R1

router bgp 1
redistribute connected metric 100
neighbor 131.108.255.2 remote-as 2
neighbor 131.108.255.6 remote-as 2
no auto-summary


R2

router bgp 2
network 161.108.1.0 mask 255.255.255.0
neighbor 131.108.255.1 remote-as 1
neighbor 131.108.255.1 route-map setweight in
neighbor 131.108.255.5 remote-as 1
neighbor 131.108.255.5 route-map setweight in
no auto-summary
!
access-list 1 permit 131.108.0.0 0.0.254.0
!
route-map setweight permit 10
match ip address 1
set local-preference 100
set weight 100

!

route-map setweight permit 20
set local-preference 200
set weight 200

نظرات (۱)

خیلی خوبه موفق باشی ادامه بده ..

ارسال نظر

ارسال نظر آزاد است، اما اگر قبلا در بیان ثبت نام کرده اید می توانید ابتدا وارد شوید.
شما میتوانید از این تگهای html استفاده کنید:
<b> یا <strong>، <em> یا <i>، <u>، <strike> یا <s>، <sup>، <sub>، <blockquote>، <code>، <pre>، <hr>، <br>، <p>، <a href="" title="">، <span style="">، <div align="">
تجدید کد امنیتی