問題
LAB-RTR-01のLoopback0(10.0.0.1/32)が管理操作でshutdownされた場合に、自動的に再び有効にするEEMアプレットを構成する。必要な事前設定は適用済みである。hostnameとenableパスワードを変えず、構成をNVRAMへ保存する。要件を満たす設定はどれか。

- A
enable configure terminal event manager applet RESTORE_LOOPBACK0 event syslog pattern "Interface Loopback0, changed state to administratively down" action 1.0 cli command "enable" action 2.0 cli command "configure terminal" action 3.0 cli command "interface Loopback0" action 4.0 cli command "no shutdown" action 5.0 cli command "end" exit end copy running-config startup-config - B
enable configure terminal event manager applet RESTORE_LOOPBACK0 event syslog pattern "Interface Loopback0, changed state to up" action 1.0 cli command "enable" action 2.0 cli command "configure terminal" action 3.0 cli command "interface Loopback0" action 4.0 cli command "no shutdown" action 5.0 cli command "end" exit end copy running-config startup-config - C
enable configure terminal event manager applet RESTORE_LOOPBACK0 event syslog pattern "Interface Loopback0, changed state to administratively down" action 1.0 cli command "enable" action 2.0 cli command "configure terminal" action 3.0 cli command "interface Loopback1" action 4.0 cli command "no shutdown" action 5.0 cli command "end" exit end copy running-config startup-config - D
enable configure terminal event manager applet RESTORE_LOOPBACK0 event syslog pattern "Interface Loopback0, changed state to administratively down" action 1.0 cli command "enable" action 2.0 cli command "configure terminal" action 3.0 cli command "interface Loopback0" action 4.0 cli command "shutdown" action 5.0 cli command "end" exit end copy running-config startup-config
正解:A
理由
Loopback0がadministratively downへ変化したsyslogを検出し、特権EXEC、グローバル設定、Loopback0の設定へ順に移ってno shutdownを実行する。アプレットの設定後に実行中の構成をstartup-configへ保存する。
選択肢ごとの説明
- A.
enable configure terminal event manager applet RESTORE_LOOPBACK0 event syslog pattern "Interface Loopback0, changed state to administratively down" action 1.0 cli command "enable" action 2.0 cli command "configure terminal" action 3.0 cli command "interface Loopback0" action 4.0 cli command "no shutdown" action 5.0 cli command "end" exit end copy running-config startup-config 対象インターフェースの管理停止を検出し、同じLoopback0へno shutdownを適用する。hostnameとenableパスワードを変えず、アプレットも保存する。
- B.
enable configure terminal event manager applet RESTORE_LOOPBACK0 event syslog pattern "Interface Loopback0, changed state to up" action 1.0 cli command "enable" action 2.0 cli command "configure terminal" action 3.0 cli command "interface Loopback0" action 4.0 cli command "no shutdown" action 5.0 cli command "end" exit end copy running-config startup-config イベントはupへの変化を待つため、管理停止をきっかけに復旧する要件を満たさない。
- C.
enable configure terminal event manager applet RESTORE_LOOPBACK0 event syslog pattern "Interface Loopback0, changed state to administratively down" action 1.0 cli command "enable" action 2.0 cli command "configure terminal" action 3.0 cli command "interface Loopback1" action 4.0 cli command "no shutdown" action 5.0 cli command "end" exit end copy running-config startup-config 検出対象はLoopback0だが、操作するのはLoopback1である。管理停止したLoopback0を有効にできない。
- D.
enable configure terminal event manager applet RESTORE_LOOPBACK0 event syslog pattern "Interface Loopback0, changed state to administratively down" action 1.0 cli command "enable" action 2.0 cli command "configure terminal" action 3.0 cli command "interface Loopback0" action 4.0 cli command "shutdown" action 5.0 cli command "end" exit end copy running-config startup-config 管理停止を検出してもshutdownを再適用する。復旧に必要なno shutdownではない。