Figure 86: Network Topology for Local Port Mirroring Example
Mirroring All Employee Traffic for Local Analysis
To configure port mirroring for all employee traffic for local analysis, perform these tasks:
CLI Quick
Configuration
To quickly configure local port mirroring for ingress traffic to the two ports connected to
employee computers, copy the following commands and paste them into the switch
terminal window:
[edit]
set interfaces ge-0/0/0 unit 0 family ethernet-switching
set interfaces ge-0/0/1 unit 0 family inet 192.1.1.1/24
set interfaces ge-0/0/10 unit 0 family ethernet-switching
set ethernet-switching options analyzer employee–monitor input ingress interface ge-0/0/0.0
set ethernet-switching options analyzer employee–monitor input ingress interface ge-0/0/1.0
set ethernet-switching options analyzer employee–monitor output interface ge-0/0/10.0
Step-by-Step
Procedure
To configure an analyzer called
employee-monitor
and specify the input (source)
interfaces and the analyzer output interface:
1.
Configure each interface connected to employee computers as an input interface
for the port-mirror analyzer that we are calling
employee-monitor
:
[edit ethernet-switching-options]
user@switch#
set
analyzer
employee-monitor input ingress interface ge–0/0/0.0
user@switch#
set analyzer employee-monitor input ingress interface ge–0/0/1.0
2.
Configure the output analyzer interface for the
employee-monitor
analyzer. This
will be the destination interface for the mirrored packets:
[edit ethernet-switching-options]
user@switch#
set analyzer employee-monitor
output
interface ge-0/0/10.0
Results
Check the results of the configuration:
[edit]
user@switch# show
ethernet-switching-options {
analyzer employee-monitor {
3545
Copyright © 2010, Juniper Networks, Inc.
Chapter 127: Port Mirroring
Summary of Contents for JUNOS OS 10.3 - SOFTWARE
Page 325: ...CHAPTER 17 Operational Mode Commands for System Setup 229 Copyright 2010 Juniper Networks Inc ...
Page 1323: ...CHAPTER 56 Operational Mode Commands for Interfaces 1227 Copyright 2010 Juniper Networks Inc ...
Page 2841: ...CHAPTER 86 Operational Commands for 802 1X 2745 Copyright 2010 Juniper Networks Inc ...
Page 3367: ...CHAPTER 113 Operational Mode Commands for CoS 3271 Copyright 2010 Juniper Networks Inc ...
Page 3435: ...CHAPTER 120 Operational Mode Commands for PoE 3339 Copyright 2010 Juniper Networks Inc ...
Page 3529: ...CHAPTER 126 Operational Mode Commands for MPLS 3433 Copyright 2010 Juniper Networks Inc ...