• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 全部
  • 全部
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
高级搜索

The problem that a Layer 3 routing port on a site switch can only mirror packets in one direction

2020-03-21 Published
  • 0关注
  • 0收藏,158浏览
周天 四段
粉丝:0人 关注:0人

Network Topology

The customer topology is as follows. The customer wants to send bidirectional traffic from certain ports on the S6800 device to the server through mirroring. 



Problem Description

However, after the configuration is complete, the server can only receive inbound packets in one direction and cannot receive outbound packets.  

By analyzing the configuration to see that there is no problem with the configuration on the device, the configuration on the field device is reproduced in the laboratory, and the problem on site occurs. Connect the pc directly to the outbound interface of the S6800 device, and can capture bidirectional packets on the pc. But the captured outbound packets are tagged with vlan tag 4095:


 

After the S5560 switch is transparently transmitted, capturing packets on the PC can only capture unidirectional packets in the inbound direction:

 



Process analysis

By analyzing the configuration on the S6800 and S5560 switches, the on-site customer first mirrors the bidirectional traffic on the port of the S6800 device to the port of the S5560 device, and then transmits the mirrored data to the server by broadcasting on the mirrored VLAN on the S5560 switch. 

Looking at the configuration on the two devices, the source port on the S6800 switch is a routing port and the destination port is an aggregation port. The default configuration under the aggregation port is as follows:

#

mirroring-group 1 local

#

interface Ten-GigabitEthernet1/0/48

port link-mode route

description ISP_TEL_S12510_T0/0/24_14.29.121.229_Up-Link

flow-interval 5

ip address 14.29.121.230 255.255.255.252

sflow flow collector 1

sflow sampling-rate 16000

sflow counter collector 1

sflow counter interval 60

packet-filter 3457 inbound

mirroring-group 1 mirroring-port both

#             

interface Bridge-Aggregation1

description to ADS-mirror

mirroring-group 1 monitor-port

#


On the S5560, the interface connected to the S6800 is a Layer 2 interface. The port access the vlan3001, and the MAC learning function is disabled.

#

interface Ten-GigabitEthernet1/0/49     ----------- Interface connected to S6800

port link-mode bridge

port access vlan 3001

flow-interval 5

undo mac-address mac-learning enable

#

interface Ten-GigabitEthernet1/0/50   ----------- Interface connected to the server

port link-mode bridge

port access vlan 3001

stp edged-port

#

Through analysis and confirmation, after the Layer 3 routing port is enabled on the port of the switch, the underlying implementation is still implemented through the Layer 3 virtual interface (vlan 4095). When the packet is sent from the Layer 3 port, the outer 4095 label is stripped However, in the implementation of mirroring: the action of de-labeling the packets in the outbound direction of the routing port and access port is after the mirroring action, so the packets in the out direction are mirrored with the VLAN tag (4095), and the packets are mirrored to 5560 When the interface is connected, because the interface access vlan 3001, the VLAN check fails and is thrown away.


Solution

According to the above analysis, it can be seen that the outbound packet cannot be sent to the server because the packet mirrored by the Layer 3 routing port has tag4095, which causes the VLAN check on the S5560 device interface to fail and is discarded. Therefore, what needs to be resolved is to check the packets passing the outgoing direction on the S5560 interface. This can be achieved in two ways:

(1)    Remote port mirroring on S6800

On the S6800, mirrored packets can be sent to the vlan, transparently transmitted in vlan3001, 3001 transparently transmitted on 5560, mac learning on 3001 disabled, and server interface access 3001. The implementation of this method is equivalent to tagging the packet with the outer layer 3001 on the S6800 device. When the packet enters the S5560 device interface, the outer label is already 3001, and the port can pass the packet through. Remove the outer layer 3001 label on the port connected to the server.

Two-way packets can be captured, but due to the problem of the layer 3 interface and the implementation of mirroring, the out-direction packets in the two-way packets are labeled 4095, which cannot be removed. This problem does not exist on the layer 2 port. The configuration on the 6800 is as follows. The configuration on the S5560 is unchanged.

#

mirroring-group 1 remote-source

mirroring-group 1 remote-probe vlan 3001

#

interface Ten-GigabitEthernet3/0/16

port link-mode bridge

mirroring-group 1 reflector-port

#




(2)    Implemented by the QINQ function on the S5560 switch

This method does not modify the configuration on the S6800 switch, and only enables the qinq function on the port of the S5560 switch. When a packet enters the port of the S5560 switch, qinq will first mark the outer tag 3001. Packets tagged with 3001 will be released by the port, and the outer 3001 tag will be removed from the port connected to the server. The port configuration on the S5560 switch is as follows. The configuration on the S6800 switch is not modified.

#

interface Ten-GigabitEthernet1/0/49     ----------- Interface connected to S6800

port link-mode bridge

port access vlan 3001

flow-interval 5

qinq enable

undo mac-address mac-learning enable

#



Analysis summary

The implementation of the Layer 3 routing interface on the switch is also implemented through the VLAN virtual interface (4095) at the bottom. Mirroring is implemented on the Layer 3 interface before the label is stripped, which causes this problem. Since the logical order of mirroring cannot be changed, it can be avoided by other methods.



0 comments

No comments

Add Comments:

举报

×

侵犯我的权益 >
对根叔知了社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔知了社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明

提出建议

    +
<

亲~登录后才可以操作哦!

确定

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作