2 port mirroring using the command line interface, 1 commands, Port mirroring using the command line interface -2 – GE MULTILINK ML2400 User Manual

Page 148: Ommands

Advertising
background image

9–2

MULTILINK ML2400 ETHERNET COMMUNICATIONS SWITCH – INSTRUCTION MANUAL

PORT MIRRORING AND SETUP

CHAPTER 9: PORT MIRRORING AND SETUP

9.2

Port Mirroring using the Command Line Interface

9.2.1

Commands

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-mirror

command displays the status of port mirroring:

show port-mirror

The

port-mirror

command 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 <enable|disable>

The sequence below illustrates how port 11 is mirrored on port 13. Any traffic on port 11 is
also sent on port 13.

ML2400#

show port-mirror

Sniffer Port: 0

Monitor Port: 0

Mirroring State: disabled

ML2400#

port-mirror

ML2400(port-mirror)##

setport monitor=11 sniffer=13

Port 11 set as Monitor Port

Port 13 set as Sniffer Port

ML2400(port-mirror)##

prtmr enable

Port Mirroring Enabled

ML2400(port-mirror)##

exit

ML2400#

show port-mirror

Sniffer Port: 13

Monitor Port: 11

Mirroring State: enabled

ML2400#

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 bout incoming as well as outgoing traffic

Advertising