天天看點

Ip igmp static-group 和 ip igmp join-group 差別?

Sometimes either there is no group member on a network segment or a host cannot report its group membership using IGMP. However, you may want multicast traffic to go to that network segment. The following are two ways to pull multicast traffic down to a network segment:

相同點:

在接口下所連接配接的裝置沒有發igmp report封包的能力的時候,可以在接口上使用這兩個指令把多點傳播流引下來.

不同點:

join-group, 這個接口就模拟成PC發了IGMP report封包,這個接口就是接收者且也轉發配置的多點傳播流量out這個接口. 此時盡管這個接口下面沒有接任何裝置,在上端PING這個多點傳播位址時,<b>有回報</b>(因為它就是接收者). 這時葉路由器發pim join (*,G)到RP.

使用static-group, 表示這個接口加入了配置的多點傳播位址,它可以轉流量out這個接口,這個接口不是接收者,它所下挂的裝置是接收者. 此時如果這個接口下面沒有接任何裝置,在上端PING這個多點傳播位址時,<b>沒有回報</b><b>(</b>因為它不是接收者). 這時葉路由器也發pim join(*,G)到RP.

在show ip mroute時, join-group帶<b>’L’</b>辨別,表示local,此接口是member成員.

R3(config)#int lo0

R3(config-if)#ip igmp join-group 224.100.100.100

R3(config-if)#int s0/0

R3(config-if)#ip igmp static-group 232.100.100.100

R3(config-if)#do sho ip mroute

IP Multicast Routing Table

Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,

L - Local, P - Pruned, R - RP-bit set, F - Register flag,

T - SPT-bit set, J - Join SPT, M - MSDP created entry,

X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,

U - URD, I - Received Source Specific Host Report,

Z - Multicast Tunnel, z - MDT-data group sender,

Y - Joined MDT-data group, y - Sending to MDT-data group

Outgoing interface flags: H - Hardware switched, A - Assert winner

Timers: Uptime/Expires

Interface state: Interface, Next-Hop or VCD, State/Mode

(*, 232.100.100.100), 00:00:03/00:02:56, RP 2.2.2.2, flags: SJC

Incoming interface: Serial0/1, RPF nbr 192.1.13.1

Outgoing interface list:

Serial0/0, Forward/Sparse, 00:00:03/00:02:56

(*, 224.100.100.100), 00:00:14/00:02:45, RP 2.2.2.2, flags: SJCL

Loopback0, Forward/Sparse, 00:00:14/00:02:45

這裡再舉一個例子:

在路由器上面配置:

然後在該路由器上面show可以看到:

在這裡,mroute 表中,(*,224.2.2.2)的表項是帶L标志位的,證明224.2.2.2是join-group.并且可以看到, last reporter是10.10.10.10,我們再路由器上面配置的loopback0接口,他已經代替下面的多點傳播用戶端發送IGMP report上去了。而224.1.1.1,是靜态加入的組,expire字段是停止的,因為下面根本就沒有接收者。

從另外一個路由器上面,ping 224.1.1.1 和ping 224.2.2.2結果是完全不一樣的。

本文轉自 hny2000 51CTO部落格,原文連結:http://blog.51cto.com/361531/912084