【済】HSRP Aware PIM


基本設定

vIOS3#sh ip pim int

Address          Interface                Ver/   Nbr    Query  DR         DR
                                          Mode   Count  Intvl  Prior
13.13.13.3       GigabitEthernet0/0       v2/S   1      30     1          13.13.13.3
23.23.23.3       GigabitEthernet0/1       v2/S   1      30     1          23.23.23.3
10.0.0.3         GigabitEthernet0/2       v2/S   1      30     1          10.0.0.3

vIOS3#sh ip mroute
(*, 239.0.0.1), 01:07:49/00:02:20, RP 1.1.1.1, flags: SJC
Incoming interface: GigabitEthernet0/0, RPF nbr 13.13.13.1
Outgoing interface list:
GigabitEthernet0/2, Forward/Sparse, 01:07:49/00:02:20

vIOS2#sh ip mroute
(*, 239.0.0.1), 01:22:48/00:02:23, RP 1.1.1.1, flags: SP
  Incoming interface: GigabitEthernet0/0, RPF nbr 12.12.12.1
  Outgoing interface list: Null

vIOS2#show standby
GigabitEthernet0/2 - Group 1
  State is Active
    2 state changes, last state change 01:27:42
  Virtual IP address is 10.0.0.23
  Active virtual MAC address is 0000.0c07.ac01
    Local virtual MAC address is 0000.0c07.ac01 (v1 default)
  Hello time 3 sec, hold time 10 sec
    Next hello sent in 1.296 secs
  Preemption enabled
  Active router is local
  Standby router is 10.0.0.3, priority 100 (expires in 8.112 sec)
  Priority 120 (configured 120)
  Group name is "HSRP1" (cfgd)

・vIOS3がPIM-DRであるため、vIOS2の(*, 239.0.0.1)エントリのOutgoingがNullになっている
・そのため以下のようにvIOS3のGi0/2をシャットダウンさせると、vIOS6からのjoinが転送されなくなり、マルチキャストが通信できなくなる
・ちなみにHSRPでのアクティブルータはvIOS2、それなのにPIM DRでないとマルチキャストを転送してくれない

vIOS3#
vIOS3#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
vIOS3(config)#int gi0/2
vIOS3(config-if)#sh
vIOS3(config-if)#
*May 29 13:22:56.874: %PIM-5-NBRCHG: neighbor 10.0.0.2 DOWN on interface GigabitEthernet0/2 non DR
*May 29 13:22:56.953: %HSRP-5-STATECHANGE: GigabitEthernet0/2 Grp 1 state Standby -> Init
*May 29 13:22:56.976: %OSPF-5-ADJCHG: Process 1, Nbr 23.23.23.2 on GigabitEthernet0/2 from FULL to DOWN, Neighbor Down: Interface down or detached
*May 29 13:22:58.910: %LINK-5-CHANGED: Interface GigabitEthernet0/2, changed state to administratively down
*May 29 13:22:59.916: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/2, changed state to down
vIOS3(config-if)#


vIOS5#ping 239.0.0.1
Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 239.0.0.1, timeout is 2 seconds:
.
vIOS5#

ip pim redundancy [HSRP name] hsrp dr-priority 100を設定

vIOS2(config-if)#ip pim redundancy HSRP1 hsrp dr-priority 100
vIOS2(config-if)#
*May 29 13:42:56.500: %PIM-5-DRCHG: DR change from neighbor 10.0.0.3 to 10.0.0.2 on interface GigabitEthernet0/2

vIOS2#sh ip pim int

Address          Interface                Ver/   Nbr    Query  DR         DR
                                          Mode   Count  Intvl  Prior
12.12.12.2       GigabitEthernet0/0       v2/S   1      30     1          12.12.12.2
23.23.23.2       GigabitEthernet0/1       v2/S   1      30     1          23.23.23.3
10.0.0.2         GigabitEthernet0/2       v2/S   1      30     100        10.0.0.2

vIOS3#sh ip pim int

Address          Interface                Ver/   Nbr    Query  DR         DR
                                          Mode   Count  Intvl  Prior
13.13.13.3       GigabitEthernet0/0       v2/S   1      30     1          13.13.13.3
23.23.23.3       GigabitEthernet0/1       v2/S   1      30     1          23.23.23.3
10.0.0.3         GigabitEthernet0/2       v2/S   2      30     1          10.0.0.2

vIOS2#sh ip mroute
(*, 239.0.0.1), 01:36:08/00:01:56, RP 1.1.1.1, flags: SJC
  Incoming interface: GigabitEthernet0/0, RPF nbr 12.12.12.1
  Outgoing interface list:
    GigabitEthernet0/2, Forward/Sparse, 00:06:36/00:01:56

vIOS2がDRになり、OutgoingにGi0/2が入った。

疑問

・vIOS2とvIOS3どっちもDRになっている。私の認識だとHSRPのアクティブルータに連動してDRになると思っていたけどどうやら違うっぽい。今日はもう寝るので明日以降ちゃんと調べます。
・ちなみにhsrp aware pim設定してからvIOS3のGi0/2落としてもちゃんとマルチキャストの疎通性ありました。めでたしめでたし

この記事が気に入ったらサポートをしてみませんか?