在 Cisco 設備上設定 NBAR

若要收集應用程式統計資料,必須啟用各網路介面的 NBAR 功能。以下範例說明如何在網路介面上啟用 NBAR 功能。

若要在網路介面上啟用 NBAR:

  1. 進入 EXEC 特權模式,然後進入全域組態模式。

    Router > enable

    Router# configure terminal

  2. 啟用 Cisco Express Forwarding (cef)。

    Router(config)# ip cef

  3. 進入網路介面的組態模式,以便啟用 NBAR 功能。

    Router(config)# interface FastEthernet 0/1

  4. 在網路介面上啟動 NBAR 通訊協定搜尋功能。

    Router(config-if)# ip nbar protocol-discovery

  5. 結束網路介面組態模式。

    Router(config-if)# exit

另請參閱

關於 Network Based Application Recognition (NBAR)