10-Laboratoriya ishi bgp protokolini sozlash va uning ishlash prinsipini o‘rganish Ishdan maqsad
Download 0.86 Mb. Pdf ko'rish
|
[R5] ping 10.0.0.1
10.12- rasm. Aloqa natijasi Ping o‗tmadi. Barcha uchta marshrut R5 marshrutlash jadvalida mavjud. BGP to‗g‗ri sozlanganligini bildiradi. Muammoni aniqlash uchun icmp debugging bilan ICMP protokoli bizga yordam beradi. Ko‗rib turganimizdek, R1 icmp echo paketlarini oladi va 5.228.35.5 manziliga javoban echo-javob yuboradi. 5.228.35.0/24 tarmog‗i R1 marshrutlash jadvalida mavjudligini tekshirish uchun ―display ip routing-table‖ buyrug‗idan foydalaniladi. R1 marshrutizatori 5.228.35.0/24 tarmog‗igacha bo‗lgan yo‗lni bilmaydi. Ushbu muammoni hal qilishning ikkita yo‗li mavjud. Eng oddiy yo‗li 5.228.35.0/24 tarmog‗ini bgp protokolida e‘lon qilishdir. Ikkinchi yo‗li marshrutizatorlar o‗rtasida qo‗shimcha IGP protokolini o‗rnatish va barcha kerakli tarmoqlarni e‘lon qilish orqali amalga oshirish mumkin. Bizda birinchi usuldan foydalaniladi. [R5]bgp 5000 [R5-bgp]network 5.228.35.0 24 Yana bir bor ―ping‖ buyrug‗i orqali aloqa tekshiriladi (10.13-rasm). 10.13- rasm. Aloqa natijasi 2-Misol. BGP sinfsiz manzillashni qo‗llab-quvvatlaydi va marshrutlash jadvallarini qisqartirish uchun marshrutni umumlashtirishdan foydalanadi. Bizda to‗rtta avtonom tizim mavjud (10.14- rasm): - AS40 uchta BGP marshutizatorlarini (R2, R3, R4) o‗z ichiga oladi, u AS50, AS60, AS70 bilan EBGP seanslarini o‗rnatadi; - AS50 ikkita marshrutizatorni (R1, R3) o‗z ichiga oladi, ular EBGP seanslarini o‗rnatadi; - AS60 ikkita marshrutizatorni (R1, R4) o‗z ichiga oladi, ular EBGP seanslarini o‗rnatadi; - AS70 faqat bitta marshrutizatorni (R1) o‗z ichiga oladi, ular EBGP seanslarini o‗rnatadi. 10.14- rasm. Tadqiqot qilinayotgan tarmoq topologiyasi Asosiy tizim sozlamalari va IP manzillarni sozlash. R1, R2, R3 va R4 uchun qurilma nomlari va interfeyslarga tarmoq IP manzillari sozlanadi. R1 marshrutizatorini sozlash. [Huawei]sysname R1 [R1]interface Ethernet 0/0/0 [R1-Ethernet0/0/0]ip address 11.11.11.1 255.255.255.252 [R1-Ethernet0/0/0]quit [R1]interface Ethernet 0/0/1 [R1-Ethernet0/0/1]ip address 13.13.13.1 255.255.255.252 [R1-Ethernet0/0/1]quit [R1]interface GigabitEthernet 0/0/0 [R1- GigabitEthernet0/0/0]ip address 12.12.12.1 255.255.255.252 [R1- GigabitEthernet]quit [R1]interface GigabitEthernet 0/0/1 [R1- GigabitEthernet0/0/1]ip address 192.168.11.1 255.255.255.0 [R1- GigabitEthernet]quit Joriy konfiguratsiyani ko‗rish uchun quyidagi buyruqdan foydalaniladi: R1 marshrutizatorida joriy sozlamalar natijasi 10.15-rasmda keltirilgan. 10.15- rasm. R1 marshrutizatorida joriy sozlamalar natijasi R2 marshrutizatorni sozlash: [Huawei]sysname R2 [R2]interface Ethernet 0/0/0 [R2-Ethernet0/0/0]ip address 13.13.13.2 255.255.255.252 [R2-Ethernet0/0/0]quit [R2]interface Ethernet 0/0/1 [R2-Ethernet0/0/1]ip address 192.168.13.1 255.255.255.0 [R2-Ethernet0/0/1]quit Joriy konfiguratsiyani ko‗rish uchun quyidagi buyruqdan foydalaniladi: R2 marshrutizatorida joriy sozlamalar natijasi 10.16-rasmda keltirilgan. 10.16- rasm. R2 marshrutizatorida joriy sozlamalar natijasi R3 marshrutizatorni sozlash: [Huawei]sysname R3 [R3]interface Ethernet 0/0/0 [R3-Ethernet0/0/0]ip address 10.10.10.1 255.255.255.252 [R3-Ethernet0/0/0]quit [R3]interface Ethernet 0/0/1 [R3-Ethernet0/0/1]ip address 12.12.12.2 255.255.255.252 [R3-Ethernet0/0/1]quit [R3]interface GigabitEthernet 0/0/0 [R3- GigabitEthernet0/0/0]ip address 192.168.12.1 255.255.255.0 [R3- GigabitEthernet0/0/0]quit Joriy konfiguratsiyani ko‗rish uchun quyidagi buyruqdan foydalaniladi: R3 marshrutizatorida joriy sozlamalar natijasi 10.17- rasmda keltirilgan. 10.17- rasm. R3 marshrutizatorida joriy sozlamalar natijasi R4 marshrutizatorni sozlash: [Huawei]sysname R4 [R4]interface Ethernet 0/0/0 [R4-Ethernet0/0/0]ip address 11.11.11.2 255.255.255.252 [R4-Ethernet0/0/0]quit [R4]interface Ethernet 0/0/1 [R4-Ethernet0/0/1]ip address 10.10.10.2 255.255.255.252 [R4-Ethernet0/0/1]quit [R4]interface GigabitEthernet 0/0/0 [R4- GigabitEthernet0/0/0]ip address 192.168.10.1 255.255.255.0 [R4- GigabitEthernet0/0/0]quit Joriy konfiguratsiyani ko‗rish uchun quyidagi buyruq kiritiladi: R4 marshrutizatorida joriy sozlamalar natijasi 10.18- rasmda keltirilgan. 10.18- rasm. R4 marshrutizatorida joriy sozlamalar natijasi R1, R2, R3 va R4 marshrutizatorlarda BGP protokolini sozlash. R1 marshrutizatorida BGP protokoli sozlanadi va AS lar bog‗lanadi. [R1]bgp 40 [R1-bgp]peer 13.13.13.2 as-number 70 [R1-bgp]peer 11.11.11.2 as-number 50 [R1-bgp]peer 12.12.12.2 as-number 60 [R1-bgp]network 11.11.11.0 30 [R1-bgp]network 12.12.12.0 30 [R1-bgp]network 13.13.13.0 30 [R1-bgp]network 192.168.11.0 24 R1 marshrutizatorida BGP sozlamalarini ko‗rish uchun quyidagi buyruqdan foydalaniladi. [R1-bgp]display this R1 marshrutizatorida BGP sozlamalari natijasi 10.19- rasmda keltirilgan. 10.19- rasm. R1 marshrutizatorida BGP sozlamalari natijasi R2 marshrutizatorida BGP sozlanadi va AS larni bog‗lash amalga oshiriladi. [R2]bgp 70 [R2-bgp]peer 13.13.13.1 as-number 40 [R2-bgp]network 13.13.13.0 30 [R2-bgp]network 192.168.13.0 24 R3 marshrutizatorida BGP sozlanadi va AS larni bog‗lash amalga oshiriladi. [R3]bgp 60 [R3-bgp]peer 10.10.10.2 as-number 50 [R3-bgp]peer 12.12.12.1 as-number 40 [R3-bgp]network 12.12.12.0 30 [R3-bgp]network 10.10.10.0 30 [R3-bgp]network 192.168.12.0 24 R4 marshrutizatorida BGP sozlanadi va AS larni bog‗lash amalga oshiriladi. [R4]bgp 50 [R4-bgp]peer 10.10.10.1 as-number 60 [R4-bgp]peer 11.11.11.1 as-number 40 [R4-bgp]network 11.11.11.0 30 [R4-bgp]network 10.10.10.0 30 [R4-bgp]network 192.168.11.0 24 R1, R2, R3 va R4 marshrutizatorlarning marshrut jadvallarini ko‗rish uchun ―display ip routing-table‖ buyrug‗idan foydalaniladi. R2 marshrutizatorida marshrut jadvali 10.20- rasmda keltirilgan. 10.20- rasm. R2 marshrutizatorda marshrut jadvali R3 marshrutizatorida marshrut jadvali 10.21-rasmda keltirilgan. 10.21- rasm. R3 marshrutizatorda marshrut jadvali R4 marshrutizatorida marshrut jadvali 10.22- rasmda keltirilgan. 10.22- rasm. R4 marshrutizatorda marshrut jadvali Marshrutlar yo‗llarini ―tracert‖ buyrug‗i yordamida tekshirish mumkin (10.23- rasm). 10.23- rasm. Marshrutlar yo‗llari natijasi Natijadan ko‗rinib turibdiki, marshrutlar to‗g‗ri sozlangan. |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling