Monitoring and Analyzing Switch Operation

Port Monitoring Features

Port receiving monitored traffic.

Monitored Ports

Figure 10-19.Example of Monitored Port Listing

Configuring the Monitor Port. This command assigns or removes a mon- itoring port, and must be executed from the global configuration level. Remov- ing the monitor port disables port monitoring and resets the monitoring parameters to their factory-default settings.

Syntax: [no] mirror-port [<port-num>]

For example, to assign port 12 as the monitoring port:

HP2512(config)# mirror-port 12

To turn off port monitoring:

HP2512(config)# no mirror-port

Selecting or Removing Ports or VLANs As Monitoring Sources. After you configure a monitor port you can use either the global configuration level or the interface context level to select ports or VLANs as monitoring sources. You can also use either level to remove monitoring sources.

Syntax: [no] monitor [vlan <vlan-id> interface ethernet <port-list>]

For example, with a monitoring (mirror) port configured (above), you could select ports 1 and 2 for monitoring:

From the global config level, selects ports or VLAN as monitoring sources.

From the interface or VLAN context level, selects the ports or VLAN as monitoring sources.

Figure 10-20.Examples of Selecting Ports and VLANs as Monitoring Sources

Switch Operation

Monitoring and Analyzing

 

 

10-25

Page 331
Image 331
HP 2500 For example, to assign port 12 as the monitoring port, HP2512config# mirror-port, To turn off port monitoring