





4
OSPF



4.1.
Cisco Packet Tracer
4.2.





Cisco Packet Tracer.
4.3.
BGP, IS-IS.
50
1)




-













-vector Routing Protocols) RIP;
2)


















-state Routing Protocols).
OSPF, IS-IS.















-


















-











































-




1)























2)




















OSPF, RIP, EIGRP, IS-IS.
IGP (Interior Gateway Protocol). IGP-

























-










1) 








2) 








3)









4)










-


















1)


















2)
























MPLS-TE).
EGP (Exterior Gateway Protocol). EGP-












OSPF (Open Shortest Path First)
IGP-







ink-




























89.
51
(autonomous system)








-










-state advertisement, LSA) 













-



Hello
DBD 



52
Broadband networks)








Hello 
















-broadcast networks) 










Hello 




















OSPF 


























- 




























NBMA 












OSPF 














- 















(Point-to-






NBMA |
Point-to-Multipoint. |
|
. |
1) |
. |
2) |
|






).
3) 
















































.
4) 
















-


















-













Hello-



5) 













-to-









.
6) 






53



























-
7) 























































.
8) 



9) 












10)
1. Down










-
















2. Attempt 






















3. |
Init |
|
|
H |
Hello; |
4. |
Two-way |
|


























-way;
54
5. Exstart 




















-







-




6.Exchange 



















description LSDB;
7.Loading 



























8.Full 

































lly adjacent (FULL).
HelloInterval 










































-
























-







RouterDeadInterval 






















-












Wait Timer 









rDeadInterval.
RxmtInterval 























55
4.4.




4.4.1.














4.


Cisco 




















OSPF










-



4. |
|
|
|
- |
192.168.1.2/24 ( |
; PC1 |
192.168.2.2/24 |
( |
192.168.2.1); PC2 192.168.3.2/24 ( |
|
. |
|
, |
|
|
|
Desktop |
IP Configurations



IP-









































4.


PC








4.






PC0
56
C:\>ipconfig |
|
|
|
|
|
|
PC. |
|
|
|
4.4.1. |
|
|
|
4.4.1 |
|
|
IP- |
|
Router0 |
Gig0/0 |
10.10.10.1 |
255.255.255.252 |
|
Gig0/1 |
10.10.11.1 |
255.255.255.252 |
|
Gig0/2 |
192.168.1.1 |
255.255.255.0 |
Router1 |
Gig0/0 |
10.10.10.2 |
255.255.255.252 |
|
Gig0/1 |
10.10.12.1 |
255.255.255.252 |
|
Gig0/2 |
192.168.2.1 |
255.255.255.0 |
Router2 |
Gig0/0 |
10.10.12.2 |
255.255.255.252 |
|
Gig0/1 |
10.10.11.2 |
255.255.255.252 |
|
Gig0/2 |
192.168.3.1 |
255.255.255.0 |
Router |
|
CLI |
no, |
Tab): |
|
Router>enable
Router#configure terminal
Router(config)#interface gigabitEthernet 0/0
Router(config-if)#ip address 10.10.10.1 255.255.255.252
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface gigabitEthernet 0/1
Router(config-if)#ip address 10.10.11.1 255.255.255.252
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface gigabitEthernet 0/2
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shutdown
57
Router(config-if)#exit
Router(config)#exit
Router#wr mem



















Router
Router




























4.









ping.



4.












PC0
4.4.2. 



OSPF



loopback-


























OSPF. Loopback-



























loopback-




Router0:
Router>enable Router#configure terminal
Router(config)#interface loopback 0
Router(config-if)#ip address 192.168.100.1 255.255.255.255 (192.168.100.0/32 








-






Router(config-if)#no shutdown Router(config-if)#exit




OSPF:
Router(config)#router ospf 1
58
Router(config-router)#network 192.168.1.0 0.0.0.255 area 0 (0.0.0.255



area 0)
Router(config-router)#network 10.10.10.0 0.0.0.3 area 0 Router(config-router)#network 10.10.11.0 0.0.0.3 area 0 Router(config-router)#end
Router#show running-config 




















Enter







4.4.4).



4.









OSPF 











Router |
Router |
- |
|












Router
Router

















Router








:
01:10:34: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.100.1 on
GigabitEthernet0/0 from LOADING to FULL, Loading Done













Router2.







Router




59
