LAB 4: C U HÌNH RIPng C B N Ơ
- Các ch c năng c a RIPng (RIP next generation) trong IPv6 t ng t nh ch c năngươ ư
c a RIP trong IPv4. Các gói tin update s d ng đ a ch multicast c a t t c các router
ch y RIP.
- M i quá trình RIPng duy trì m t b ng đ nh tuy n c c b RIB (Routing Information ế
Database). B ng RIB này ch a m t b các đ ng đi t t nh t h c đ c t các thi t b ườ ượ ế
lân c n.
Yêu c u:
- Router R1, R2 s d ng RIPng đ qu ng bá thông tin đ nh tuy n ế
- Các PC ping đ c toàn b đ a ch trong m ngượ
Các b c th c hi n:ướ
B c 1:ướ Đ t đ a ch IPv6 cho các PC
PC A: netsh interface ipv6 set address “local area connection” 2001::a
PC B: netsh interface ipv6 set address “local area connection” 2003::b
B c 2:ướ C u hình đ a ch IPv6 cho các interface c a router R1, R2
Đ i v i R1:
R1(config)#ipv6 enable
R1(config)#ipv6 unicast-routing
R1(config)#interface E0/0
R1(config-if)#ipv6 enable
R1(config-if)#ipv6 address 2001::1/64
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface S0/1
R1(config-if)# clock rate 64000
R1(config-if)# ipv6 address 2005::1/64
R1(config-if)#no shutdown
R1(config-if)#^Z
Đ i v i R2:
R2(config)#ipv6 enable
R2(config)#ipv6 unicast-routing
R2(config)#interface E0/0
R2(config-if)#ipv6 enable
R2(config-if)#ipv6 address 2003::1/64
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface S0/1
R2(config-if)#ipv6 address 2005::2/64
R2(config-if)#no shutdown
R2(config-if)#^Z
B c 3:ướ Cho các interface trên R1, R2 tham gia vào quá trình đ nh tuy n RIPng ế
Trên R1:
R1(config)#ipv6 router rip cisco /*đ t tên cho process
RIPng là cisco*/
R1(config-rtr)#exit
R1(config)#interface E0/0
R1(config-if)#ipv6 rip cisco enable /*cho phép RIPng process
“cisco” ch y trên E0/0*/
R1(config)#interface S0/1
R1(config-if)#ipv6 rip cisco enable /*cho phép RIPng process
“cisco” ch y trên E0/0*/
Có th c u hình s đ ng đi t i đa cùng metric mà RIPng h tr . Giá tr này trong ườ
kho ng t 1 đ n 64, m c đ nh cho RIP t i đa là 4 đ ng. ế ườ
R1(config)#ipv6 router rip cisco
R1(config-rtr)#maximum-paths 1
R1(config-rtr)#exit
Trên R2: c u hình t ng t nh R1 ươ ư
C u hình tham kh o:
R1#show run
!
hostname R1
no ip domain-lookup
!
ipv6 unicast-routing
!
interface Ethernet0/0
no ip address
duplex auto
speed auto
ipv6 address 2001::1/64
ipv6 rip cisco enable
!
interface Serial0/1
no ip address
clock rate 64000
ipv6 address 2005::1/64
ipv6 rip cisco enable
!
ipv6 router rip cisco
!
end
Chú ý: tên c a process-id ch mang ý nghĩa c c b trong m t router
R2#show run
!
hostname R2
!
no ip domain-lookup
!
ipv6 unicast-routing
!
interface Ethernet0/0
no ip address
duplex auto
speed auto
ipv6 address 2003::1/64
ipv6 rip cisco enable
!
interface Serial0/1
no ip address
ipv6 address 2005::2/64
ipv6 rip cisco enable
!
ipv6 router rip cisco
!
end
B c 4:ướ Ki m tra c u hình
- Xem b ng đ nh tuy n b ng l nh show ipv6 route, ho c show ipv6 route rip đ xem ế
các đ ng đi h c t RIPng. Các đ ng đi h c t RIPng s đ c đánh d u b ng ch Rườ ườ ượ
nh trong RIP c a IPv4.ư
R2#show ipv6 interface brief
Ethernet0/0 [up/up]
FE80::218:18FF:FE9C:A7A0
2003::1
Serial0/1 [up/up]
FE80::218:18FF:FE9C:A7A1
2005::2
- Xem process-id c a RIPng, các interface nào ch y RIPng
R1#show ipv6 rip
RIP process "cisco", port 521, multicast-group FF02::9, pid
32
Administrative distance is 120. Maximum paths is 16
Updates every 30 seconds, expire after 180
Holddown lasts 0 seconds, garbage collect after 120
Split horizon is on; poison reverse is off
Default routes are not generated
Periodic updates 69, trigger updates 40
Interfaces:
Serial0/1
Ethernet0/0
Redistribution:
None
- Có th xem c s d li u c a RIPng b ng l nh show ipv6 rip database ơ
R1#show ipv6 rip database
RIP process "cisco", local RIB
2003::/64, metric 2, installed
Ethernet0/0/FE80::218:18FF:FE9C:A7A0, expires in 155 secs
2005::/64, metric 2
FastEthernet0/1/FE80::218:18FF:FE9C:A7A1, expires in 155
secs
- T R1 ho c R2 ping đ c các đ a ch trên m ng ượ
R1#ping 2003::b
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2003::B, timeout is 2
seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
0/0/4 ms
- Có th dùng l nh debug ipv6 packet [detail] đ xem quá trình gói tin đi t R1 đ n PC ế
B
R1#ping 2003::b
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2003::B, timeout is 2
seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
0/1/4 ms
R1#
*Dec 24 07 16.651: IPv6: SAS picked source 2005::1 for
2003::B (Serial0/1)
*Dec 24 07 16.655: IPv6: nexthop FE80::218:18FF:FE9C:A7A1,
*Dec 24 07 16.655: IPV6: source 2005::1 (local)
*Dec 24 07 16.655: dest 2003::B (Serial0/1)
*Dec 24 07 16.655: traffic class 0, flow 0x0, len 100+0,
prot 58, hops 64, originating
*Dec 24 07 16.655: IPv6: Sending on Serial0/1
*Dec 24 07 16.655: IPV6: source 2003::B (Serial0/1)
*Dec 24 07 16.655: dest 2005::1
*Dec 24 07 16.655: traffic class 0, flow 0x0, len 100+14,
prot 58, hops 63, forward to ulp