Source(config)#ip multicast-routing |
Source(config)#int s1/0
Source(config-if)#ip pim dense-mode |
R2(config)#ip multicast-routing
R2(config)#int s1/1
R2(config-if)#ip pim dense-mode
R2(config-if)#int s
*Aug 29 15:04:24.135: %PIM-5-NBRCHG: neighbor 24.0.0.4 UP on interface Serial1/1
R2(config-if)#int s1/0
R2(config-if)#ip pim dense-mode
R2(config-if)# |
R1(config)#ip multicast-routing
R1(config)#int s1/0
R1(config-if)#ip pim dense-mode
R1(config-if)#int s/1
*Aug 29 15:05:28.759: %PIM-5-NBRCHG: neighbor
R1(config-if)#int s1/1
R1(config-if)#ip pim dense-mode
R1(config-if)#exit
R1(config)# |
R3(config)#int s1/0
R3(config-if)#ip igmp join-group 224.1.1.1
R3(config-if)# |
R1#sh 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
(*, 224.1.1.1), 00:01:13/00:02:15, R
Incoming interface: Null, RPF nbr
Outgoing interface list:
Serial1/1, Forward/Dense, 00:01:13/00:00:00
Serial1/0, Forward/Dense, 00:01:13/00:00:00
(*, 224.0.1.40), 00:02:29/00:00:31, R
Incoming interface: Null, RPF nbr
Outgoing interface list:
Serial1/0, Forward/Dense, 00:02:29/00:00:00
R1# |
Source#ping 224.1.1.1 对于组播地址的PING只发一个包。
Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 224.1.1.1, timeout is 2 seconds:
Reply to request 0 from
Source# |
R1#sh 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
*就相当于汇总
(*, 224.1.1.1), 00:05:05/stopped, R
Incoming interface: Null, RPF nbr
Outgoing interface list:
Serial1/1, Forward/Dense, 00:05:05/00:00:00
Serial1/0, Forward/Dense, 00:05:05/00:00:00
(24.0.0.4, 224.1.1.1), 00:02:19/00:00:48, flags: T T表示源分发树
Incoming interface: Serial1/0, RPF nbr
Outgoing interface list: 组播流出接口
Serial1/1, Forward/Dense, 00:02:19/00:00:00 使用的密集模式
(*, 224.0.1.40), 00:06:21/stopped, R
Incoming interface: Null, RPF nbr
Outgoing interface list:
Serial1/0, Forward/Dense, 00:06:21/00:00:00 |
Source#ping 224.1.1.1 repeat 50
Type escape sequence to abort.
Sending 50, 100-byte ICMP Echos to 224.1.1.1, timeout is 2 seconds:
Reply to request 0 from
Reply to request 1 from
Reply to request 2 from
Reply to request 3 from
这里后面点就表示这条树已经不存在了。
Source# |
R3(config)#int s1/0
R3(config-if)#no ip igmp join-group 224.1.1.1 |
R1#sh 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
(*, 224.1.1.1), 00:11:32/stopped, R
Incoming interface: Null, RPF nbr
Outgoing interface list:
Serial1/0, Forward/Dense, 00:11:32/00:00:00
(24.0.0.4, 224.1.1.1), 00:01:00/00:02:11, flags: PT 标志位为PT/修剪的源分发树
Incoming interface: Serial1/0, RPF nbr
Outgoing interface list: Null 进行了修剪,出接口为空。
(*, 224.0.1.40), 00:12:48/stopped, R
Incoming interface: Null, RPF nbr
Outgoing interface list:
Serial1/0, Forward/Dense, 00:12:48/00:00:00 |