Page 1
H3C S5590-HI[S5590-EI][S5500V3-HI] Switch Series TAP Configuration Guide New H3C Technologies Co., Ltd. http://www.h3c.com Software version: Release 8307Pxx Document version: 6W101-20241015...
Page 2
The information in this document is subject to change without notice. All contents in this document, including statements, information, and recommendations, are believed to be accurate, but they are presented without warranty of any kind, express or implied. H3C shall not be liable for technical or editorial errors or omissions contained herein.
Preface This configuration guide describes the TAP fundamentals and configuration procedures. This preface includes the following topics about the documentation: • Audience. • Conventions. • Documentation feedback. Audience This documentation is intended for: • Network planners. • Field technical support and servicing engineers. •...
Symbols Convention Description An alert that calls attention to important information that if not understood or followed WARNING! can result in personal injury. An alert that calls attention to important information that if not understood or followed CAUTION: can result in data loss, data corruption, or damage to hardware or software. An alert that calls attention to essential information.
Contents Configuring TAP ···························································································· 1 About TAP ·························································································································································· 1 How TAP works ·········································································································································· 1 TAP deployment mode ······························································································································· 2 Restrictions and guidelines: TAP configuration·································································································· 3 TAP tasks at a glance ········································································································································ 3 Prerequisites for TAP configuration ··················································································································· 4 Enabling TAP globally ········································································································································ 4 Configuring a traffic class ···································································································································...
Configuring TAP About TAP The growing scale of data center networks places more and more stringent requirements on security and performance. Monitoring network traffic and extracting data from the traffic is an important aspect to be addressed. The test access point (TAP) feature can copy and forward traffic in real time without interrupting the traffic.
Figure 1 TAP workflow A packet enters TAP device Matches the criteria? No TAP Editing actions exist? processing Execute editing actions Execute redirecting action Copy the packet Send a copy to each monitoring device TAP deployment mode A TAP device can be deployed in the following modes: •...
Figure 2 Deployment modes IP network IP network Monitoring device Monitoring device Direct mode Indirect mode Restrictions and guidelines: TAP configuration In a TAP policy, you must configure the action of redirecting packets to a monitoring group, and you can configure packet editing actions as needed. If both the redirecting action and a packet editing action are configured, the packet editing action is executed before the redirecting action.
Applying a TAP policy to the inbound direction of an interface Prerequisites for TAP configuration Before configuring the redirecting action, configure a monitoring group (see flow monitoring configuration in Network Management and Monitoring Configuration Guide. Enabling TAP globally About this task Perform this task if the device acts as a pure TAP device between a production network and a monitoring device.
Figure 3 Network diagram Port 4 Port 1 Server A Port 2 Device Port 3 Port 5 Server B Restrictions and guidelines You can implement this feature by performing the following steps: Configure a monitoring group with N member interfaces. Create M TAP policies, and configure an action of redirecting packets to the monitoring group with N member interfaces for each QoS policy.
Configure a CVLAN ID marking action. remark customer-vlan-id vlan-id By default, no CVLAN ID marking action is configured. Configure an SVLAN ID marking action. remark service-vlan-id vlan-id By default, no SVLAN ID marking action is configured. Configure an action of redirecting packets to a monitoring group. redirect monitoring-group group-id By default, no action of redirecting packets to a monitoring group is configured.
Figure 6 Network diagram Port 1 Port 3 Device Server Port 2 Procedure Enter system view. system-view Create a traffic behavior and enter traffic behavior view. traffic behavior behavior-name Configure an outer VLAN tag adding action. nest top-most vlan vlan-id [ dot1p 802.1p ] By default, no outer VLAN tag adding action is configured.
Configure a destination IPv6 address marking action. remark destination-ipv6 ipv6-address By default, no destination IPv6 address marking action is configured. Configure a source IPv6 address marking action. remark source-ipv6 ipv6-address By default, no source IPv6 address marking action is configured. Configure a destination MAC address marking action.
timestamp-over-ether destination-mac mac-address source-mac mac-address ethtype-id ethtype-id By default, no timestamp and Ethernet header adding action is configured. Configure an action of redirecting packets to a monitoring group. redirect monitoring-group group-id By default, no action of redirecting packets to a monitoring group is configured. Configuring a packet truncation action About this task This feature reduces the packet processing pressure on the data monitoring device (the server) or...
Configuring a TAP policy Enter system view. system-view Create a TAP policy and enter TAP policy view. qos tap policy policy-name Associate a traffic class with a traffic behavior in the TAP policy. classifier classifier-name behavior behavior-name By default, no traffic behavior is associated with a traffic class. Applying a TAP policy to the inbound direction of an interface Enter system view.
TAP configuration examples Example: Configuring basic M:N copying Network configuration As shown in Figure 14, Device D is a TAP device. Configure M:N copying on Device D to forward all packets received on GigabitEthernet 1/0/1, GigabitEthernet 1/0/2, and GigabitEthernet 1/0/3 to Server A and Server B through GigabitEthernet 1/0/4 and GigabitEthernet 1/0/5.
[DeviceD] interface gigabitethernet 1/0/1 [DeviceD-GigabitEthernet1/0/1] qos apply tap policy policy_tap inbound [DeviceD-GigabitEthernet1/0/1] quit # Applying the TAP policy to the inbound direction of GigabitEthernet 1/0/2. [DeviceD] interface gigabitethernet 1/0/2 [DeviceD-GigabitEthernet1/0/2] qos apply tap policy policy_tap inbound [DeviceD-GigabitEthernet1/0/2] quit # Applying the TAP policy to the inbound direction of GigabitEthernet 1/0/3. [DeviceD] interface gigabitethernet 1/0/3 [DeviceD-GigabitEthernet1/0/3] qos apply tap policy policy_tap inbound [DeviceD-GigabitEthernet1/0/3] quit...
Page 20
[DeviceB] interface bridge-aggregation 1 [DeviceB-Bridge-Aggregation1] quit # Assign GigabitEthernet 1/0/3, GigabitEthernet 1/0/4, and GigabitEthernet 1/0/5 to the aggregation group. [DeviceB] interface gigabitethernet 1/0/3 [DeviceB-GigabitEthernet1/0/3] port link-aggregation group 1 [DeviceB-GigabitEthernet1/0/3] quit [DeviceB] interface gigabitethernet 1/0/4 [DeviceB-GigabitEthernet1/0/4] port link-aggregation group 1 [DeviceB-GigabitEthernet1/0/4] quit [DeviceB] interface gigabitethernet 1/0/5 [DeviceB-GigabitEthernet1/0/5] port link-aggregation group 1 [DeviceB-GigabitEthernet1/0/5] quit...
[DeviceD-behavior-behavior_tap] redirect monitoring-group 1 [DeviceD-behavior-behavior_tap] quit Configure TAP policies: # Create a TAP policy named policy1, and associate traffic class classifier1 with traffic behavior behavior1 in the TAP policy. [DeviceB] qos tap policy policy1 [DeviceB-qospolicy-policy1] classifier classifier1 behavior behavior1 [DeviceB-qospolicy-policy1] quit # Create a TAP policy named policy2, and associate traffic class classifier2 with traffic behavior behavior1 in the TAP policy.
Page 22
Procedure Enable TAP globally. <DeviceC> system-view [DeviceC] tap enable Create monitoring group 1, and assign GigabitEthernet 1/0/3 to the monitoring group. [DeviceC] monitoring-group 1 [DeviceC-monitoring-group-1] monitoring-port gigabitethernet 1/0/3 [DeviceC-monitoring-group-1] quit Create a traffic class named classifier_tap, and configure the traffic class to match all packets. [DeviceC] traffic classifier classifier_tap [DeviceC-classifier-classifier_tap] if-match any [DeviceC-classifier-classifier_tap] quit...
Example: Configuring outer VLAN tag deleting Network configuration As shown in Figure 17, Device C is a TAP device, and GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 receive double-tagged packets. Configure Device C to meet the following requirements: • Delete the outer VLAN tag of the packets received on GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2.
[DeviceC-GigabitEthernet1/0/1] quit # Apply TAP policy policy_tap to the inbound direction of GigabitEthernet 1/0/2. [DeviceC] interface gigabitethernet 1/0/2 [DeviceC-GigabitEthernet1/0/2] qos apply tap policy policy_tap inbound [DeviceC-GigabitEthernet1/0/2] quit Example: Configuring outer VLAN tag adding Network configuration As shown in Figure 18, Device C is a TAP device, and GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 receive single-tagged packets.
[DeviceC-qospolicy-policy_tap] quit Apply the TAP policy. # Apply TAP policy policy_tap to the inbound direction of GigabitEthernet 1/0/1. [DeviceC] interface gigabitethernet 1/0/1 [DeviceC-GigabitEthernet1/0/1] qos apply tap policy policy_tap inbound [DeviceC-GigabitEthernet1/0/1] quit # Apply TAP policy policy_tap to the inbound direction of GigabitEthernet 1/0/2. [DeviceC] interface gigabitethernet 1/0/2 [DeviceC-GigabitEthernet1/0/2] qos apply tap policy policy_tap inbound [DeviceC-GigabitEthernet1/0/2] quit...
[DeviceB-qospolicy-policy_tap] quit Apply TAP policy policy_tap to the inbound direction of GigabitEthernet 1/0/1. [DeviceB] interface gigabitethernet 1/0/1 [DeviceB-GigabitEthernet1/0/1] qos apply tap policy policy_tap inbound [DeviceB-GigabitEthernet1/0/1] quit Example: Configuring timestamp and Ethernet header adding Network configuration As shown in Figure 20, Device D is a TAP device. Configure timestamp and Ethernet header adding on Device D to meet the following requirements: •...
Page 27
[DeviceD-classifier-classifier_tap] quit Configure traffic behaviors: # Create a traffic behavior named behavior_tap1, and configure an action of add destination MAC address 0050-ba27-bed4, source MAC address 0050-ba27-bed1, and Ethernet protocol number FF, and an action of redirecting packets to monitoring group 1. [DeviceD] traffic behavior behavior_tap1 [DeviceD-behavior-behavior_tap1] timestamp-over-ether destination-mac 0050-ba27-bed4 source-mac 0050-ba27-bed1 ethtype-id ff...
[DeviceD-GigabitEthernet1/0/2] qos apply tap policy policy_tap2 inbound [DeviceD-GigabitEthernet1/0/2] quit # Apply TAP policy policy_tap3 to the inbound direction of GigabitEthernet 1/0/3. [DeviceD] interface gigabitethernet 1/0/3 [DeviceD-GigabitEthernet1/0/3] qos apply tap policy policy_tap2 inbound [DeviceD-GigabitEthernet1/0/3] quit Example: Configuring packet truncation Network configuration As shown in Figure 21, Device B is a TAP device.
Create a TAP policy named policy_tap, and associate the traffic class with the traffic behavior in the TAP policy. [DeviceB] qos tap policy policy_tap [DeviceB-qospolicy-policy_tap] classifier classifier_tap behavior behavior_tap [DeviceB-qospolicy-policy_tap] quit Apply TAP policy policy_tap to the inbound direction of GigabitEthernet 1/0/1. [DeviceB] interface gigabitethernet 1/0/1 [DeviceB-GigabitEthernet1/0/1] qos apply tap policy policy_tap inbound [DeviceB-GigabitEthernet1/0/1] quit...
Page 30
Apply TAP policy policy_tap to the inbound direction of GigabitEthernet 1/0/1. <DeviceB> system-view [DeviceB] interface gigabitethernet 1/0/1 [DeviceB-GigabitEthernet1/0/1] qos apply tap policy policy_tap inbound [DeviceB-GigabitEthernet1/0/1] quit...
Need help?
Do you have a question about the S5590-HI and is the answer not in the manual?
Questions and answers