/
Example for Configuring Local Port Mirroring
Example for Configuring Local Port Mirroring
Networking Requirements
Figure 1. Local Port Mirroring Configuration Example
As shown in Figure 1, Host A, Host B and Host C access the Internet through Switch B. The Data Monitoring Server needs to monitor the traffic from the three hosts accessing the internet.
Follow the following configuration procedure on Switch B to complete port mirroring configurations to achieve above requirement.
- Configure interface ge-1/1/2 as the output port for mirroring, which is responsible for forwarding mirrored messages to the Data Monitoring Server.
- Configure interface ge-1/1/1 as the input port for mirroring to make a copy of the traffic from Host A, Host B and Host C accessing the Internet to the mirroring output port.
Procedure
Step 1 Configure VLAN.
admin@SwitchB# set vlans vlan-id 110 admin@SwitchB# set interface gigabit-ethernet ge-1/1/1 family ethernet-switching native-vlan-id 110 admin@SwitchB# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching native-vlan-id 110
Step 2 Configure the input port for mirroring.
admin@SwitchB# set interface ethernet-switching-options analyzer 111 input ingress ge-1/1/1 admin@SwitchB# set interface ethernet-switching-options analyzer 111 input egress ge-1/1/1
Step 3 Configure the output port for mirroring.
admin@SwitchB# set interface ethernet-switching-options analyzer 111 output ge-1/1/2
Step 4 Commit the configurations.
admin@SwitchB# commit
Step 5 Verify the configuration.
admin@SwitchB# run show analyzer 111 Analyzer name: 111 Output interface: <ge-1/1/2> Ingress monitored interfaces: <ge-1/1/1> Egress monitored interfaces: <ge-1/1/1>
, multiple selections available,
Related content
Example for Configuring Local Port Mirroring
Example for Configuring Local Port Mirroring
More like this
Example for Configuring Local Port Mirroring
Example for Configuring Local Port Mirroring
More like this
Example for Configuring Local Port Mirroring
Example for Configuring Local Port Mirroring
More like this
Example for Configuring Local Port Mirroring
Example for Configuring Local Port Mirroring
More like this
Example for Configuring Local Port Mirroring
Example for Configuring Local Port Mirroring
More like this
Example for Configuring Local Port Mirroring
Example for Configuring Local Port Mirroring
More like this
Copyright © 2025 Pica8 Inc. All Rights Reserved.