Service VPNのVRRPとtracking2 / 4
Feature templateの例
Configuration > Templatesで対象IOS XE modelのVPN Interface Ethernet feature templateを作る。service VPN10のinterfaceへaddress、VRRP group、priorityとvirtual IPを構成し、device templateのVPN10に関連付ける。device変数で二台の実IPを分け、previewして配備する。
| 設定 | Edge A | Edge B |
|---|---|---|
| VPN/interface subnet | 10 / 10.10.10.0/24 | 10 / 10.10.10.0/24 |
| 実IP | 10.10.10.2 | 10.10.10.3 |
| VRRP group / virtual IP | 10 / 10.10.10.1 | 10 / 10.10.10.1 |
| priority | 120 | 100 |
| 追跡失敗時のdecrement | 30 | 必要な条件に合わせる |
address ownerでない二台の例では、正常時は高いpriorityのAがprimaryとなる。Aで追跡が失敗すると120−30=90となり、Bの100より低くなる。復旧時にAへ戻す条件はpreemptionとdelay等の設定にも関わる。同じvirtual IPをhostのgatewayに指定する。