セカンダリアドレスで HSRP が可能か試してみました。環境は下記のとおりです。
ルータは、CSR1000V IOS XE Version: 03.09.02.S を使用しました。
結論から言えば、上記の環境では、セカンダリアドレスで HSRP は可能でした。
アドレス不足により、同一のブロードキャストドメインに、複数の異なるサブネットを共存させたい際等に活用できそうです。ただし、運用管理上の観点から、多用は避けた方が良いかもしれません。
Router01 はプライマリアドレスを Active、セカンダリアドレスを Standby として認識。
Router01#show standby brief P indicates configured to preempt. | Interface Grp Pri P State Active Standby Virtual IP Gi1 1 110 P Active local 192.168.1.66 192.168.1.60 Gi1 2 90 P Standby 192.168.2.66 local 192.168.2.60
Router02 はプライマリアドレスを Standby、セカンダリアドレスを Active として認識。
Router02#show standby brief P indicates configured to preempt. | Interface Grp Pri P State Active Standby Virtual IP Gi1 1 90 P Standby 192.168.1.65 local 192.168.1.60 Gi1 2 110 P Active local 192.168.2.65 192.168.2.
Router01 設定例
Router01#show running-config interface gigabitEthernet 1 interface GigabitEthernet1 ip address 192.168.2.65 255.255.255.0 secondary ip address 192.168.1.65 255.255.255.0 standby 1 ip 192.168.1.60 standby 1 priority 110 standby 1 preempt standby 2 ip 192.168.2.60 standby 2 priority 90 standby 2 preempt
Router02 設定例
Router02#show running-config interface gigabitEthernet 1 interface GigabitEthernet1 ip address 192.168.2.66 255.255.255.0 secondary ip address 192.168.1.66 255.255.255.0 standby 1 ip 192.168.1.60 standby 1 priority 90 standby 1 preempt standby 2 ip 192.168.2.60 standby 2 priority 110 standby 2 preempt