GE ML1200 Port Mirroring using the Command Line Interface, Show port-mirror, Port-mirror

Models: ML1200

1 344
Download 344 pages 51.98 Kb
Page 148
Image 148

PORT MIRRORING AND SETUP

CHAPTER 9: PORT MIRRORING AND SETUP

9.2Port Mirroring using the Command Line Interface

9.2.1Commands

Monitoring a specific port can be done by port mirroring. Mirroring traffic from one port to another port allows analysis of the traffic on that port.

The show port-mirrorcommand displays the status of port mirroring:

show port-mirror

The port-mirrorcommand enters the port mirror configuration mode.

port-mirror

The setport monitor command configures a port mirror.

setport monitor=<monitor port number> sniffer=<sniffer port number>

The prtmr command enables and disables port mirroring.

prtmr <enabledisable>

The sequence below illustrates how port 1 is mirrored on port 2. Any traffic on port 1 is also sent on port 2.

ML1200# show port-mirror

Sniffer Port: 0

Monitor Port: 0

Mirroring State: disabled

ML1200# port-mirror

ML1200(port-mirror)##setport monitor=1 sniffer=2

Port 1 set as Monitor Port

Port 2 set as Sniffer Port

ML1200(port-mirror)## prtmr enable

Port Mirroring Enabled

ML1200(port-mirror)## exit

ML1200# show port-mirror

Sniffer Port: 2

Monitor Port: 1

Mirroring State: enabled

ML1200#

Once port monitoring is completed, GE strongly recommends that the port mirroring be disabled using the prtmr disable command for security reasons.

1.Only one port can be set to port mirror at a time.

2.Both the ports (monitored port and mirrored port) have to belong to the same

VLAN

3.The mirrored port shows both incoming as well as outgoing traffic

9–2

MULTILINK ML1200 MANAGED FIELD SWITCH – INSTRUCTION MANUAL

Page 148
Image 148
GE ML1200 Port Mirroring using the Command Line Interface, Show port-mirror, Port-mirror, Prtmr enabledisable