Skip to content

IOSv でマルチキャストを設定する (Auto RP)

CML 上の IOSv で Auto RP 構成でマルチキャストを設定したサンプルコンフィグをメモしておきます。 尚、CML へインポート可能な構成ファイルは GitHub にアップロードしてあります。

1. 設定

構成

IOSv1 は Source、IOSv7 は Receiver として設定します。 IOSv2 ~ 6 では OSPF を動作させ、全てのユニキャストルーティングを学習させます。 IOSv4 と IOSv5 は Auto RP の RP Candidate として設定します。 IOSv4 (10.4.4.4) と IOSv5 (10.5.5.5) の両方がアクティブな場合、アドレスの大きな IOSv5 側が RP として選出されます。 障害で IOSv5 との疎通性が無くなった場合、最大 3 分 = 180 秒経過すると RP 情報が Age Out し、疎通性のある IOSv4 へ RP が切り替わります。

file

コンフィグ

中継区間となる IOSv2 ~ 6 の全てのインターフェイスには ip pim sparse-dense-mode を設定します。 また、今回は Auto RP を利用するので以下のように設定します。 scope には十分に大きな値を指定します。

  • IOSv2 に ip pim send-rp-discovery Loopback0 scope 16 を設定し、Mapping Agent にする
  • IOSv4 と IOSv5 に ip pim send-rp-announce Loopback0 scope 16 を設定し、RP Candidate にする

共通コンフィグ

マルチキャストとは関係ありませんが、全てのルータへ基本的な設定を実施しておきます。

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
no service config
service timestamps debug datetime msec localtime
service timestamps log datetime msec localtime
!
logging buffered 65536 debugging
!
clock timezone JST +9
!
no ip domain-lookup
!
line con 0
 exec-timeout 60 0
 privilege level 15
!
scheduler allocate 20000 1000
!
no banner exec ^C
no banner incoming ^C
no banner login ^C

IOSv1

Source になる IOSv1 は no ip routing でルーティングを無効化し、ip default-gateway [ADDRESS] でデフォルトゲートウェイだけ、設定しています。

1
2
3
4
5
6
7
8
9
hostname IOSv1
!
no ip routing
!
interface GigabitEthernet0/0
 ip address 10.0.12.1 255.255.255.0
 no shutdown
!
ip default-gateway 10.0.12.2

IOSv2

ip pim send-rp-discovery Loopback0 scope 16 を設定し、Mapping Agent として動作させます。

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
hostname IOSv2
!
ip multicast-routing
!
interface Loopback0
 ip address 10.2.2.2 255.255.255.255
 ip pim sparse-dense-mode
!
interface GigabitEthernet0/0
 ip address 10.0.12.2 255.255.255.0
 ip pim sparse-dense-mode
 no shutdown
!
interface GigabitEthernet0/1
 ip address 10.0.23.2 255.255.255.0
 ip pim sparse-dense-mode
 no shutdown
!
router ospf 65000
 router-id 10.2.2.2
 passive-interface GigabitEthernet0/0
 network 10.0.12.0 0.0.0.255 area 0.0.0.0
 network 10.0.23.0 0.0.0.255 area 0.0.0.0
 network 10.2.2.2 0.0.0.0 area 0.0.0.0
!
ip pim send-rp-discovery Loopback0 scope 16

IOSv3

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
hostname IOSv3
!
ip multicast-routing
!
interface GigabitEthernet0/0
 ip address 10.0.23.3 255.255.255.0
 ip pim sparse-dense-mode
 no shutdown
!
interface GigabitEthernet0/1
 ip address 10.0.34.3 255.255.255.0
 ip pim sparse-dense-mode
 no shutdown
!
interface GigabitEthernet0/2
 ip address 10.0.35.3 255.255.255.0
 ip pim sparse-dense-mode
 no shutdown
!
router ospf 65000
 router-id 10.3.3.3
 network 10.0.23.0 0.0.0.255 area 0.0.0.0
 network 10.0.34.0 0.0.0.255 area 0.0.0.0
 network 10.0.35.0 0.0.0.255 area 0.0.0.0

IOSv4

ip pim send-rp-announce Loopback0 scope 16 を設定し、RP Candidate として動作させます。

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
hostname IOSv4
!
ip multicast-routing
!
interface Loopback0
 ip address 10.4.4.4 255.255.255.255
 ip pim sparse-dense-mode
!
interface GigabitEthernet0/0
 ip address 10.0.34.4 255.255.255.0
 ip pim sparse-dense-mode
 no shutdown
!
interface GigabitEthernet0/1
 ip address 10.0.46.4 255.255.255.0
 ip pim sparse-dense-mode
 no shutdown
!
router ospf 65000
 router-id 10.4.4.4
 network 10.0.34.0 0.0.0.255 area 0.0.0.0
 network 10.0.46.0 0.0.0.255 area 0.0.0.0
 network 10.4.4.4 0.0.0.0 area 0.0.0.0
!
ip pim send-rp-announce Loopback0 scope 16

IOSv5

ip pim send-rp-announce Loopback0 scope 16 を設定し、RP Candidate として動作させます。

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
hostname IOSv5
!
ip multicast-routing
!
interface Loopback0
 ip address 10.5.5.5 255.255.255.255
 ip pim sparse-dense-mode
!
interface GigabitEthernet0/0
 ip address 10.0.35.5 255.255.255.0
 ip pim sparse-dense-mode
 no shutdown
!
interface GigabitEthernet0/1
 ip address 10.0.56.5 255.255.255.0
 ip pim sparse-dense-mode
 no shutdown
!
router ospf 65000
 router-id 10.5.5.5
 network 10.0.35.0 0.0.0.255 area 0.0.0.0
 network 10.0.56.0 0.0.0.255 area 0.0.0.0
 network 10.5.5.5 0.0.0.0 area 0.0.0.0
!
ip pim send-rp-announce Loopback0 scope 16

IOSv6

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
hostname IOSv6
!
ip multicast-routing
!
interface GigabitEthernet0/0
 ip address 10.0.46.6 255.255.255.0
 ip pim sparse-dense-mode
 no shutdown
!
interface GigabitEthernet0/1
 ip address 10.0.56.6 255.255.255.0
 ip pim sparse-dense-mode
 no shutdown
!
interface GigabitEthernet0/2
 ip address 10.0.67.6 255.255.255.0
 ip pim sparse-dense-mode
 no shutdown
!
router ospf 65000
 router-id 10.6.6.6
 passive-interface GigabitEthernet0/2
 network 10.0.46.0 0.0.0.255 area 0.0.0.0
 network 10.0.56.0 0.0.0.255 area 0.0.0.0
 network 10.0.67.0 0.0.0.255 area 0.0.0.0
!
ip pim spt-threshold infinity

IOSv7

Receiver になる IOSv7 は Source となる IOSv1 同様、no ip routing でルーティングを無効化し、ip default-gateway [ADDRESS] でデフォルトゲートウェイだけ、設定しています。 マルチキャストの Receiver として動作させる為に ip igmp join-group [MCAST-ADDR] でマルチキャストグループに参加させます。

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
hostname IOSv7
!
no ip routing
!
interface GigabitEthernet0/0
 ip address 10.0.67.7 255.255.255.0
 ip igmp join-group 224.1.1.1
 no shutdown
!
ip default-gateway 10.0.67.6

2. 状態確認

2-1. show ip pim rp mapping

IOSv1

1
2
IOSv1# show ip pim rp mapping
PIM Group-to-RP Mappings

IOSv2

IOSv4 と IOSv5 の両方がアクティブな場合、アドレスの大きな IOSv5 が RP として選出されます。

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
IOSv2# show ip pim rp mapping
PIM Group-to-RP Mappings
This system is an RP-mapping agent (Loopback0)

Group(s) 224.0.0.0/4
  RP 10.5.5.5 (?), v2v1
    Info source: 10.5.5.5 (?), elected via Auto-RP
         Uptime: 01:38:41, expires: 00:02:41
  RP 10.4.4.4 (?), v2v1
    Info source: 10.4.4.4 (?), via Auto-RP
         Uptime: 01:38:44, expires: 00:02:46

IOSv3

1
2
3
4
5
6
7
IOSv3# show ip pim rp mapping
PIM Group-to-RP Mappings

Group(s) 224.0.0.0/4
  RP 10.5.5.5 (?), v2v1
    Info source: 10.2.2.2 (?), elected via Auto-RP
         Uptime: 01:39:04, expires: 00:02:26

IOSv4

1
2
3
4
5
6
7
8
IOSv4# show ip pim rp mapping
PIM Group-to-RP Mappings
This system is an RP (Auto-RP)

Group(s) 224.0.0.0/4
  RP 10.5.5.5 (?), v2v1
    Info source: 10.2.2.2 (?), elected via Auto-RP
         Uptime: 01:39:06, expires: 00:02:31

IOSv5

1
2
3
4
5
6
7
8
IOSv5# show ip pim rp mapping
PIM Group-to-RP Mappings
This system is an RP (Auto-RP)

Group(s) 224.0.0.0/4
  RP 10.5.5.5 (?), v2v1
    Info source: 10.2.2.2 (?), elected via Auto-RP
         Uptime: 01:38:14, expires: 00:02:26

IOSv6

1
2
3
4
5
6
7
IOSv6# show ip pim rp mapping
PIM Group-to-RP Mappings

Group(s) 224.0.0.0/4
  RP 10.5.5.5 (?), v2v1
    Info source: 10.2.2.2 (?), elected via Auto-RP
         Uptime: 01:39:38, expires: 00:02:30

IOSv7

1
2
IOSv7# show ip pim rp mapping
PIM Group-to-RP Mappings

2-2. show ip mroute

IOSv1

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
IOSv1# show ip mroute
IP Multicast Forwarding is not enabled.
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, E - Extranet,
       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, 
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute, 
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed, 
       Q - Received BGP S-A Route, q - Sent BGP S-A Route, 
       V - RD & Vector, v - Vector, p - PIM Joins on route, 
       x - VxLAN group
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

IOSv2

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
IOSv2# show 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, E - Extranet,
       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, 
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute, 
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed, 
       Q - Received BGP S-A Route, q - Sent BGP S-A Route, 
       V - RD & Vector, v - Vector, p - PIM Joins on route, 
       x - VxLAN group
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*, 224.0.1.39), 01:42:59/stopped, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    Loopback0, Forward/Sparse-Dense, 01:42:59/stopped
    GigabitEthernet0/1, Forward/Sparse-Dense, 01:42:59/stopped
    GigabitEthernet0/0, Forward/Sparse-Dense, 01:42:59/stopped

(10.5.5.5, 224.0.1.39), 01:38:32/00:02:53, flags: LT
  Incoming interface: GigabitEthernet0/1, RPF nbr 10.0.23.3
  Outgoing interface list:
    Loopback0, Forward/Sparse-Dense, 01:38:32/stopped
    GigabitEthernet0/0, Forward/Sparse-Dense, 01:38:32/stopped

(10.4.4.4, 224.0.1.39), 01:38:36/00:02:57, flags: LT
  Incoming interface: GigabitEthernet0/1, RPF nbr 10.0.23.3
  Outgoing interface list:
    Loopback0, Forward/Sparse-Dense, 01:38:36/stopped
    GigabitEthernet0/0, Forward/Sparse-Dense, 01:38:36/stopped

(*, 224.0.1.40), 01:39:39/stopped, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    Loopback0, Forward/Sparse-Dense, 01:39:39/stopped
    GigabitEthernet0/1, Forward/Sparse-Dense, 01:39:38/stopped

(10.2.2.2, 224.0.1.40), 01:38:36/00:02:40, flags: LT
  Incoming interface: Loopback0, RPF nbr 0.0.0.0
  Outgoing interface list:
    GigabitEthernet0/1, Forward/Sparse-Dense, 01:38:36/stopped

IOSv3

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
IOSv3# show 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, E - Extranet,
       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, 
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute, 
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed, 
       Q - Received BGP S-A Route, q - Sent BGP S-A Route, 
       V - RD & Vector, v - Vector, p - PIM Joins on route, 
       x - VxLAN group
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*, 224.0.1.39), 01:40:06/stopped, RP 0.0.0.0, flags: DC
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    GigabitEthernet0/2, Forward/Sparse-Dense, 01:40:06/stopped
    GigabitEthernet0/1, Forward/Sparse-Dense, 01:40:06/stopped
    GigabitEthernet0/0, Forward/Sparse-Dense, 01:40:06/stopped

(10.5.5.5, 224.0.1.39), 01:39:54/00:02:43, flags: T
  Incoming interface: GigabitEthernet0/2, RPF nbr 10.0.35.5
  Outgoing interface list:
    GigabitEthernet0/0, Forward/Sparse-Dense, 01:39:54/stopped
    GigabitEthernet0/1, Prune/Sparse-Dense, 00:07:29/00:01:24, A

(10.4.4.4, 224.0.1.39), 01:39:58/00:01:43, flags: T
  Incoming interface: GigabitEthernet0/1, RPF nbr 10.0.34.4
  Outgoing interface list:
    GigabitEthernet0/0, Forward/Sparse-Dense, 01:39:58/stopped
    GigabitEthernet0/2, Prune/Sparse-Dense, 00:16:25/00:01:19, A

(*, 224.0.1.40), 01:40:07/stopped, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    GigabitEthernet0/2, Forward/Sparse-Dense, 01:40:06/stopped
    GigabitEthernet0/1, Forward/Sparse-Dense, 01:40:06/stopped
    GigabitEthernet0/0, Forward/Sparse-Dense, 01:40:07/stopped

(10.2.2.2, 224.0.1.40), 01:38:59/00:02:39, flags: LT
  Incoming interface: GigabitEthernet0/0, RPF nbr 10.0.23.2
  Outgoing interface list:
    GigabitEthernet0/1, Forward/Sparse-Dense, 01:38:59/stopped
    GigabitEthernet0/2, Forward/Sparse-Dense, 01:38:59/stopped

IOSv4

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
IOSv4# show 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, E - Extranet,
       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, 
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute, 
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed, 
       Q - Received BGP S-A Route, q - Sent BGP S-A Route, 
       V - RD & Vector, v - Vector, p - PIM Joins on route, 
       x - VxLAN group
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*, 224.0.1.39), 01:40:02/stopped, RP 0.0.0.0, flags: D
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    GigabitEthernet0/0, Forward/Sparse-Dense, 01:40:01/stopped
    GigabitEthernet0/1, Forward/Sparse-Dense, 01:40:01/stopped

(10.5.5.5, 224.0.1.39), 00:01:06/00:01:53, flags: T
  Incoming interface: GigabitEthernet0/1, RPF nbr 10.0.46.6
  Outgoing interface list:
    GigabitEthernet0/0, Forward/Sparse-Dense, 00:01:06/stopped

(10.4.4.4, 224.0.1.39), 01:40:02/00:02:57, flags: T
  Incoming interface: Loopback0, RPF nbr 0.0.0.0
  Outgoing interface list:
    GigabitEthernet0/0, Forward/Sparse-Dense, 01:40:01/stopped
    GigabitEthernet0/1, Forward/Sparse-Dense, 00:01:29/stopped

(*, 224.0.1.40), 01:40:02/stopped, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    Loopback0, Forward/Sparse-Dense, 01:40:02/stopped
    GigabitEthernet0/0, Forward/Sparse-Dense, 01:40:01/stopped
    GigabitEthernet0/1, Forward/Sparse-Dense, 01:40:01/stopped

(10.2.2.2, 224.0.1.40), 01:39:01/00:02:40, flags: LT
  Incoming interface: GigabitEthernet0/0, RPF nbr 10.0.34.3
  Outgoing interface list:
    Loopback0, Forward/Sparse-Dense, 01:39:01/stopped
    GigabitEthernet0/1, Forward/Sparse-Dense, 01:39:01/stopped, A

IOSv5

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
IOSv5# show 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, E - Extranet,
       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, 
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute, 
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed, 
       Q - Received BGP S-A Route, q - Sent BGP S-A Route, 
       V - RD & Vector, v - Vector, p - PIM Joins on route, 
       x - VxLAN group
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*, 224.1.1.1), 01:38:05/00:03:26, RP 10.5.5.5, flags: S
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    GigabitEthernet0/1, Forward/Sparse-Dense, 01:38:05/00:03:26

(*, 224.0.1.39), 01:39:05/stopped, RP 0.0.0.0, flags: D
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    GigabitEthernet0/0, Forward/Sparse-Dense, 01:39:04/stopped
    GigabitEthernet0/1, Forward/Sparse-Dense, 01:39:04/stopped

(10.4.4.4, 224.0.1.39), 00:01:02/00:01:57, flags: T
  Incoming interface: GigabitEthernet0/1, RPF nbr 10.0.56.6
  Outgoing interface list:
    GigabitEthernet0/0, Forward/Sparse-Dense, 00:01:02/stopped

(10.5.5.5, 224.0.1.39), 01:39:05/00:02:53, flags: T
  Incoming interface: Loopback0, RPF nbr 0.0.0.0
  Outgoing interface list:
    GigabitEthernet0/0, Forward/Sparse-Dense, 01:39:04/stopped
    GigabitEthernet0/1, Forward/Sparse-Dense, 00:01:05/stopped

(*, 224.0.1.40), 01:39:06/stopped, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    Loopback0, Forward/Sparse-Dense, 01:39:06/stopped
    GigabitEthernet0/0, Forward/Sparse-Dense, 01:39:04/stopped
    GigabitEthernet0/1, Forward/Sparse-Dense, 01:39:04/stopped

(10.2.2.2, 224.0.1.40), 01:38:08/00:02:39, flags: LT
  Incoming interface: GigabitEthernet0/0, RPF nbr 10.0.35.3
  Outgoing interface list:
    Loopback0, Forward/Sparse-Dense, 01:38:08/stopped
    GigabitEthernet0/1, Forward/Sparse-Dense, 01:38:08/stopped

IOSv6

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
IOSv6# show 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, E - Extranet,
       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, 
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute, 
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed, 
       Q - Received BGP S-A Route, q - Sent BGP S-A Route, 
       V - RD & Vector, v - Vector, p - PIM Joins on route, 
       x - VxLAN group
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*, 224.1.1.1), 01:40:40/00:02:27, RP 10.5.5.5, flags: SC
  Incoming interface: GigabitEthernet0/1, RPF nbr 10.0.56.5
  Outgoing interface list:
    GigabitEthernet0/2, Forward/Sparse-Dense, 01:40:40/00:02:27

(*, 224.0.1.39), 01:40:34/stopped, RP 0.0.0.0, flags: D
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    GigabitEthernet0/1, Forward/Sparse-Dense, 01:40:34/stopped
    GigabitEthernet0/0, Forward/Sparse-Dense, 01:40:34/stopped

(10.5.5.5, 224.0.1.39), 01:37:30/00:02:32, flags: T
  Incoming interface: GigabitEthernet0/1, RPF nbr 10.0.56.5
  Outgoing interface list:
    GigabitEthernet0/0, Forward/Sparse-Dense, 00:01:32/stopped

(10.4.4.4, 224.0.1.39), 01:40:34/00:02:42, flags: T
  Incoming interface: GigabitEthernet0/0, RPF nbr 10.0.46.4
  Outgoing interface list:
    GigabitEthernet0/1, Forward/Sparse-Dense, 00:01:37/stopped

(*, 224.0.1.40), 01:40:40/stopped, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    GigabitEthernet0/1, Forward/Sparse-Dense, 01:40:40/stopped
    GigabitEthernet0/0, Forward/Sparse-Dense, 01:40:40/stopped

(10.2.2.2, 224.0.1.40), 01:39:34/00:02:39, flags: PLT
  Incoming interface: GigabitEthernet0/1, RPF nbr 10.0.56.5
  Outgoing interface list:
    GigabitEthernet0/0, Prune/Sparse-Dense, 00:03:49/00:02:06

IOSv7

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
IOSv7# show ip mroute
IP Multicast Forwarding is not enabled.
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, E - Extranet,
       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, 
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute, 
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed, 
       Q - Received BGP S-A Route, q - Sent BGP S-A Route, 
       V - RD & Vector, v - Vector, p - PIM Joins on route, 
       x - VxLAN group
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

2-3. 通信確認

IOSv1

1
2
3
4
5
6
7
8
IOSv1# ping 224.1.1.1 repeat 5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 224.1.1.1, timeout is 2 seconds:
.
Reply to request 1 from 10.0.67.7, 35 ms
Reply to request 2 from 10.0.67.7, 14 ms
Reply to request 3 from 10.0.67.7, 9 ms
Reply to request 4 from 10.0.67.7, 11 ms

2-4. show ip mroute

file

IOSv1

1
2
IOSv1# show ip mroute 224.1.1.1
Group 224.1.1.1 not found

IOSv2

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
IOSv2# show ip mroute 224.1.1.1
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, E - Extranet,
       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, 
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute, 
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed, 
       Q - Received BGP S-A Route, q - Sent BGP S-A Route, 
       V - RD & Vector, v - Vector, p - PIM Joins on route, 
       x - VxLAN group
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*, 224.1.1.1), 00:01:26/stopped, RP 10.5.5.5, flags: SPF
  Incoming interface: GigabitEthernet0/1, RPF nbr 10.0.23.3
  Outgoing interface list: Null

(10.0.12.1, 224.1.1.1), 00:01:26/00:02:04, flags: FT
  Incoming interface: GigabitEthernet0/0, RPF nbr 0.0.0.0
  Outgoing interface list:
    GigabitEthernet0/1, Forward/Sparse-Dense, 00:01:26/00:03:02

IOSv3

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
IOSv3# show ip mroute 224.1.1.1
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, E - Extranet,
       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, 
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute, 
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed, 
       Q - Received BGP S-A Route, q - Sent BGP S-A Route, 
       V - RD & Vector, v - Vector, p - PIM Joins on route, 
       x - VxLAN group
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*, 224.1.1.1), 00:01:27/stopped, RP 10.5.5.5, flags: SP
  Incoming interface: GigabitEthernet0/2, RPF nbr 10.0.35.5
  Outgoing interface list: Null

(10.0.12.1, 224.1.1.1), 00:01:27/00:01:32, flags: T
  Incoming interface: GigabitEthernet0/0, RPF nbr 10.0.23.2
  Outgoing interface list:
    GigabitEthernet0/2, Forward/Sparse-Dense, 00:01:27/00:03:02

IOSv4

1
2
IOSv4# show ip mroute 224.1.1.1
Group 224.1.1.1 not found

IOSv5

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
IOSv5# show ip mroute 224.1.1.1
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, E - Extranet,
       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, 
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute, 
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed, 
       Q - Received BGP S-A Route, q - Sent BGP S-A Route, 
       V - RD & Vector, v - Vector, p - PIM Joins on route, 
       x - VxLAN group
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*, 224.1.1.1), 01:44:19/00:03:07, RP 10.5.5.5, flags: S
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    GigabitEthernet0/1, Forward/Sparse-Dense, 01:44:19/00:03:07

(10.0.12.1, 224.1.1.1), 00:01:24/00:01:37, flags: T
  Incoming interface: GigabitEthernet0/0, RPF nbr 10.0.35.3
  Outgoing interface list:
    GigabitEthernet0/1, Forward/Sparse-Dense, 00:01:24/00:03:07

IOSv6

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
IOSv6# show ip mroute 224.1.1.1
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, E - Extranet,
       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, 
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute, 
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed, 
       Q - Received BGP S-A Route, q - Sent BGP S-A Route, 
       V - RD & Vector, v - Vector, p - PIM Joins on route, 
       x - VxLAN group
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*, 224.1.1.1), 01:46:57/00:02:09, RP 10.5.5.5, flags: SC
  Incoming interface: GigabitEthernet0/1, RPF nbr 10.0.56.5
  Outgoing interface list:
    GigabitEthernet0/2, Forward/Sparse-Dense, 01:46:57/00:02:09

IOSv7

1
2
IOSv7# show ip mroute 224.1.1.1
Group 224.1.1.1 not found

3. 障害時動作

IOSv5 のインターフェイスを閉塞し、障害時動作を確認します。

3-1. インターフェイス閉塞

IOSv5

1
2
3
4
IOSv5# configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
IOSv5(config)# interface range GigabitEthernet 0/0-1
IOSv5(config-if-range)# shutdown

3-2. 通信確認

IOSv1

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
IOSv1# ping 224.1.1.1 repeat 5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 224.1.1.1, timeout is 2 seconds:

Reply to request 0 from 10.0.67.7, 24 ms
Reply to request 1 from 10.0.67.7, 22 ms
Reply to request 1 from 10.0.67.7, 37 ms
Reply to request 2 from 10.0.67.7, 17 ms
Reply to request 3 from 10.0.67.7, 19 ms
Reply to request 4 from 10.0.67.7, 9 ms

3-3. show ip pim rp mapping

IOSv1

1
2
IOSv1# show ip pim rp mapping
PIM Group-to-RP Mappings

IOSv2

1
2
3
4
5
6
7
8
IOSv2# show ip pim rp mapping
PIM Group-to-RP Mappings
This system is an RP-mapping agent (Loopback0)

Group(s) 224.0.0.0/4
  RP 10.4.4.4 (?), v2v1
    Info source: 10.4.4.4 (?), elected via Auto-RP
         Uptime: 02:08:12, expires: 00:02:26

IOSv3

1
2
3
4
5
6
7
IOSv3# show ip pim rp mapping
PIM Group-to-RP Mappings

Group(s) 224.0.0.0/4
  RP 10.4.4.4 (?), v2v1
    Info source: 10.2.2.2 (?), elected via Auto-RP
         Uptime: 00:00:46, expires: 00:02:12

IOSv4

1
2
3
4
5
6
7
8
IOSv4# show ip pim rp mapping
PIM Group-to-RP Mappings
This system is an RP (Auto-RP)

Group(s) 224.0.0.0/4
  RP 10.4.4.4 (?), v2v1
    Info source: 10.2.2.2 (?), elected via Auto-RP
         Uptime: 00:00:46, expires: 00:02:11

IOSv5

1
2
3
IOSv5# show ip pim rp mapping
PIM Group-to-RP Mappings
This system is an RP (Auto-RP)

IOSv6

1
2
3
4
5
6
7
IOSv6# show ip pim rp mapping
PIM Group-to-RP Mappings

Group(s) 224.0.0.0/4
  RP 10.4.4.4 (?), v2v1
    Info source: 10.2.2.2 (?), elected via Auto-RP
         Uptime: 00:00:47, expires: 00:02:12

IOSv7

1
2
IOSv7# show ip pim rp mapping
PIM Group-to-RP Mappings

3-4. show ip mroute

file

IOSv1

1
2
IOSv1# show ip mroute 224.1.1.1
Group 224.1.1.1 not found

IOSv2

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
IOSv2# show ip mroute 224.1.1.1
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, E - Extranet,
       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, 
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute, 
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed, 
       Q - Received BGP S-A Route, q - Sent BGP S-A Route, 
       V - RD & Vector, v - Vector, p - PIM Joins on route, 
       x - VxLAN group
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*, 224.1.1.1), 00:02:56/stopped, RP 10.4.4.4, flags: SPF
  Incoming interface: GigabitEthernet0/1, RPF nbr 10.0.23.3
  Outgoing interface list: Null

(10.0.12.1, 224.1.1.1), 00:02:56/00:02:58, flags: FT
  Incoming interface: GigabitEthernet0/0, RPF nbr 0.0.0.0
  Outgoing interface list:
    GigabitEthernet0/1, Forward/Sparse-Dense, 00:00:35/00:02:54

IOSv3

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
IOSv3# show ip mroute 224.1.1.1
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, E - Extranet,
       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, 
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute, 
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed, 
       Q - Received BGP S-A Route, q - Sent BGP S-A Route, 
       V - RD & Vector, v - Vector, p - PIM Joins on route, 
       x - VxLAN group
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*, 224.1.1.1), 00:00:35/stopped, RP 10.4.4.4, flags: SP
  Incoming interface: GigabitEthernet0/1, RPF nbr 10.0.34.4
  Outgoing interface list: Null

(10.0.12.1, 224.1.1.1), 00:00:35/00:02:24, flags: T
  Incoming interface: GigabitEthernet0/0, RPF nbr 10.0.23.2
  Outgoing interface list:
    GigabitEthernet0/1, Forward/Sparse-Dense, 00:00:35/00:02:56

IOSv4

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
IOSv4# show ip mroute 224.1.1.1
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, E - Extranet,
       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, 
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute, 
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed, 
       Q - Received BGP S-A Route, q - Sent BGP S-A Route, 
       V - RD & Vector, v - Vector, p - PIM Joins on route, 
       x - VxLAN group
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*, 224.1.1.1), 00:00:54/stopped, RP 10.4.4.4, flags: S
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    GigabitEthernet0/1, Forward/Sparse-Dense, 00:00:54/00:02:45

(10.0.12.1, 224.1.1.1), 00:00:35/00:02:28, flags: T
  Incoming interface: GigabitEthernet0/0, RPF nbr 10.0.34.3
  Outgoing interface list:
    GigabitEthernet0/1, Forward/Sparse-Dense, 00:00:35/00:02:24

IOSv5

1
2
IOSv5# show ip mroute 224.1.1.1
Group 224.1.1.1 not found

IOSv6

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
IOSv6# show ip mroute 224.1.1.1
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, E - Extranet,
       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, 
       G - Received BGP C-Mroute, g - Sent BGP C-Mroute, 
       N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed, 
       Q - Received BGP S-A Route, q - Sent BGP S-A Route, 
       V - RD & Vector, v - Vector, p - PIM Joins on route, 
       x - VxLAN group
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*, 224.1.1.1), 02:10:52/00:02:17, RP 10.4.4.4, flags: SC
  Incoming interface: GigabitEthernet0/0, RPF nbr 10.0.46.4
  Outgoing interface list:
    GigabitEthernet0/2, Forward/Sparse-Dense, 02:10:52/00:02:17

IOSv7

1
2
IOSv7# show ip mroute 224.1.1.1
Group 224.1.1.1 not found