マルチキャストの基本演習(PIM-DM)





まずは基本的なPIM-DMの設定を入れ込みます。

R1
interface s1/0
ip add 12.12.12.1 255.255.255.0
ip igmp join-group 230.0.0.1

router eig 100
net 12.12.12.0
no auto-summary

R2
ip multicast-routing

interface s1/0
ip add 23.23.23.2 255.255.255.0
ip pim dense-mode

interface s1/1
ip add 12.12.12.2 255.255.255.0
ip pim dense-mode

router eig 100
net 12.12.12.0
net 23.23.23.0
no auto-summary

R3
ip multicast-routing

interface s1/0
ip add 34.34.34.3 255.255.255.0
ip pim dense-mode

interface s1/1
ip add 23.23.23.3 255.255.255.0
ip pim dense-mode

router eig 100
net 23.23.23.0
net 34.34.34.0
no auto-sumary

R4
ip multicast-routing

interface s1/0
ip add 45.45.45.4 255.255.255.0
ip pim dense-mode

interface s1/1
ip add 34.34.34.4 255.255.255.0
ip pim dense-mode

router eig 100
net 34.34.34.0
net 45.45.45.0
no auto-sumary

R5
interface s1/1
ip add 45.45.45.5 255.255.255.0
ip pim dense-mode

router eig 100
net 45.45.45.0
no auto-summary

まずは、何もマルチキャストパケットを飛ばさない状態で、R2 にて sh ip mroute を確認してみます。

R2#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.0.1.40), 00:42:10/stopped, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    Serial1/0, Forward/Dense, 00:42:10/00:00:00


224.0.1.40 のみがエントリされていることがわかります。
224.0.1.40は,シスコのAuto-RP機能で使うアドレスで,このエントリはデフォルトで作成されるようになって
いるそうです。

次に R3 にて ip pim neighbor を確認してみます。

R3#sh ip pim neighbor
PIM Neighbor Table
Mode: B - Bidir Capable, DR - Designated Router, N - Default DR Priority,
      S - State Refresh Capable
Neighbor          Interface                Uptime/Expires    Ver   DR
Address                                                            Prio/Mode
34.34.34.4        Serial1/0                00:48:15/00:01:16 v2    1 / S
23.23.23.2        Serial1/1                00:47:53/00:01:34 v2    1 / S

R2 と R4 がネイバーになっていることがわかりますね。

次に R2 にて sh ip igmp group を確認してみます。

R2#sh ip igmp groups
IGMP Connected Group Membership
Group Address    Interface                Uptime    Expires   Last Reporter   Group Accounted
230.0.0.1        Serial1/1                00:00:05  00:02:54  12.12.12.1
224.0.1.40       Serial1/0                01:00:29  stopped   23.23.23.2

R1 S1/0 にて ip igmp join-group 230.0.0.1 を設定したので、R2 S1/1 にて JOIN を受け取っていることが
わかります。

次に R5 からマルチキャストパケットを投げて、R4 にて debug を取得してみます。
R5 で ping 230.0.0.1 でマルチキャストパケットをとばします。
R4 で debug ip pim と debug ip mroute を取得します。


R4#
*Dec 20 22:12:41.987: MRT(0): Create (*,230.0.0.1), RPF  /0.0.0.0
*Dec 20 22:12:41.991: MRT(0): WAVL Insert interface: Serial1/1 in (* ,230.0.0.1) Successful
*Dec 20 22:12:41.995: MRT(0): set min mtu for (0.0.0.0, 230.0.0.1) 0->1500
*Dec 20 22:12:41.999: MRT(0): Add Serial1/1/230.0.0.1 to the olist of (*, 230.0.0.1), Forward state - MAC built
*Dec 20 22:12:42.003: MRT(0): (45.45.45.5,230.0.0.1), RPF install from  /0.0.0.0 to Serial1/0/0.0.0.0
*Dec 20 22:12:42.007: MRT(0): Reset the z-flag for (45.45.45.5, 230.0.0.1)
*Dec 20 22:12:42.011: MRT(0): Create (45.45.45.5,230.0.0.1), RPF Serial1/0/0.0.0.0
*Dec 20 22:12:42.015: MRT(0): WAVL Insert interface: Serial1/1 in (45.45.45.5,230.0.0.1) Successful
*Dec 20 22:12:42.019: MRT(0): set min mtu for (45.45.45.5, 230.0.0.1) 0->1500
*Dec 20 22:12:42.023: MRT(0): Add Serial1/1/230.0.0.1 to the olist of (45.45.45.5, 230.0.0.1), Forward state - MAC built

赤い行で、サーバからマルチキャストパケットを受け取っていることがわかります。
また青い行にて 45.45.45.5,230.0.0.1 のエントリを作成していることがわかります。
また、R3 にて sh ip mroute を確認してみます。

R3#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

(*, 230.0.0.1), 00:03:47/stopped, RP 0.0.0.0, flags: D
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    Serial1/1, Forward/Dense, 00:03:47/00:00:00
    Serial1/0, Forward/Dense, 00:03:47/00:00:00

(45.45.45.5, 230.0.0.1), 00:00:02/00:02:57, flags: T
  Incoming interface: Serial1/0, RPF nbr 34.34.34.4
  Outgoing interface list:
    Serial1/1, Forward/Dense, 00:00:02/00:00:00

(*, 224.0.1.40), 00:04:55/stopped, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    Serial1/1, Forward/Dense, 00:04:25/00:00:00
    Serial1/0, Forward/Dense, 00:04:55/00:00:00

(45.45.45.5, 230.0.0.1) のエントリが存在していることがわかります。
R5 側から受け取っているので、Incoming は s1/0、
R1 側へ出力しているので、Outgoing は s1/1 となっています。
更新日:2012/12/21
TOPに戻る