若要收集應用程式統計資料,必須啟用各網路介面的 NBAR 功能。以下範例說明如何在網路介面上啟用 NBAR 功能。
若要在網路介面上啟用 NBAR:
Router > enable
Router# configure terminal
Router(config)# ip cef
Router(config)# interface FastEthernet 0/1
Router(config-if)# ip nbar protocol-discovery
Router(config-if)# exit