Configuring NBAR on a Cisco device

You must enable NBAR for each interface from which you want to collect application statistics. The following example describes how to enable NBAR on an interface.

To enable NBAR on an interface:

  1. Enter the privileged EXEC mode, then the global configuration mode.

    Router> enable

    Router# configure terminal

  2. Enable Cisco Express Forwarding (cef).

    Router(config)# ip cef

  3. Enter the interface configuration mode for the interface on which you want to enable NBAR.

    Router(config)# interface FastEthernet 0/1

  4. Initiate NBAR protocol discovery on the interface.

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

  5. Exit the interface configuration mode.

    Router(config-if)# exit