Sei sulla pagina 1di 4

CCNAv6

RIPv1 + RIPv2

I. M hnh:
- Tng qut 3 Router kt ni nh m hnh
- R1 R2 : RIPv1 | R2 R3 : RIPv2

II. Mc tiu
- Kt ni ton mng

III. Gii p

R1(config)#interface loopback 1
R1(config-if)#ip address 1.1.1.1 255.255.255.255
R1(config-if)#exit
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip address 192.168.12.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#
R2(config)#interface fastEthernet 1/0
R2(config-if)#ip address 192.168.12.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
C bn R2(config)#interface fastEthernet 0/0
R2(config-if)#ip address 192.168.23.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#
R3(config)#interface loopback 1
R3(config-if)#ip address 3.3.3.3 255.255.255.255
R3(config-if)#exit
R3(config)#interface fastEthernet 1/0
R3(config-if)#ip address 192.168.23.3 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#

@BKAP 2016 Page 1 / 4


CCNAv6

R1(config)#router rip
R1(config-router)#version 1
R1(config-router)#network 1.1.1.1
R1(config-router)#network 192.168.12.0
R1(config-router)#exit
RIPv1 R1(config)#
R2(config)#router rip
R2(config-router)#version 1
R2(config-router)#network 192.168.12.0
R2(config-router)#exit
R2(config)#
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#network 192.168.23.0
R2(config-router)#exit
R2(config)#
RIPv2 R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#network 192.168.23.0
R3(config-router)#network 3.3.3.3
R3(config-router)#exit
R3(config)#
R1#ping 3.3.3.3

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
Kim tra 1
R3#ping 1.1.1.1

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
Router 3 khng ping c v loopback R1 v ngc li, chng minh l vng
Nhn xt
RIPv1 cha trao i c thng tin vi vng RIPv2
Xt li Tin trnh xt y c nh gi trn Router 2 v Router 2 l Router bin trao
i thng tin ca 2 vng RIPv1 v RIPv2.

R2#show ip protocols
Routing Protocol is "rip"
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 2, receive version 2
Interface Send Recv Triggered RIP Key-chain
FastEthernet0/0 2 2

@BKAP 2016 Page 2 / 4


CCNAv6

FastEthernet1/0 2 2
Automatic network summarization is in effect
Maximum path: 4
Routing for Networks:
192.168.12.0
192.168.23.0
Routing Information Sources:
Gateway Distance Last Update
192.168.12.1 120 00:05:15
192.168.23.3 120 00:00:13
Distance: (default is 120)

Li y xy ra trn cc Interface trao i thng tin ca cc vng. Trong m hnh


chng ta nhn xt r:
- Router 2 trao i thng tin cng Router 1 trong vng RIPv1 bng
interface FastEthernet 1/0
- Router 2 trao i thng tin cng Router 3 trong vng RIPv2 bng
interface FastEthernet 0/0
M khi lit k thng tin ta li c:
Interface Send Recv Triggered RIP Key-chain
FastEthernet0/0 2 2
FastEthernet1/0 2 2
- Sai u ? sai cng FastEthernet 1/0 ca Router 2, ng nh cng
ny phi l cng trao i thng tin ca RIPv1, tc l Send v1 v Recv
v1. Nhng khi lit k Router 2 li l Send v2 v Recv v2. Hiu n
gin l nu trin khai RIPv1 trc v RIPv2 sau th RIPv2 ln
RIPv1, v ngc li, nn gy ra hin tng sai cng trao i thng tin.
xc nh li cng no th vo cng v thay i li cho ng. y l trn
Router 2 c th l trn cng FastEthernet 1/0 ca Router 2, phi sa li cho n
Send v1 v Recv v1.

Sa sai R2(config)#interface FastEthernet 1/0


R2(config-if)#ip rip send version 1
R2(config-if)#ip rip receive version 1
R2(config-if)#exit
R2(config)#
R2#show ip protocols
Routing Protocol is "rip"
Sending updates every 30 seconds, next due in 25 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
Kim tra 2
Redistributing: rip
Default version control: send version 2, receive version 2
Interface Send Recv Triggered RIP Key-chain
FastEthernet0/0 2 2
FastEthernet1/0 1 1
Automatic network summarization is in effect

@BKAP 2016 Page 3 / 4


CCNAv6

Maximum path: 4
Routing for Networks:
192.168.12.0
192.168.23.0
Routing Information Sources:
Gateway Distance Last Update
192.168.12.1 120 00:00:13
192.168.23.3 120 00:00:01
Distance: (default is 120)

- Thng tin c tr li chnh xc.


R1#ping 3.3.3.3

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/32/36 ms
R3#ping 1.1.1.1

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/48/56 ms

@BKAP 2016 Page 4 / 4

Potrebbero piacerti anche