How to configure the port image of a Huawei Switch

Source: Internet
Author: User


I. Port Mirroring concept: Port Mirror is used for network performance monitoring. It can be understood as follows: Establish an image relationship between port A and port B. In this way, data transmitted through port A will be copied to port B at the same time, analyzer or analysis software connected to port B for performance analysis or fault determination. 2. Configure "Environment configuration parameters" for Port Mirroring 1. PC1 is connected to port E0/1 of vswitch, IP address 1.1.1.1/242. PC2 is connected to port E0/2 of vswitch, IP address 2.2.2.2/243. e0/24 indicates the uplink port of the vswitch. 4. the Server is connected to port E0/8 of the vswitch. The port is used as the mirror port.
"Networking requirements" 1. Use the switch port image function to monitor the service packets of two PCs using the server. 2. Configure according to different image methods: 1) Port-Based Image 2) stream-Based Image 2 Data configuration steps
The "port Image Data Process" is a port-based image that completely copies incoming and outgoing data packets from the mirror port to the mirror port for traffic observation or fault locating.
[3026 and other switch images] S2008/S2016/S2026/S2403H/S3026 and other switches support port-based images. There are two methods:
Method 1: configure the image (observed) port [SwitchA] monitor-port e0/82. Configure the mirrored port www.2cto.com [SwitchA] port mirror Ethernet 0/1 to Ethernet 0/2
Method 2 1. You can define the image and the port [SwitchA] port mirror Ethernet 0/1 to Ethernet 0/2 observing-port Ethernet 0/8 at a time.
[8016 vswitch port image configuration] 1. Assume that the image port of the 8016 vswitch is E1/0/15, the Image Port is E1/0/0, and Port 1/0/15 is the observation port of the port image. [SwitchA] port monitor ethernet 1/0/152. Set port 1/0/0 to the port to be mirrored, and image the input and output data. [SwitchA] port bonding ing ethernet 1/0/0 both ethernet 1/0/15 can also mirror the input and output data through two different ports. set E1/0/15 and E2/0/0 as image (observation) ports [SwitchA] port monitor ethernet 1/0/152. set Port 1/0/0 as the mirrored port, and use E1/0/15 and E2/0/0 to mirror the input and output data respectively. [SwitchA] port mirroring ing gigabitethernet 1/0/0 ingress ethernet 1/0/15 [SwitchA] port mirroring ing gigabitethernet 1/0/0 egress ethernet 2/0/0 "Stream Image-based data flow "the vswitch mirrors certain streams, each connection has two data streams. For a vswitch, these two data streams must be mirrored separately. [3500/3026 E/3026F/3050] [Images Based on L3 streams] 1. define an extended access control list [SwitchA] acl num 1002. define a rule message source address as 1.1.1.1/32 to all destination addresses [SwitchA-acl-adv-101] rule 0 permit ip source 1.1.1.1 0 destination any3. define a rule message source address as all source addresses destination Address 1.1.1.1/32 [switchA-acl-adv-101] rule 1 permit ip source any destination 1.1.1.1 04. mirror the packets that comply with the preceding ACL rules to E0/8 port [SwitchA] mirrored-to ip-group 100 interface e0/8 [L2 stream-based image] 1. define an ACL [SwitchA] acl num 2002. define a rule to send data packets from E0/1 to all other ports [SwitchA] rule 0 permit ingress interface Ethernet0/1 egress interface Ethernet0/23. define a packet from all other ports to E0/1 [SwitchA] rule 1 permit ingress interface Ethernet0/2 egress interface Ethernet0/14. image the data packet that complies with the preceding ACL to E0/8 www.2cto.com [SwitchA] mirrored-to link-group 200 interface e0/8 [5516/6506/6503/6506 R] Currently, these three products support inbound port Traffic mirroring 1. define the Image port [SwitchA] monitor-port Ethernet 3/0/22. define the port [SwitchA] using ing-port Ethernet 3/0/1 inbound [Additional description] 1. generally, images can implement high-speed port mirroring with low-speed ports. For example, a m port can be mirrored with a m port. Otherwise, Images cannot implement 2. 8016 support cross-board port Image Port image configuration this article is from the Taobao Network Customer Alliance

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.