Tải bản đầy đủ (.pdf) (51 trang)

Routing information protocol

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.6 MB, 51 trang )



GV.Nguyễn Duy
Chương5
Routing Information Protocol
Nội Dung

RIPv1 RIPv2


GV.Nguyễn Duy
Nội Dung

RIPv1 RIPv2
RIPv1

Đặc điểm của RIPv1

Message của RIPv1


GV.Nguyễn Duy

Cơ chế hoạt động của RIPv1

Cấu hình RIPv1

Passive Interface

Summarization trong RIPv1


RIPv1, Static Route và Default Route


GV.Nguyễn Duy
Quá trình phát triển của Routing Protocol Đặc điểm


GV.Nguyễn Duy
của RIPv1
RIPv1

Distance Vector (DV) Routing Protocol

Classful routing protocol Metric = Hop Count

Max = 15 Hops

Không hỗ trợ VLSM


GV.Nguyễn Duy

Cập nhật và gởi thông tin định tuyến cho Router láng giềng theo
chu kỳ 30 s

Administrative Distance of RIP is 120
Encapsulated RIP Message


GV.Nguyễn Duy

Data Link
Frame Header
IP Packet
Header
UDP Segment
Header
RIP Message
(512 Bytes; Up to 25 routes )

Encapsulated RIP Message


GV.Nguyễn Duy
Data Link IP Packet UDP Segment RIP Message
Frame Header Header Header (512 Bytes; Up to 25 routes )
Data Link Frame
MAC Destination Address = Broadcast: FF-FF-FF-FF-FF-FF
MAC Source Address = Address of sending interface
Encapsulated RIP Message


GV.Nguyễn Duy
Data Link IP Packet UDP Segment RIP Message
Frame Header Header Header (512 Bytes; Up to 25 routes )
Data Link Frame
MAC Destination Address = Broadcast: FF-FF-FF-FF-FF-FF
MAC Source Address = Address of sending interface
IP Packet
IP Source Address = Address of sending interface
IP Destination Address = Broadcast: 255.255.255.255

Protocol field = 17 for UDP
Encapsulated RIP Message


Duy
Data Link IP Packet UDP Segment RIP Message
Frame Header Header Header (512 Bytes; Up to 25 routes )
Data Link Frame
MAC Destination Address = Broadcast: FF-FF-FF-FF-FF-FF
MAC Source Address = Address of sending interface
IP Packet
IP Source Address = Address of sending interface
IP Destination Address = Broadcast: 255.255.255.255
Protocol field = 17 for UDP
UDP Segment
Source Port = 520
Destination Port = 520
Encapsulated RIP Message


GV.Nguyễn Duy
GV.Nguyễn
Rick Graziani
Data Link IP Packet UDP Segment RIP Message
Frame Header Header Header (512 Bytes; Up to 25 routes )
Data Link Frame
MAC Destination Address = Broadcast: FF-FF-FF-FF-FF-FF
MAC Source Address = Address of sending interface
IP Packet
IP Source Address = Address of sending interface

IP Destination Address = Broadcast: 255.255.255.255
Protocol field = 17 for UDP
UDP Segment
Source Port = 520
Destination Port = 520
RIP Message:
Command: Request (1); Response (2)


GV.Nguyễn Duy
Version = 1
Routes: Network IP Address
Metric: Hop Count
Message của RIPv1
RIPv1
 RIP Header :
 Command field
 Version field Must be zero
 Route Entry :
Encapsulated RIP Message


GV.Nguyễn Duy
 Address family identifier


GV.Nguyễn Duy
 IP address
 Metric



GV.Nguyễn Duy
Cơ chế hoạt động của RIPv1
RIPv1
 RIPv1 sử dụng 2 loại message :
 Request Message :
 Được gởi đi mỗi khi Router khởi động
 Chỉ được gởi trên interface bật RIP
 Gởi yêu cầu đến tất cả các Router láng giềng đang chạy giao thức RIP
về thông tin định tuyến
 Respondse Message :
 Nội dung bảng định tuyến được gởi đến Requesting Router


GV.Nguyễn Duy
Cấu hình RIPv1 Passive Interface
RIPv1


GV.Nguyễn Duy
 Khi Interface trên Router được bật tính năng Passive
Interface thì Interface đó chỉ có khả năng nhận thông tin
R1(config)#router rip
R1(config-router)#passive-interface fa 0/0
R2(config)#router rip
R2(config-router)#passive-interface fa 0/0
R2(config)#router rip
R2(config-router)#passive-interface fa 0/0



GV.Nguyễn Duy
định tuyến và không có khả năng gởi thông tin định
tuyến
Passive Interface
R1#show ip protocols
Routing Protocol is "rip"


GV.Nguyễn Duy
Sending updates every 30 seconds, next due in 10 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Redistributing: rip
Default version control: send version 1, receive any version
Interface Send Recv Triggered RIP Key-chain
Serial0/0 1 1 2
Automatic network summarization is in effect
Maximum path: 4
Routing for Networks:
192.168.1.0
192.168.2.0
Passive Interface(s):
FastEthernet0/0
Routing Information Sources:
Gateway Distance Last Update
192.168.2.2 120 00:00:04
Distance: (default is 120)



GV.Nguyễn Duy
R1#
Summarization trong RIPv1
RIPv1

GV.Nguyễn Duy

192.168.1.0/24
192.168.2.0/24
192.168.3.0/24
192.168.4.0/24
192.168.5.0/24
.1
.1
.1
.1
.1
.2
.2
RIP enabled on all routers
Summarization trong RIPv1
RIPv1

GV.Nguyễn Duy
R1 router
rip
network 192.168.1.0
network 192.168.2.0
passive-interface fa 0/0
R2 router

rip
network 192.168.2.0
network 192.168.3.0
network 192.168.4.0
passive-interface fa 0/0
R3 router
rip
network 192.168.4.0
network 192.168.5.0
passive-interface fa 0/0
Summarization trong RIPv1
RIPv1

GV.Nguyễn Duy

172.30.1.0/24
172.30.2.0/24
172.30.3.0/24
192.168.4.8/30
192.168.5.0/24
.1
.1
.10
.1
.1
.2
.9
Classful
Network
172.30.0.0/16

RIP enabled on all routers
Summarization trong RIPv1
RIPv1

GV.Nguyễn Duy
R1#conf t
Enter configuration commands, one per line. End with
CNTL/Z. R1(config)#inter fa 0/0
R1(config-if)#ip add 172.30.1.1 255.255.255.0
R1(config-if)#exit
R1(config)#inter ser 0/0
R1(config-if)#ip add 172.30.2.1 255.255.255.0
R1(config-if)#exit
R1(config)#no router rip ! Removes RIP process
R1(config)#router rip
R1(config-router)#network 172.30.0.0
R1(config-router)#passive-interface fa 0/0
R1
interface FastEthernet0/0
Summarization trong RIPv1
RIPv1

GV.Nguyễn Duy
ip address 172.30.1.1
255.255.255.0 duplex auto speed
auto !
interface Serial0/0
ip address 172.30.2.1
255.255.255.0 clockrate 64000 !
interface Serial0/1

no ip
address
shutdown !
router rip
passive-interface FastEthernet0/0
network 172.30.0.0
R2(config)#inter s 0/0
R2(config-if)#ip add 172.30.2.2 255.255.255.0

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

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