Chapter 4 Configuring Interfaces

Configuring Snooping

 

Command

Purpose

Step 1

 

 

Router(config)# interface destination-port

Defines the interface configuration for the

 

Router(config-if)#

destination (test) port.

 

 

Step 2

 

 

Router(config-if)# shutdown

Shuts down the destination port.

Step 3

 

 

Router(config-if)# snoop interface source-port

Defines a snoop source port and its snoop

 

direction {receive transmit both}

direction. You must issue separate snoop

 

 

interface commands for each source port.

Step 4

 

 

Router(config-if)# no shutdown

Reenables the interface. When you bring the

 

 

destination port back up, snooping mode is fully

 

 

functional.

Step 5

 

 

Router(config-if)# end

Returns to privileged EXEC mode.

 

Router#

 

Step 6

 

 

Router# copy system:running-config

Saves your configuration changes to NVRAM.

 

nvram:startup-config

 

 

 

 

For a complete configuration example that includes port snooping, see the “Catalyst 8540 CSR with ISL, VLAN, and BVI with GEC” section on page C-1.

To disable port-based snooping on an interface, perform the following steps:

 

Command

Purpose

Step 1

 

 

Router(config)# interface fastethernet

Enters interface configuration mode for the

 

slot/subslot/interface

previously configured destination port.

 

or

 

 

Router(config)# interface gigabitethernet

 

 

slot/subslot/interface

 

 

Router(config-if)#

 

Step 2

 

 

Router(config-if)# shutdown

Shuts down the destination port.

Step 3

 

 

Router(config-if)# no snoop interface

Disables port snooping by the destination port

 

source-port

defined in Step 1 on the indicated source port.

Step 4

 

 

Router(config-if)# no shutdown

Reenables the interface. When you bring the

 

 

destination port back up, snooping mode is

 

 

disabled and any existing configuration and

 

 

connections are reestablished.

Step 5

 

 

Router(config-if)# end

Returns to privileged EXEC mode.

 

Router#

 

Step 6

 

 

Router# copy system:running-config

Saves your configuration changes to NVRAM.

 

nvram:startup-config

 

 

 

 

 

 

 

Note

For additional information on port snooping commands, refer to the “Port Snooping

 

 

 

 

Commands” section on page A-1.

 

 

 

 

 

 

 

 

 

Layer 3 Switching Software Feature and Configuration Guide

 

 

 

 

4-40

 

 

78-6235-04, Cisco IOS Release 12.0(10)W5(18)

 

 

 

 

 

Page 40
Image 40
Cisco Systems 8540 CSR, 8510 CSR appendix Direction receive transmit both, Source-port