Amaliy qism
GNS3 muhitida RIPv2 protokolini ishlash tamoyili
6.8-rasm. R1 va R2 marshrutizatorlari oʻrtasida tasdiqlangan ma'lumotlar
almashinuvi.
6.8-rasmda koʻrsatilgan tarmoqda R1 va R2 marshrutizatorlari
oʻrtasida autentifikatsiyaga asoslangan va autentifikatsiyalanmagan
aloqani oʻrnatdik va ular orasidagi farqlarni taqqosladik.
R1 sozlanmasi
Router(config)#hostname R1
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#no auto-summary
R1(config-router)#network 192.168.10.0
R1(config-router)#network 10.10.10.0
R1(config-router)#network 11.11.11.0
R1(config-router)#exit
R1(config)#key chain cisco
R1(config-keychain)#key 1
R1(config-keychain-key)#key-string cisco1
R1(config-keychain-key)#exit
R1(config-keychain)#exit
R1(config)#interface serial 0/0
R1(config-if)#ip rip authentication mode md5
R1(config-if)#ip rip authentication key-chain cisco
78
R1(config-if)#exit
R2 sozlanmasi
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#no auto-summary
R2(config-router)#network 192.168.20.0
R2(config-router)#network 10.10.10.0
R2(config-router)#network 12.12.12.0
R2(config-router)#exit
R2(config)#key chain cisco
R2(config-keychain)#key 1
R2(config-keychain-key)#key-string cisco1
R2(config-keychain-key)#exit
R2(config-keychain)#exit
R2(config)#interface serial 0/0
R2(config-if)#ip rip authentication mode md5
R2(config-if)#ip rip authentication key-chain cisco
R2(config-if)#exit
EIGRP protokoliga asoslangan tarmoqning ishlash tamoyili
6.7-rasmda koʻrsatilgan tarmoqda R1 va R2 marshrutizatorlari
oʻrtasida autentifikatsiyaga asoslangan va autentifikatsiyalanmagan
aloqani oʻrnatdik va ular orasidagi farqlarni taqqosladik.
R1 sozlanmasi
Router(config)#hostname R1
R1(config)#router eigrp 1
R1(config-router)#eigrp router-id 1.1.1.1
R1(config-router)#network 192.168.10.0 0.0.0.255
R1(config-router)#network 10.10.10.0 0.0.0.3
R1(config-router)#network 11.11.11.0 0.0.0.3
R1(config-router)#no auto-summary
R1(config-router)#exit
R1(config)#key chain EIGRP_KEY
R1(config-keychain)#key 1
R1(config-keychain-key)#key-string cisco
R1(config-keychain-key)#exit
79
R1(config-keychain)#exit
R1(config)#interface serial 0/3/0
R1(config-if)#ip authentication mode eigrp 1 md5
R1(config-if)#ip authentication key-chain eigrp 1 EIGRP_KEY
R1(config-if)#exit
R2 sozlanmasi
Router(config)#hostname R2
R2(config)#router eigrp 1
R2(config-router)#eigrp router-id 2.2.2.2
R2(config-router)#network 192.168.20.0 0.0.0.255
R2(config-router)#network 10.10.10.0 0.0.0.3
R2(config-router)#network 12.12.12.0 0.0.0.3
R2(config-router)#no auto-summary
R2(config-router)#exit
R2(config)#key chain EIGRP_KEY
R2(config-keychain)#key 1
R2(config-keychain-key)#key-string cisco
R2(config-keychain-key)#exit
R2(config-keychain)#exit
R2(config)#interface serial 0/3/0
R2(config-if)#ip authentication mode eigrp 1 md5
R2(config-if)#ip authentication key-chain eigrp 1 EIGRP_KEY
R2(config-if)#exit
R3 sozlanmasi
Router(config)#hostname R3
R3(config)#router eigrp 1
R3(config-router)#eigrp router-id 3.3.3.3
R3(config-router)#network 192.168.30.0 0.0.0.255
R3(config-router)#network 12.12.12.0 0.0.0.3
R3(config-router)#network 11.11.11.0 0.0.0.3
R3(config-router)#no auto-summary
80
6.9-rasm. R1 va R2 marshrutizatorlari oʻrtasida tasdiqlangan ma'lumotlar
almashinuvi
6.10-rasm. R1 va R2 marshrutizatorlari oʻrtasida tasdiqlanmagan ma'lumotlar
almashinuvi.
OSPF protokoliga asoslangan tarmoqning ishlash tamoyili
6.11-rasmda koʻrsatilgan tarmoqda R1 va R2 marshrutizatorlari
oʻrtasida autentifikatsiyaga asoslangan va autentifikatsiyalanmagan
aloqani oʻrnatdik va ular orasidagi farqlarni taqqosladik.
R1 sozlanmasi
R1(config)#router ospf 10
R1(config-router)#router-id 1.1.1.1
R1(config-router)#network 192.168.10.0 0.0.0.255 area 1
R1(config-router)#network 11.11.11.0 0.0.0.3 area 0
R1(config-router)#network 10.10.10.0 0.0.0.3 area 0
R1(config-router)#exit
R1(config)#router ospf 10
R1(config-router)#area 0 authentication message-digest
R1(config-router)#exit
R1(config)#interface serial 0/3/0
81
R1(config-if)#ip ospf message-digest-key 1 md5 cisco123
R1(config-if)#exit
6.11-rasm.OSPF protokoli asosida qurilgan tarmoq
R2 sozlanmasi
R2(config)#router ospf 10
R2(config-router)#router-id 2.2.2.2
R2(config-router)#network 10.10.10.0 0.0.0.3 area 0
R2(config-router)#network 12.12.12.0 0.0.0.3 area 0
R2(config-router)#network 192.168.20.0 0.0.0.255 area 2
R2(config-router)#exit
R2(config)#router ospf 10
R2(config-router)#area 0 authentication message-digest
R2(config-router)#exit
R2(config)#interface serial 0/3/0
R2(config-if)#ip ospf message-digest-key 1 md5 cisco123
R2(config-if)#exit
R3 sozlanmasi
R3(config)#router ospf 10
82
R3(config-router)#router-id 3.3.3.3
R3(config-router)#network 192.168.30.0 0.0.0.255 area 3
R3(config-router)#network 12.12.12.0 0.0.0.3 area 0
R3(config-router)#network 11.11.11.0 0.0.0.3 area 0
R3(config-router)#exit
6.12-rasm. R1 va R2 marshrutizatorlari oʻrtasida tasdiqlangan ma'lumotlar
almashinuvi
OSPF protokoliga asoslangan tarmoqning ishlash tamoyili.
6.13-rasmda
koʻrsatilgan
topologiyaga
muvofiq
kompyuterlarning IP-manzillarini kiriting.
R1 sozlanmasi
R1(config)#router bgp 65100
R1(config-router)#bgp router-id 1.1.1.1
R1(config-router)#neighbor 172.16.0.2 remote-as 65200
R1(config-router)#neighbor 172.16.13.2 remote-as 65300
R1(config-router)#network 192.168.1.0 mask 255.255.255.0
R1(config-router)#exit
R2 sozlanmasi
R2(config)#router bgp 65200
R2(config-router)#bgp router-id 2.2.2.2
R2(config-router)#neighbor 172.16.0.1 remote-as 65100
R2(config-router)#neighbor 172.16.23.2 remote-as 65300
R2(config-router)#network 192.168.2.0 mask 255.255.255.0
R2(config-router)#exit
83
R3 sozlanmasi
R3(config)#router bgp 65300
R3(config-router)#bgp router-id 3.3.3.3
R3(config-router)#neighbor 172.16.13.1 remote-as 65100
R3(config-router)#neighbor 172.16.23.1 remote-as 65200
R3(config-router)#network 192.168.3.0 mask 255.255.255.0
R3(config-router)#exit
а)
b)
6.13-rasm. Konfiguratsiya roʻyxatiga misollar: а) show ip route b) show
ip bgp
|