</p>R3的配置
7 Y; Y! q9 p* [, F9 l1 B, lR3(config)#router ospf 1
4 G+ {+ ^" L7 ~0 sR3(config-router)# network 20.1.1.0 0.0.0.255 area 0+ u" \- o! z( c+ A+ u' J7 l
R3(config-router)# network 50.1.1.0 0.0.0.255 area 0 |& b" K& Y6 I' q: o8 v3 z
/ ]" \( r6 A {- O6 ^0 G
) p, m7 v* N% t9 ?步骤三:配置R1为rp,配置R2为映射代理,把R3加入239.3.3.3组
$ F- n: I1 ^4 D# E" @ + w" y1 |/ y: ~7 N8 z; Q8 X6 Y
R1的配置' C# K& O: j' \0 n8 X+ l
R1(config)#ip multicast-routing à启用多播协议
" R ~" \4 E. R4 ?) @R1(config)# interface Loopback0: f" P/ q3 g6 w
R1(config-if)# ip pim sparse-mode à接口PIM模式为稀疏& D9 w& _( W% U, [: C0 w
R1(config)# interface Serial0
* g+ h: C" `* f: h* J h C& [, WR1(config-if)# ip pim sparse-mode9 V9 t, I& z! u' f& ?1 w
R1(config)# ip pim send-rp-announce Loopback0 scope 5 à指定R1为RP
' z1 C( l2 L# E m6 Y4 D% L2 M ~3 x
/ a t9 d% {4 Y4 {R2的配置
0 ]4 f# h3 `: |R2(config)#ip multicast-routing
" z& {, ~$ p- m; MR2(config)# interface Loopback0
( s$ T* r/ Z7 o. ~ u' p) s- uR2(config-if)# ip pim sparse-mode( w7 n2 f& W j( I) [
R2(config)# interface Serial07 E: O1 x/ J, j$ J6 w" G3 V6 _# w
R2(config-if)# ip pim sparse-mode# ?7 X; Q5 t$ X. M0 Z4 y6 X
R2(config)# interface Serial1& `; D4 i+ a: ]( E+ h0 e
R2(config-if)# ip pim sparse-mode
/ S- J6 j" O; U9 {5 s* w9 {- E: {R2(config)# ip pim send-rp-discovery Loopback0 scope 5 à将R2指定为映射代理; _. c7 n: @0 Y& N+ t
: H6 N7 r) D8 z% X/ q0 wR3的配置
8 Z+ ]0 K4 e+ W4 N; h0 a6 a1 [* rR3(config)#ip multicast-routing% M- S8 @/ g7 r. U( K
R3(config)# interface Loopback0
6 ]" c% W+ Y7 zR3(config-if)# ip pim sparse-mode
" ? Q3 X8 V) j' p4 e' P' l. CR3(config-if)# ip igmp join-group 239.3.3.3 à将此接口加入到组239.3.3.3
; p/ m7 ]( Z7 ZR3(config)# interface Serial19 ]& o% O! [# D* C
R3(config-if)# ip pim sparse-mode 0 `9 A) C j' [. F' h# C" u
: x2 J2 H% C1 A7 |% N8 a) h
& w9 I6 N* x- c& |
步骤四:查看组播路由表
. d$ ?" ?$ S) D4 i* R , F+ L) k; f" \
R1#sh ip mroute 239.3.3.3 2 q4 m7 K5 z' t
IP Multicast Routing Table
! M. l6 L; d* W" I4 v( eFlags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
. L1 Q. t; s# p; K9 ^4 [0 e' g L - Local, P - Pruned, R - RP-bit set, F - Register flag,* u) L( }* e/ f2 N/ e# R& z G: z$ p1 A
T - SPT-bit set, J - Join SPT, M - MSDP created entry,0 y6 _) K3 r0 P Z
X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,( t, p3 G0 m0 V1 S' R9 x
U - URD, I - Received Source Specific Host Report, Z - Multicast Tunnel d/ _5 \6 }# |5 ]
Y - Joined MDT-data group, y - Sending to MDT-data group) f% s% b8 V4 v+ `& C
Outgoing interface flags: H - Hardware switched, J; F( ]! s) @6 X" F' ^) ~
Timers: Uptime/Expires
+ Q( T9 H5 p& m/ y# K Interface state: Interface, Next-Hop or VCD, State/Mode. p# F, R q) }9 @) G. O4 q
) p3 i5 Y% @1 Q(*, 239.3.3.3), 00:37:56/stopped, RP 30.1.1.1, flags: S# y) R& q: f: R
Incoming interface: Null, RPF nbr 0.0.0.0: l3 l5 q: h9 W% E9 p8 X6 m( K4 t
Outgoing interface list:
2 V3 ]. K& C! K# N# m Serial0, Forward/Sparse, 00:37:56/00:03:07* g, ~% z; m6 m8 U: q) X
" y2 g2 l' a9 ^+ ?7 p2 |* M) T' C* h
(10.1.1.1, 239.3.3.3), 00:00:04/00:02:56, flags: P à学来对端的基于源的多播路由
. C$ e. \, l/ i' b# p& ~ Incoming interface: Serial0, RPF nbr 0.0.0.07 ~, }, y: N( U, r: N
Outgoing interface list: Null! C! y7 i% h0 W, r, P' \, [* V
1 R Y( z2 }( z K% n% I, U& _$ P(30.1.1.1, 239.3.3.3), 00:00:04/00:03:28, flags: T; R8 L+ N9 O6 H4 J- \: d8 j
Incoming interface: Loopback0, RPF nbr 0.0.0.0
" t' s0 b! M: r& x Outgoing interface list:1 @; {9 ]$ j# S
Serial0, Forward/Sparse, 00:00:05/00:03:24
8 W3 K4 |) R r, x) q
3 [2 k0 X1 z& f(50.1.1.1, 239.3.3.3), 00:00:12/00:03:17, flags: PX8 z$ S: k5 G+ V1 t/ q. l: O0 ]- {4 g: ?1 l
Incoming interface: Serial0, RPF nbr 10.1.1.2
+ _; J4 {2 _4 O2 E- J Outgoing interface list: Null3 x! y* c1 s0 ^, i K
; d$ N' k' l7 H' `5 OR2#sh ip mroute 239.3.3.3$ Q* Z0 t9 L& j# T- u4 o, T
IP Multicast Routing Table; t6 J1 C0 k1 @( L5 Z0 H% V
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
% I* b, u k0 `8 h6 s/ t1 }* C- D( O L - Local, P - Pruned, R - RP-bit set, F - Register flag,
$ k/ g3 R5 F: }# v& F T - SPT-bit set, J - Join SPT, M - MSDP created entry,3 l* D7 c3 T& X* l" ]3 F
X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
; H: E/ r ^: C/ ^. n3 i; T U - URD, I - Received Source Specific Host Report, Z - Multicast Tunnel
6 @7 ]/ y+ Y _& t* @) B% } Y - Joined MDT-data group, y - Sending to MDT-data group& \6 t ]7 Y" F1 U/ E7 ~, I/ w, M
Outgoing interface flags: H - Hardware switched
[( O. t% s- m; V1 T: Q. ]% F! K8 ^ Timers: Uptime/Expires! g- b$ q+ C7 P# Y9 ?
Interface state: Interface, Next-Hop or VCD, State/Mode |