EasyManua.ls Logo

Huawei V100R006C00 - Example for Configuring MAC Address-Based Local Mirroring

Huawei V100R006C00
142 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
# Set VLAN 10 as a mirrored VLAN.
[Switch] VLAN 10
[Switch-VLAN10] mirroring to observe-port 1 inbound
[Switch-VLAN10] quit
4. Verify the configuration.
# Run the display port-mirroring command. You can view the configuration of the
observing port.
[Switch] display port-mirroring
Observe index 1 is set to interface GigabitEthernet0/0/3
Observe Type: Local
Observe index 2 is not set to any interface
Observe index 3 is not set to any interface
Observe index 4 is not set to any interface
Configuration Files
Configuration file of the Switch
#
sysname Switch
#
vlan batch 10
#
observe-port 1 interface GigabitEthernet0/0/3
#
vlan 10
mirroring to observe-port 1 inbound
#
interface GigabitEthernet0/0/1
port link-type access
port default vlan 10
#
interface GigabitEthernet0/0/2
port link-type access
port default vlan 10
#
#
return
7.17.3 Example for Configuring MAC Address-based Local
Mirroring
Networking Requirements
As shown in Figure 7-6, GigabitEthernet 0/0/1 is connected to PC1; GigabitEthernet 0/0/2 is
connected to PC2; GigabitEthernet 0/0/4 is connected to a router. GigabitEthernet 0/0/1,
GigabitEthernet 0/0/2, and GigabitEthernet 0/0/4 belong to VLAN 10. Now, incoming traffic
with the source or destination MAC as the MAC address of GigabitEthernet 1/0/1 on the router
in VLAN 10 needs to be monitored. In this case, you can configure local MAC address mirroring
on the Switch.
GigabitEthernet 0/0/3 serves as an observing port. The MAC address of GigabitEthernet 1/0/1
is 0001-0001-0001.
Quidway S5700 Series Ethernet Switches
Configuration Guide - Device Management 7 Mirroring
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
100

Table of Contents

Related product manuals