Tải bản đầy đủ (.pptx) (88 trang)

Giao thức định tuyến OSPF

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (1.24 MB, 88 trang )

 

!"
Quản trị mạng cơ bản


 
#$
%&'()*+, 
/
01)23)4567&89
: ; < = >7 ? @ A  2
-*>-BC7DAE4+B)
'+'FGH4@'()*'CI;)J)KL
MN=
/
O%&!")F+
/
P3QA;R,SET

U
 
#$
Tổng quan về hoạt động của OSPF

%&'()*V-W+X'YZ)[

K&M'8\=

%]+GHGA-+6'8
:=



$^'+@)_]GHG)
-`M>UHaF1B

% & ] b 7K  J)K 7@ , >- 
B

,E7K]'-9)G>$B

, + CI < & 6 aH @ ) + 9
H57;

cJ)@d='F)eJ)K7@7K
 ,  '( f ) gh Y
gi

g
 
#$
Cấu trúc dữ liệu OSPF

#KPEj+>77B

0CQ7*MCX;):-:

&'6A@E4+'k'CQ*GH

#KcH>H7B[

cCI'CQlEmnX;)=@-*<

>,#B

&'6A:LK@)E-2-*
M+o>BY=>p-B

@)o oe+,#'?L

#K'()*>)7B[

05EA)9=>p7B

&'6@X)*'CI<L

h
 
#$
Cấu trúc phân vùng OSPF

c)FZo!"

c)q7K'()*

%M=1KCn
\ 6-;

@A,*
e'CQ-o
oEA

05EAdH5LH

1*K9)
CQ,7(
=

i
 
#$
OSPF Router Types

r
 
#$
Review of OSPF operation

0( = E '1) +  !" >!" - P
"B

@=7K!">!"-cHB

c6 ; * GH < J) ; E 4+  !"
>s7!"t7uB

c '8 E '? 7F + m n X ;) = @ 2 -*
>s4v,#B

$@ H@ @ )* 'CI >  tp-
T)B

#Kd@)*'CI>Stp-T)B


#K d @ 7K  , >S ,  J)
t)7B


 
#$
OSPF Packet Formats

w
 
#$
OSPF Packet Types


 
#$
The Hello Packet


 
#$
The Link State Request Packet


 
#$
The Link State Update Packet

U
 

#$
The Link State Acknowledgment Packet

g
 
#$
OSPF – Thiết lập mối quan hệ hàng xóm

h
 
#$
Link-State Database Synchronization (đồng bộ hóa cơ sở
dữ liệu)
 
i
!"xL)dm7K
Quản trị mạng cơ bản

r
 
#$
Câu lệnh router ospf

Process-id> xihhUhB[0CQ6l7nJ)K(2

f+@(b7F>)=H.-@)_+9*G
<J);E4+By-@M&s%T

Note: chúng ta thường lấy giá trị process-id trùng nhau để dễ quản lý
R1(config)# router ospf 1

R1(config-router)#


 
#$
Câu lệnh router ospf

5);network 'CQ]bCm6M@&
Fo-@

cLK@\)+'(fz
K E 5) ; p- '( { e 'CQ -Z
='9]EG7K!"

#|7)FHK]b'-^Mp-

S:'CQJ)'(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

}-+94567z@LCQ=\@()7
-

Note: Giống như EIGRP, trong một số hệ điều hành IOS của cisco, router có

thể hiểu được câu lệnh với subnet mask (router tự động convert từ wildcard
mask sang subnet mask)
255.255.255.255
- 255.255.255.240 Subtract the subnet mask

0. 0. 0. 15 Wildcard mask
Router(config-router)# network network-address wildcard-mask area area-id


 
#$
Câu lệnh router ospf

area area-id[!"
@)oFe~E'?7F+M
)mnX;)

c7EEaef]b)LF
EA>x'moB

Multi-area (đa vùng) sẽ được đề cập tới trong CCNP
Router(config-router)# network network-address wildcard-mask area area-id


 
#$
Câu lệnh network

Sử dụng câu lệnh network để kích hoạt giao thức OSPF trên
các interface


)-*GH4=HKFb@)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 IDEF'(f'9H57;E4@'(@)=
H-@);<=
OSPF Router ID

hi$7H
ig$7H
$7H
}•
T)€
}•
T)€
}•
T)€

U
 
#$

)456).U7CM)
1. Cấu hình router-id trong mode (config-router)#
2. IP cao nhất của 1 loopback
3. IP cao nhất của 1 interface vật lý
Interface đó không nhất thiết phải kích hoạt giao thức ospf
!"T)
hi$7H
ig$7H
$7H
}•
T)€
}•
T)€
}•
T)€


g
 
#$

t*)-AL)d).-A+H7-@
)6l).C*E€
R1: 192.168.10.5d'(f'+Mm r i  rE w i 
R2: 192.168.10.9d'(f'+Mm    E w i 
R3: 192.168.10.10d'(f'+Mm r i UUE 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>

R3# 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.10
<output omitted>

Tài liệu bạn tìm kiếm đã sẵn sàng tải về

Tải bản đầy đủ ngay
×