l3-counters

Syntax

l3-counters [rx | tx]

no l3-counters [rx | tx]

Description

Enables counters on a layer 3 interface. By default, all interfaces are layer 3. To change a layer 2 interface to layer 3, use the routing command.

The no form of this command, with no specification, disables both transmit and receive counters on a layer 3 interface. To disable transmit (tx) or receive (rx) counters only, specify the counter type you want to disable.

Command context

config-if

Parameters

rx

Specifies receive counters.

tx

Specifies transmit counters.

Authority

Administrators

Examples

Enabling layer 3 transmit counters on interface 1/1/1:

switch(config)# interface 1/1/1
switch(config-if)# routing
switch(config-if)# l3-counters tx

Enabling layer 3 transmit and receive counters on interface 1/1/2:

switch(config)# interface 1/1/2
switch(config-if)# routing
switch(config-if)# l3-counters 

Disabling layer 3 transmit and receive counters on interface 1/1/2:

switch(config)# interface 1/1/2
switch(config-if)# routing
switch(config-if)# no l3-counters