組み込みイベントマネージャ(EEM)を使用して、さらに多くのアプレットを定義し、プライマリおよびバックアップGREトンネルのきめ細かなフェイルオーバーを設定できます。
主要トンネルの状態が悪化しています
(confg)#event manager applet IPSLA_PRIMARY_UP (config-applet)#event track 3 state down (config-applet)#action 1 wait 3 (config-applet)#action 2 cli command “enable” (config-applet)#action 3 cli command “config t” (config-applet)#action 4 cli command "route-map netskope-tunnel" (config-applet)#action 5 cli command "no set interface Tunnel3 Tunnel4" (config-applet)#action 6 cli command "set interface Tunnel4"
主要トンネルの状態は良好です
(confg)#event manager applet IPSLA_PRIMARY_DOWN (config-applet)#event track 3 state up (config-applet)#action 1 wait 3 (config-applet)#action 2 cli command “enable” (config-applet)#action 3 cli command “config t” (config-applet)#action 4 cli command "route-map netskope-tunnel" (config-applet)#action 6 cli command "set interface Tunnel3 Tunnel4"
バックアップトンネルの状態はダウンしています
(confg)#event manager applet IPSLA_FAILOVER_DOWN (config-applet)#event track 4 state down (config-applet)#action 1 wait 3 (config-applet)#action 2 cli command “enable” (config-applet)#action 3 cli command “config t” (config-applet)#action 4 cli command "route-map netskope-tunnel" (config-applet)#action 5 cli command "no set interface Tunnel3 Tunnel4" (config-applet)#action 6 cli command "set interface Tunnel3"
バックアップトンネルの状態はアップです
(confg)#event manager applet IPSLA_FAILOVER_UP (config-applet)#event track 4 state up (config-applet)#action 1 wait 3 (config-applet)#action 2 cli command “enable” (config-applet)#action 3 cli command “config t” (config-applet)#action 4 cli command "route-map netskope-tunnel" (config-applet)#action 5 cli command "no set interface Tunnel3” (config-applet)#action 6 cli command "set interface Tunnel3 Tunnel4"
両トンネルともダウン(フェイルオープン)
このアプレットを使用すると、すべてのウェブトラフィックをデフォルトゲートウェイから、または他の経路経由でルーティングできます。
(confg)#event manager applet BOTH_TUNNELS_DOWN (config-applet)#event tag 1 track 3 state down (config-applet)#event tag 2 track 4 state down (config-applet)#trigger occurs 1 (config-applet)#correlate event 1 and event 2 (config-applet)#action 1 wait 3 (config-applet)#action 2 cli command “enable” (config-applet)#action 3 cli command “config t” (config-applet)#action 4 cli command "interface GigabitEthernet2" (config-applet)#action 5 cli command "no ip policy route-map netskope-tunnel"
両方のトンネルが上昇
(confg)#event manager applet BOTH_TUNNELS_UP (config-applet)#event tag 1 track 3 state up (config-applet)#event tag 2 track 4 state up (config-applet)#trigger occurs 1 (config-applet)#correlate event 1 and event 2 (config-applet)#action 1 wait 3 (config-applet)#action 2 cli command “enable” (config-applet)#action 3 cli command “config t” (config-applet)#action 4 cli command "interface GigabitEthernet2" (config-applet)#action 5 cli command "ip policy route-map netskope-tunnel"

