!"
Quản trị mạng cơ bản
#$
%&'()*+,
/
01)23)4567&89
: ; < = >7 ? @ A 2
-*>-BC7DAE4+B)
'+'FGH4@'()*'CI;)J)KL
MN=
/
O%&!")F+
/
P3QA;R,SET
U
#$
Tổng quan về hoạt động của OSPF
%&'()*V-W+X'YZ)[
K&M'8\=
%]+GHGA-+6'8
:=
>,#B
&'6A:LK@)E-2-*
M+o>BY=>p-B
@)o oe+,#'?L
#K'()*>)7B[
05EA)9=>p7B
&'6@X)*'CI<L
h
#$
Cấu trúc phân vùng OSPF
c)FZo!"
c)q7K'()*
%M=1KCn
\ 6-;
@A,*
e'CQ-o
oEA
05EAdH5LH
#K d @ 7K , >S , J)
t)7B
#$
OSPF Packet Formats
w
#$
OSPF Packet Types
#$
The Hello Packet
#$
The Link State Request Packet
#$
The Link State Update Packet
U
R1(config-router)#
#$
Câu lệnh router ospf
5);network 'CQ]bCm6M@&
Fo-@
cLK@\)+'(fz
K E 5) ; p- '( { e 'CQ -Z
='9]EG7K!"
#|7)FHK]b'-^Mp-
S:'CQJ)'(7n.@))<*
GH<J);M)1+-*<z
o
Router(config-router)# network network-address wildcard-mask area area-id
w
#$
Câu lệnh router ospf
}-+94567z@LCQ=\@()7
-
Note: Giống như EIGRP, trong một số hệ điều hành IOS của cisco, router có
)-*GH4=HKFb@)H'CQ_)
R1(config)# router ospf 1
R1(config-router)# network 172.16.1.16 0.0.0.15 area 0
R1(config-router)# network 192.168.10.0 0.0.0.3 area 0
R1(config-router)# network 192.168.10.4 0.0.0.3 area 0
R2(config)# router ospf 1
R2(config-router)# network 10.10.10.0 0.0.0.255 area 0
R2(config-router)# network 192.168.10.0 0.0.0.3 area 0
R2(config-router)# network 192.168.10.8 0.0.0.3 area 0
R3(config)# router ospf 1
R3(config-router)# network 172.16.1.32 0.0.0.7 area 0
R3(config-router)# network 192.168.10.4 0.0.0.3 area 0
R3(config-router)# network 192.168.10.8 0.0.0.3 area 0
Area-ID phải
trùng nhau
Process-ID không nhất thiết phải
giống nhau trên tất cả các router
Phải sử
dụng
wildcast
mask
#$
OSPF Router IDEF'(f'9H57;E4@'(@)=
H-@);<=
OSPF Router ID
g
#$
t*)-AL)d).-A+H7-@
)6l).C*E€
R1: 192.168.10.5d'(f'+Mm r i rE w i
R2: 192.168.10.9d'(f'+Mm E w i
R3: 192.168.10.10d'(f'+Mm r i UUE w i i
OSPF Router ID
hi$7H
ig$7H
$7H
h
#$
Kiểm tra Router ID
R1# show ip protocols
Routing Protocol is “ospf 1”
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Router ID 192.168.10.5
<output omitted>
R2# show ip protocols
Routing Protocol is “ospf 1”
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Router ID 192.168.10.9
<output omitted>