{"id":2860,"date":"2025-07-09T11:42:06","date_gmt":"2025-07-09T03:42:06","guid":{"rendered":"https:\/\/dengbaoceping.org\/?p=2860"},"modified":"2025-07-09T11:42:08","modified_gmt":"2025-07-09T03:42:08","slug":"%e6%b5%81%e9%87%8f%e9%87%87%e9%9b%86%e5%b8%b8%e8%a7%81%e4%ba%a4%e6%8d%a2%e6%9c%ba%e7%ab%af%e5%8f%a3%e9%95%9c%e5%83%8f%e9%85%8d%e7%bd%ae%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/dengbaoceping.org\/index.php\/%e6%b5%81%e9%87%8f%e9%87%87%e9%9b%86%e5%b8%b8%e8%a7%81%e4%ba%a4%e6%8d%a2%e6%9c%ba%e7%ab%af%e5%8f%a3%e9%95%9c%e5%83%8f%e9%85%8d%e7%bd%ae%e6%8c%87%e5%8d%97\/","title":{"rendered":"\u6d41\u91cf\u91c7\u96c6:\u5e38\u89c1\u4ea4\u6362\u673a\u7aef\u53e3\u955c\u50cf\u914d\u7f6e\u6307\u5357"},"content":{"rendered":"\n<p>\u7f51\u7edc\u5168\u6d41\u91cf\u91c7\u96c6\u4e0e\u5206\u6790\u5728\u7f51\u7edc\u9886\u57df\u5177\u6709\u591a\u65b9\u9762\u7684\u91cd\u8981\u4ef7\u503c\uff0c\u5176\u5e94\u7528\u5728\u7f51\u7edc\u6027\u80fd\u4f18\u5316\u3001\u6545\u969c\u6392\u9664\u4e0e\u8bca\u65ad\u3001\u7f51\u7edc\u884c\u4e3a\u5206\u6790\u3001\u7f51\u7edc\u5b89\u5168\u5206\u6790\u7b49\u9886\u57df\u7684\u4ef7\u503c\u5df2\u7ecf\u5f97\u5230\u4e86\u7f51\u7edc\u7ba1\u7406\u4eba\u5458\u7684\u666e\u904d\u8ba4\u53ef\u3002<\/p>\n\n\n\n<p>\u4f46\u662f\u5728\u672c\u5730\u7535\u8111\u4e0a\u901a\u5e38\u65e0\u6cd5\u76f4\u63a5\u6293\u53d6\u5230\u5176\u4ed6\u4e3b\u673a\u4e4b\u95f4\u901a\u4fe1\u7684\u6d41\u91cf\uff0c\u4e3b\u8981\u539f\u56e0\u4e0e\u7f51\u7edc\u7684\u786c\u4ef6\u8bbe\u5907\u5de5\u4f5c\u539f\u7406\u548c\u7f51\u5361\u7684\u5de5\u4f5c\u6a21\u5f0f\u5bc6\u5207\u76f8\u5173\uff0c\u5305\u62ec\u7f51\u5361\u5de5\u4f5c\u6a21\u5f0f\u9650\u5236\u3001\u4ea4\u6362\u673a\u7684\u8f6c\u53d1\u673a\u5236\u3001\u7f51\u7edc\u5206\u6bb5\u7b49\u56e0\u7d20\u3002<\/p>\n\n\n\n<p><strong>&nbsp; \u5168\u6d41\u91cf\u91c7\u96c6\u65b9\u5f0f\u6709\u54ea\u4e9b <\/strong>&nbsp;<\/p>\n\n\n\n<p>\u4e3a\u4e86\u5b9e\u73b0\u5bf9\u7f51\u7edc\u5168\u6d41\u91cf\u7684\u91c7\u96c6\uff0c\u9700\u8981\u6839\u636e\u4e0d\u540c\u7684\u7f51\u7edc\u73af\u5883\u548c\u9700\u6c42\uff0c\u91c7\u7528\u5408\u9002\u7684\u91c7\u96c6\u65b9\u5f0f\u3002\u4ee5\u4e0b\u662f\u51e0\u79cd\u5e38\u89c1\u7684\u5168\u6d41\u91cf\u91c7\u96c6\u65b9\u5f0f\uff1a<\/p>\n\n\n\n<p>\u57fa\u4e8e\u96c6\u7ebf\u5668\uff08Hub\uff09\u7684\u91c7\u96c6\u65b9\u5f0f\u3001\u4ea4\u6362\u673a\u7aef\u53e3\u955c\u50cf\uff08Port Mirroring\uff09\u3001\u7f51\u7edc\u5206\u6d41\u5668\uff08Network Tap\uff09\u3001\u57fa\u4e8e\u8f6f\u4ef6\u7684\u65c1\u8def\u91c7\u96c6\u65b9\u5f0f\u3001\u57fa\u4e8e\u865a\u62df\u7f51\u7edc\u7684\u91c7\u96c6\u65b9\u5f0f\u7b49\u3002<\/p>\n\n\n\n<p>\u7efc\u4e0a\u6240\u8ff0\uff0c\u4e0d\u540c\u7684\u5168\u6d41\u91cf\u91c7\u96c6\u65b9\u5f0f\u5404\u6709\u4f18\u7f3a\u70b9\uff0c\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u9700\u8981\u6839\u636e\u7f51\u7edc\u89c4\u6a21\u3001\u7f51\u7edc\u67b6\u6784\u3001\u91c7\u96c6\u9700\u6c42\u548c\u6210\u672c\u7b49\u56e0\u7d20\u9009\u62e9\u5408\u9002\u7684\u91c7\u96c6\u65b9\u5f0f\u3002\u4ea4\u6362\u673a\u7aef\u53e3\u955c\u50cf\u7531\u4e8e\u5176\u7075\u6d3b\u6027\u548c\u9002\u7528\u6027\uff0c\u662f\u76ee\u524d\u6700\u5e38\u7528\u7684\u5168\u6d41\u91cf\u91c7\u96c6\u65b9\u5f0f\u4e4b\u4e00\u3002<\/p>\n\n\n\n<p><strong>&nbsp; \u4ec0\u4e48\u662f\u4ea4\u6362\u673a\u7aef\u53e3\u955c\u50cf &nbsp;<\/strong><\/p>\n\n\n\n<p>\u4ea4\u6362\u673a\u7aef\u53e3\u955c\u50cf\u662f\u4e00\u79cd\u5e38\u7528\u7684\u5168\u6d41\u91cf\u91c7\u96c6\u65b9\u5f0f\uff0c\u5b83\u901a\u8fc7\u5728\u4ea4\u6362\u673a\u4e0a\u914d\u7f6e\u955c\u50cf\u7aef\u53e3\uff0c\u5c06\u4e00\u4e2a\u6216\u591a\u4e2a\u6e90\u7aef\u53e3\uff08\u6216VLAN\uff09\u7684\u6d41\u91cf\u590d\u5236\u5230\u4e00\u4e2a\u6216\u591a\u4e2a\u6307\u5b9a\u7684\u955c\u50cf\u7aef\u53e3\uff0c\u7136\u540e\u5c06\u91c7\u96c6\u8bbe\u5907\u8fde\u63a5\u5230\u955c\u50cf\u7aef\u53e3\uff0c\u5373\u53ef\u6355\u83b7\u5230\u6e90\u7aef\u53e3\u7684\u6240\u6709\u6d41\u91cf\u3002\u7aef\u53e3\u955c\u50cf\u53ef\u4ee5\u5206\u4e3a\u672c\u5730\u7aef\u53e3\u955c\u50cf\u548c\u8fdc\u7a0b\u7aef\u53e3\u955c\u50cf\uff08RSPAN\uff09\u3002\u672c\u5730\u7aef\u53e3\u955c\u50cf\u9002\u7528\u4e8e\u540c\u4e00\u4ea4\u6362\u673a\u4e0a\u7684\u7aef\u53e3\u955c\u50cf\uff0c\u800c\u8fdc\u7a0b\u7aef\u53e3\u955c\u50cf\u5219\u53ef\u4ee5\u8de8\u4ea4\u6362\u673a\u8fdb\u884c\u6d41\u91cf\u955c\u50cf\uff0c\u901a\u8fc7\u4e13\u7528\u7684RSPAN VLAN\u4f20\u8f93\u955c\u50cf\u6d41\u91cf\u3002\u8fd9\u79cd\u91c7\u96c6\u65b9\u5f0f\u7684\u4f18\u70b9\u662f\u4e0d\u4f1a\u5f71\u54cd\u7f51\u7edc\u7684\u6b63\u5e38\u8fd0\u884c\uff0c\u80fd\u591f\u51c6\u786e\u6355\u83b7\u5230\u6307\u5b9a\u7aef\u53e3\u6216VLAN\u7684\u5168\u6d41\u91cf\uff0c\u9002\u7528\u4e8e\u5404\u79cd\u89c4\u6a21\u7684\u7f51\u7edc\u73af\u5883\u3002<\/p>\n\n\n\n<p>\u4e0b\u9762\u6211\u4eec\u5c31\u4ee5\u5e38\u89c1\u7684\u4ea4\u6362\u673a\u54c1\u724c\u4e3a\u4f8b\uff0c\u8fdb\u884c\u4ea4\u6362\u673a\u7aef\u53e3\u955c\u50cf\u7684\u914d\u7f6e\u6f14\u793a\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">&nbsp; \u5e38\u89c1\u4ea4\u6362\u673a\u7aef\u53e3\u955c\u50cf\u914d\u7f6e &nbsp;<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">\uff08\u4ee5\u4e0b\u5185\u5bb9\u4ec5\u4f5c\u4e3a\u793a\u4f8b\u4f9b\u53c2\u8003\uff09<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u2460 \u534e\u4e3a&nbsp;<\/strong><\/h3>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u914d\u7f6e\u672c\u5730\u7aef\u53e3\u955c\u50cf<\/strong><\/h3>\n\n\n\n<h3 class=\"wp-block-heading\"><img decoding=\"async\" src=\"http:\/\/dengbaoceping.org\/wp-content\/uploads\/2025\/07\/20250709dym9i_.png\" alt=\"\u56fe\u7247\" title=\"\u6d41\u91cf\u91c7\u96c6:\u5e38\u89c1\u4ea4\u6362\u673a\u7aef\u53e3\u955c\u50cf\u914d\u7f6e\u6307\u5357\u63d2\u56fe\" \/><\/h3>\n\n\n\n<p>1\u3001\u914d\u7f6e\u955c\u50cf\u76ee\u7684\u7aef\u53e3<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;Huawei&gt; system-view<br>&#91;Huawei]&nbsp;<br>observe-port 1 interface G0\/0\/1<\/code><\/pre>\n\n\n\n<p>2\u3001\u914d\u7f6e\u955c\u50cf\u6e90\u7aef\u53e3<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;Huawei] interface G0\/0\/2<br>&#91;Huawei-GigabitEthernet0\/0\/2] port-mirroring to observe-port 1 inbound<br>&#91;Huawei-GigabitEthernet0\/0\/2] quit<\/code><\/pre>\n\n\n\n<p>3\u3001\u68c0\u67e5\u914d\u7f6e\u7ed3\u679c<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;Huawei]display port-mirroring<\/code><\/pre>\n\n\n\n<p><strong>\u914d\u7f6e\u8fdc\u7a0b\u7aef\u53e3\u955c\u50cf<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"http:\/\/dengbaoceping.org\/wp-content\/uploads\/2025\/07\/20250709vxwb3_.png\" alt=\"\u56fe\u7247\" title=\"\u6d41\u91cf\u91c7\u96c6:\u5e38\u89c1\u4ea4\u6362\u673a\u7aef\u53e3\u955c\u50cf\u914d\u7f6e\u6307\u5357\u63d2\u56fe1\" \/><\/figure>\n\n\n\n<p>1\u3001\u914d\u7f6eRSPAN\u4e13\u7528VLAN<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;Huawei1&gt; system-view<br>&#91;Huawei1] vlan 10<br>&#91;Huawei1-vlan10] remote-probe vlan enable<br>&#91;Huawei1-vlan10] quit<br><br>&lt;Huawei2&gt; system-view<br>&#91;Huawei2] vlan 10<br>&#91;Huawei2-vlan10] remote-probe vlan enable<br>&#91;Huawei2-vlan10] quit<\/code><\/pre>\n\n\n\n<p>2\u3001\u914d\u7f6e\u955c\u50cf\u6e90\u8bbe\u5907<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;Huawei1] mirroring-group 1 remote-source<br>&#91;Huawei1] mirroring-group 1 mirroring-port G0\/0\/2 both<br>&#91;Huawei1] mirroring-group 1 reflector-port G0\/0\/1<br>&#91;Huawei1] mirroring-group 1 remote-probe vlan 10<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">3\u3001\u914d\u7f6e\u955c\u50cf\u76ee\u6807\u8bbe\u5907<\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;Huawei2] mirroring-group 1 remote-destination<br>&#91;Huawei2] mirroring-group 1 monitor-port G0\/0\/3<br>&#91;Huawei2] mirroring-group 1 remote-probe vlan 10<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>\u914d\u7f6e\u5c01\u88c5\u7684\u8fdc\u7a0b\u7aef\u53e3\u955c\u50cf<\/strong><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><img decoding=\"async\" src=\"http:\/\/dengbaoceping.org\/wp-content\/uploads\/2025\/07\/20250709o4wyf_.png\" alt=\"\u56fe\u7247\" title=\"\u6d41\u91cf\u91c7\u96c6:\u5e38\u89c1\u4ea4\u6362\u673a\u7aef\u53e3\u955c\u50cf\u914d\u7f6e\u6307\u5357\u63d2\u56fe2\" \/><\/pre>\n\n\n\n<p>1\u3001\u914d\u7f6e\u955c\u50cf\u6e90\u8bbe\u5907<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;Huawei1&gt; system-view<br><br>&#91;Huawei1] interface GigabitEthernet0\/0\/2<br>&#91;Huawei1-GigabitEthernet0\/0\/2] port-mirroring to observe-port 1 inbound<br>&#91;Huawei1-GigabitEthernet0\/0\/2] quit<br><br>&#91;Huawei1] mirror to erspan-source<br>&#91;Huawei1-mirror-erspan-source] source-ip 10.3.5.8<br>&#91;Huawei1-mirror-erspan-source] destination-ip 10.35.8.1<br>&#91;Huawei1-mirror-erspan-source] erspan-id 100<br>&#91;Huawei1-mirror-erspan-source] quit<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">2\u3001\u914d\u7f6e\u955c\u50cf\u76ee\u6807\u8bbe\u5907<\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;Huawei2&gt; system-view<br>&#91;Huawei2] observe-port 1 interface GigabitEthernet0\/0\/2<br><br>&#91;Huawei2] mirror to erspan-destination<br>&#91;Huawei2-mirror-erspan-destination] source-ip 10.3.5.8<br>&#91;Huawei2-mirror-erspan-destination] destination-ip 10.35.8.1<br>&#91;Huawei2-mirror-erspan-destination] erspan-id 100<br>&#91;Huawei2-mirror-erspan-destination] quit<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>\u914d\u7f6e\u6d41\u955c\u50cf<\/strong><\/pre>\n\n\n\n<p><strong>\u914d\u7f6e\u672c\u5730VLAN\u6d41\u955c\u50cf<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"http:\/\/dengbaoceping.org\/wp-content\/uploads\/2025\/07\/20250709nyary_.png\" alt=\"\u56fe\u7247\" title=\"\u6d41\u91cf\u91c7\u96c6:\u5e38\u89c1\u4ea4\u6362\u673a\u7aef\u53e3\u955c\u50cf\u914d\u7f6e\u6307\u5357\u63d2\u56fe3\" \/><\/figure>\n\n\n\n<p>1\u3001\u914d\u7f6e\u955c\u50cf\u76ee\u7684\u7aef\u53e3<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;Huawei] observe-port 1 interface G0\/0\/3<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">2\u3001\u914d\u7f6e\u955c\u50cf\u6e90VLAN<\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;Huawei] vlan 10<br>&#91;Huawei-vlan10] mirroring observe-port 1 inbound<br>&#91;Huawei-vlan10] quit<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">\u914d\u7f6e\u672c\u5730\u57fa\u4e8eMQC\u7684\u6d41\u955c\u50cf<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><img decoding=\"async\" src=\"http:\/\/dengbaoceping.org\/wp-content\/uploads\/2025\/07\/202507096lcer_.png\" alt=\"\u56fe\u7247\" title=\"\u6d41\u91cf\u91c7\u96c6:\u5e38\u89c1\u4ea4\u6362\u673a\u7aef\u53e3\u955c\u50cf\u914d\u7f6e\u6307\u5357\u63d2\u56fe4\" \/><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;Huawei&gt; system-view&nbsp;<br>&#91;Huawei] acl 3000<br>&#91;Huawei-acl-adv-3000] rule permit tcp source 10.1.1.10 0 destination-port eq 80<br>&#91;Huawei -acl-adv-3000] quit<br><br>&#91;Huawei] traffic classifier mirror-class<br>&#91;Huawei-classifier-mirror-class] if-match acl 3000<br>&#91;Huawei-classifier-mirror-class] quit&nbsp;<br><br>&#91;Huawei] observe-port 1 interface GigabitEthernet 0\/0\/3<br><br>&#91;Huawei] traffic behavior ABC<br>&#91;Huawei-ABC-behavior] mirroring observe-port 1<br>&#91;Huawei] quit<br><br>&#91;Huawei] traffic policy mirror-policy<br>&#91;Huawei-policy-mirror-policy] classifier mirror-class behavior ABC<br>&#91;Huawei-policy-mirror-policy] quit<br><br>&#91;Huawei] interface GigabitEthernet 0\/0\/1<br>&#91;Huawei-GigabitEthernet0\/0\/1] traffic-policy mirror-policy inbound<br>&#91;Huawei-GigabitEthernet0\/0\/1] quit<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>\u2461 \u534e\u4e09<\/strong><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u914d\u7f6e\u672c\u5730\u7aef\u53e3\u955c\u50cf<\/strong><\/h3>\n\n\n\n<h3 class=\"wp-block-heading\"><img decoding=\"async\" src=\"http:\/\/dengbaoceping.org\/wp-content\/uploads\/2025\/07\/202507094zub7_.png\" alt=\"\u56fe\u7247\" title=\"\u6d41\u91cf\u91c7\u96c6:\u5e38\u89c1\u4ea4\u6362\u673a\u7aef\u53e3\u955c\u50cf\u914d\u7f6e\u6307\u5357\u63d2\u56fe5\" \/><\/h3>\n\n\n\n<p>1\u3001\u914d\u7f6e\u955c\u50cf\u6e90\u7aef\u53e3<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;H3C&gt; system-view<br>&#91;H3C] mirroring-group 1 local<br>&#91;H3C] interface gigabitEthernet 1\/1\/1<br>&#91;H3C-GigabitEthernet1\/1\/1] mirroring-port both<br>&#91;H3C-GigabitEthernet1\/1\/1] quit<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">2\u3001\u914d\u7f6e\u955c\u50cf\u76ee\u7684\u7aef\u53e3<\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;H3C] interface GigabitEthernet 1\/1\/2<br>&#91;H3C-GigabitEthernet1\/1\/2] monitor-port<br>&#91;H3C-GigabitEthernet1\/1\/2] quit<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>\u914d\u7f6e\u8fdc\u7a0b\u7aef\u53e3\u955c\u50cf<\/strong><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><img decoding=\"async\" src=\"http:\/\/dengbaoceping.org\/wp-content\/uploads\/2025\/07\/202507098hwwn_.png\" alt=\"\u56fe\u7247\" title=\"\u6d41\u91cf\u91c7\u96c6:\u5e38\u89c1\u4ea4\u6362\u673a\u7aef\u53e3\u955c\u50cf\u914d\u7f6e\u6307\u5357\u63d2\u56fe6\" \/><\/pre>\n\n\n\n<p><strong>1<\/strong><strong>\u3001\u914d\u7f6e\u955c\u50cf\u6e90\u4ea4\u6362\u673a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;H3C1&gt; system-view<br>&#91;H3C1] vlan 10<br>&#91;H3C1-vlan10] remote-probe vlan enable<br>&#91;H3C1-vlan10] quit<br>&#91;H3C1] interface GigabitEthernet 1\/1\/1<br>&#91;H3C1-GigabitEthernet1\/1\/1] port link-type trunk<br>&#91;H3C1-GigabitEthernet1\/1\/1] port trunk permit vlan 10<br>&#91;H3C1-GigabitEthernet1\/1\/1] quit<br>&#91;H3C1] mirroring-group 1 remote-source<br>&#91;H3C1] mirroring-group 1 mirroring-port GigabitEthernet 1\/1\/2 inbound<br>&#91;H3C1] mirroring-group 1 reflector-port GigabitEthernet 1\/1\/1<br>&#91;H3C1] mirroring-group 1 remote-probe vlan 10<br>&#91;H3C1] display mirroring-group remote-destination<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">2<strong>\u3001\u914d\u7f6e\u955c\u50cf\u76ee\u6807\u4ea4\u6362\u673a<\/strong><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;H3C2&gt; system-view<br>&#91;H3C2] vlan 10<br>&#91;H3C2-vlan10] remote-probe vlan enable<br>&#91;H3C2-vlan10] quit<br>&#91;H3C2] interface GigabitEthernet 1\/1\/1<br>&#91;H3C2-GigabitEthernet1\/1\/1] port link-type trunk<br>&#91;H3C2-GigabitEthernet1\/1\/1] port trunk permit vlan 10<br>&#91;H3C2-GigabitEthernet1\/1\/1] quit<br>&#91;H3C2] mirroring-group 1 remote-destination<br>&#91;H3C2] mirroring-group 1 monitor-port GigabitEthernet 1\/1\/2<br>&#91;H3C2] mirroring-group 1 remote-probe vlan 10<br>&#91;H3C] display mirroring-group remote-destination<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>\u914d\u7f6e\u5c01\u88c5\u7684\u8fdc\u7a0b\u7aef\u53e3\u955c\u50cf<\/strong><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><img decoding=\"async\" src=\"http:\/\/dengbaoceping.org\/wp-content\/uploads\/2025\/07\/202507098dsya_.png\" alt=\"\u56fe\u7247\" title=\"\u6d41\u91cf\u91c7\u96c6:\u5e38\u89c1\u4ea4\u6362\u673a\u7aef\u53e3\u955c\u50cf\u914d\u7f6e\u6307\u5357\u63d2\u56fe7\" \/><\/pre>\n\n\n\n<p>1\u3001\u914d\u7f6e\u955c\u50cf\u6e90\u8bbe\u5907<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;H3C1&gt; system-view<br>&#91;H3C1] mirroring-group 1 remote-source<br>&#91;H3C1] mirroring-group 1 mirroring-port GigabitEthernet1\/0\/1 inbound<br>&#91;H3C1] mirroring-group 1 remote-probe ip source 192.168.1.1 destination 192.168.2.1<br>&#91;H3C1] mirroring-group 1 remote-probe erspan-id 100<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">2\u3001\u914d\u7f6e\u955c\u50cf\u76ee\u6807\u8bbe\u5907<\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;H3C2&gt; system-view<br>&#91;H3C2] mirroring-group 1 remote-destination<br>&#91;H3C2] mirroring-group 1 remote-probe ip source 192.168.1.1 destination 192.168.2.1<br>&#91;H3C2] mirroring-group 1 remote-probe erspan-id 100<br>&#91;H3C2] mirroring-group 1 monitor-port GigabitEthernet1\/0\/24<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>\u914d\u7f6e\u6d41\u955c\u50cf<\/strong><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><img decoding=\"async\" src=\"http:\/\/dengbaoceping.org\/wp-content\/uploads\/2025\/07\/20250709a8c58_.png\" alt=\"\u56fe\u7247\" title=\"\u6d41\u91cf\u91c7\u96c6:\u5e38\u89c1\u4ea4\u6362\u673a\u7aef\u53e3\u955c\u50cf\u914d\u7f6e\u6307\u5357\u63d2\u56fe8\" \/><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;H3C] acl advanced 3000<br>&#91;H3C -acl-ipv4-adv-3000] rule permit ip source 10.3.58.0 0.0.0.255 destination 192.168.1.0 0.0.0.255<br>&#91;H3C -acl-ipv4-adv-3000] quit<br><br>&#91;H3C] traffic classifier Class_1<br>&#91;H3C -classifier-Class_1] if-match acl 3000<br>&#91;H3C -classifier-Class_1] quit<br><br>&#91;H3C] traffic behavior Class_2<br>&#91;H3C-behavior-Class_2] mirror-to interface g0\/0\/1<br>&#91;H3C-behavior-Class_2] quit<br><br>&#91;H3C] qos policy Class_3<br>&#91;H3C-qospolicy-Class_3] classifier Class_1 behavior Class_2<br>&#91;H3C-qospolicy-Class_3] quit<br><br>&#91;H3C] interface G0\/0\/6<br>&#91;H3C -G0\/0\/6] qos apply policy Class_3 inbound<br>&#91;H3C-G0\/0\/6] quit<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>\u2462 \u9510\u6377<\/strong><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u914d\u7f6e\u672c\u5730\u7aef\u53e3\u955c\u50cf<\/strong><\/h3>\n\n\n\n<h3 class=\"wp-block-heading\"><img decoding=\"async\" src=\"http:\/\/dengbaoceping.org\/wp-content\/uploads\/2025\/07\/202507099tiqk_.png\" alt=\"\u56fe\u7247\" title=\"\u6d41\u91cf\u91c7\u96c6:\u5e38\u89c1\u4ea4\u6362\u673a\u7aef\u53e3\u955c\u50cf\u914d\u7f6e\u6307\u5357\u63d2\u56fe9\" \/><\/h3>\n\n\n\n<p>1\u3001\u914d\u7f6e\u955c\u50cf\u6e90\u7aef\u53e3<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Ruijie&gt; enable<br>Ruijie#&nbsp;configure terminal&nbsp;<br>Ruijie(config)#&nbsp;monitor session 1 source interface gigabitEthernet 0\/1<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">2\u3001\u914d\u7f6e\u955c\u50cf\u76ee\u7684\u7aef\u53e3<\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Ruijie(config)#&nbsp;monitor session 1 destination interface gigabitEthernet 0\/2<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">3\u3001\u9a8c\u8bc1\u547d\u4ee4<\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Ruijie#&nbsp;show monitor<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>\u914d\u7f6e\u8fdc\u7a0b\u7aef\u53e3\u955c\u50cf<\/strong><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><img decoding=\"async\" src=\"http:\/\/dengbaoceping.org\/wp-content\/uploads\/2025\/07\/20250709ch8iy_.png\" alt=\"\u56fe\u7247\" title=\"\u6d41\u91cf\u91c7\u96c6:\u5e38\u89c1\u4ea4\u6362\u673a\u7aef\u53e3\u955c\u50cf\u914d\u7f6e\u6307\u5357\u63d2\u56fe10\" \/><\/pre>\n\n\n\n<p>1\u3001\u914d\u7f6e\u955c\u50cf\u6e90\u8bbe\u5907<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Ruijie1&gt; enable<br>Ruijie1#&nbsp;configure terminal<br><br>Ruijie1 (config)#&nbsp;vlan 7<br>Ruijie1 (config-vlan)#&nbsp;remote-span<br>Ruijie1 (config-vlan)#&nbsp;exit<br><br>Ruijie1 (config)#&nbsp;monitor session 1 remote-source<br>Ruijie1 (config)#&nbsp;monitor session 1 source interface G0\/0\/2 both<br>Ruijie1 (config)#&nbsp;monitor session 1 destination remote vlan 7 interface G0\/0\/1 switch<br>Ruijie1 (config)#&nbsp;interface G0\/0\/5<br>Ruijie1 (config-if)#&nbsp;mac-loopback<br>Ruijie1 (config-if)#&nbsp;switchport access vlan 7<br>Ruijie1 (config-if)#&nbsp;exit<br><br>Ruijie1 (config)#&nbsp;interfaceG0\/0\/1<br>Ruijie1 (config-if-range)#&nbsp;switchport mode trunk<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">2\u3001\u914d\u7f6e\u955c\u50cf\u76ee\u6807\u8bbe\u5907<\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Ruijie2&gt; enable<br>Ruijie2#&nbsp;configure terminal&nbsp;<br><br>Ruijie2 (config)#&nbsp;vlan 7<br>Ruijie2 (config-vlan)#&nbsp;remote-span<br>Ruijie2 (config-vlan)#&nbsp;exit<br><br>Ruijie2 (config)#&nbsp;monitor session 1 remote-destination<br>Ruijie2 (config)#&nbsp;monitor session 1 destination remote vlan 7 interface G0\/0\/3<br><br>Ruijie2 (config)#&nbsp;interface G0\/0\/1<br>Ruijie2 (config-if)#&nbsp;switchport mode trunk<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>\u914d\u7f6e\u5c01\u88c5\u7684\u8fdc\u7a0b\u7aef\u53e3\u955c\u50cf<\/strong><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><img decoding=\"async\" src=\"http:\/\/dengbaoceping.org\/wp-content\/uploads\/2025\/07\/20250709l0u6b_.png\" alt=\"\u56fe\u7247\" title=\"\u6d41\u91cf\u91c7\u96c6:\u5e38\u89c1\u4ea4\u6362\u673a\u7aef\u53e3\u955c\u50cf\u914d\u7f6e\u6307\u5357\u63d2\u56fe11\" \/><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Ruijie&gt; enable<br>Ruijie#&nbsp;configure terminal&nbsp;<br><br>Ruijie(config)#monitor session 1 erspan-source<br>Ruijie(config-mon-erspan-src)#source interface G0\/0\/2 both<br>Ruijie(config-mon-erspan-src)#origin ip address 10.3.5.8<br>Ruijie(config-mon-erspan-src)#destination ip address 10.35.8.100<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>\u914d\u7f6e\u6d41\u955c\u50cf<\/strong><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><img decoding=\"async\" src=\"http:\/\/dengbaoceping.org\/wp-content\/uploads\/2025\/07\/20250709b99zl_.png\" alt=\"\u56fe\u7247\" title=\"\u6d41\u91cf\u91c7\u96c6:\u5e38\u89c1\u4ea4\u6362\u673a\u7aef\u53e3\u955c\u50cf\u914d\u7f6e\u6307\u5357\u63d2\u56fe12\" \/><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Ruijie&gt; enable<br>Ruijie#&nbsp;configure terminal&nbsp;<br>Ruijie (config)#ip access-list extended ruijie<br>Ruijie (config-ext-nacl)#permit ip &nbsp;192.168.10.0 0.0.0.255 any<br>Ruijie (config-ext-nacl)#exit<br><br>Ruijie (config)#monitor session 1 source interface gigabitEthernet 0\/1 tx&nbsp;<br>Ruijie (config)#monitor session 1 source interface gigabitEthernet 0\/1 rx acl ruijie<br>Ruijie (config)#monitor session 1 destination interface gigabitEthernet 0\/24<br>Ruijie (config)#end<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>\u2463 \u601d\u79d1<\/strong><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u914d\u7f6e\u672c\u5730\u7aef\u53e3\u955c\u50cf<\/strong><\/h3>\n\n\n\n<h3 class=\"wp-block-heading\"><img decoding=\"async\" src=\"http:\/\/dengbaoceping.org\/wp-content\/uploads\/2025\/07\/202507096c8g6_.png\" alt=\"\u56fe\u7247\" title=\"\u6d41\u91cf\u91c7\u96c6:\u5e38\u89c1\u4ea4\u6362\u673a\u7aef\u53e3\u955c\u50cf\u914d\u7f6e\u6307\u5357\u63d2\u56fe13\" \/><\/h3>\n\n\n\n<p>1\u3001\u914d\u7f6e\u955c\u50cf\u6e90\u7aef\u53e3<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Cisco&gt;enable<br>Cisco#configure terminal<br>Cisco (config)monitor session 1 source interface G0\/2<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">2\u3001\u914d\u7f6e\u955c\u50cf\u76ee\u7684\u7aef\u53e3<\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Cisco (config)monitor session 1 destination interface G0\/1<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">3\u3001\u914d\u7f6e\u955c\u50cf\u7c7b\u578b\u88ab\u672c\u5730\u7aef\u53e3\u955c\u50cf<\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Cisco (config)monitor session 1 type local<br>Cisco (config)source interface G0\/2<br>Cisco (config)destination interface G0\/24<br>Cisco (config)end<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>\u914d\u7f6e\u8fdc\u7a0b\u7aef\u53e3\u955c\u50cf<\/strong><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><img decoding=\"async\" src=\"http:\/\/dengbaoceping.org\/wp-content\/uploads\/2025\/07\/20250709zopn7_.png\" alt=\"\u56fe\u7247\" title=\"\u6d41\u91cf\u91c7\u96c6:\u5e38\u89c1\u4ea4\u6362\u673a\u7aef\u53e3\u955c\u50cf\u914d\u7f6e\u6307\u5357\u63d2\u56fe14\" \/><\/pre>\n\n\n\n<p>1\u3001\u914d\u7f6eRSPAN\u4e13\u7528VLAN<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Cisco1&gt;enable<br>Cisco1#&nbsp;configure terminal<br>Cisco1(config)#&nbsp;vlan 200<br>Cisco1(config-vlan)#&nbsp;remote-span<br>Cisco1(config-vlan)#&nbsp;end<br>Cisco1#&nbsp;show vlan remote-span<br><br>Cisco2&gt;enable<br>Cisco2#&nbsp;configure terminal<br>Cisco2(config)#&nbsp;vlan 200<br>Cisco2(config-vlan)#&nbsp;remote-span<br>Cisco2(config-vlan)#&nbsp;end<br><br>Cisco2#&nbsp;show vlan remote-span<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">2\u3001\u914d\u7f6e\u955c\u50cf\u6e90\u8bbe\u5907<\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Cisco1&gt;enable<br>Cisco1#&nbsp;configure terminal<br>Cisco1(config)#&nbsp;monitor session 1 source interface G0\/2 rx<br>Cisco1(config)#&nbsp;monitor session 1 destination remote vlan 200<br>Cisco1(config)#&nbsp;monitor session 1 reflector-port G0\/1<br>Cisco1(config)#&nbsp;exit<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">3\u3001\u914d\u7f6e\u955c\u50cf\u76ee\u6807\u8bbe\u5907<\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Cisco2&gt;enable<br>Cisco2#&nbsp;configure terminal<br>Cisco2(config)#&nbsp;monitor session 1 source remote vlan 200<br>Cisco2(config)#&nbsp;monitor session 1 destination interface G0\/2<br>Cisco2(config)#&nbsp;exit<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>\u914d\u7f6e\u5c01\u88c5\u7684\u8fdc\u7a0b\u7aef\u53e3\u955c\u50cf<\/strong><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><img decoding=\"async\" src=\"http:\/\/dengbaoceping.org\/wp-content\/uploads\/2025\/07\/20250709u2qnm_.png\" alt=\"\u56fe\u7247\" title=\"\u6d41\u91cf\u91c7\u96c6:\u5e38\u89c1\u4ea4\u6362\u673a\u7aef\u53e3\u955c\u50cf\u914d\u7f6e\u6307\u5357\u63d2\u56fe15\" \/><\/pre>\n\n\n\n<p>1\u3001\u914d\u7f6e\u955c\u50cf\u6e90\u8bbe\u5907<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Cisco1&gt;enable<br>Cisco1#&nbsp;configure terminal<br>Cisco1(config)#&nbsp;monitor session 1 type erspan-source<br>Cisco1(config-mon-erspan-src)#&nbsp;source interface gig0\/1\/0 rx<br>Cisco1(config-mon-erspan-src)#&nbsp;no shutdown<br>Cisco1(config-mon-erspan-src)#&nbsp;destination<br>Cisco1(config-mon-erspan-src-dst)#&nbsp;erspan-id 101<br>Cisco1(config-mon-erspan-src-dst)#&nbsp;ip address 10.1.1.1<br>Cisco1(config-mon-erspan-src-dst)#&nbsp;origin ip address 172.16.1.1<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">2\u3001\u914d\u7f6e\u955c\u50cf\u76ee\u6807\u8bbe\u5907<\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Cisco2&gt;enable<br>Cisco2#&nbsp;configure terminal<br>Cisco2(config)#&nbsp;monitor session 2 type erspan-destination<br>Cisco2(config-mon-erspan-dst)#&nbsp;destination interface gigabitEthernet2\/2\/1<br>Cisco2(config-mon-erspan-dst)#&nbsp;no shutdown<br>Cisco2(config-mon-erspan-dst)#&nbsp;source<br>Cisco2(config-mon-erspan-dst-src)#&nbsp;erspan-id 101<br>Cisco2(config-mon-erspan-dst-src)#&nbsp;ip address 10.1.1.1<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>\u914d\u7f6e\u6d41\u955c\u50cf<\/strong><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><img decoding=\"async\" src=\"http:\/\/dengbaoceping.org\/wp-content\/uploads\/2025\/07\/20250709iywz0_.png\" alt=\"\u56fe\u7247\" title=\"\u6d41\u91cf\u91c7\u96c6:\u5e38\u89c1\u4ea4\u6362\u673a\u7aef\u53e3\u955c\u50cf\u914d\u7f6e\u6307\u5357\u63d2\u56fe16\" \/><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Cisco&gt; enable<br>Cisco#&nbsp;configure terminal<br><br>Cisco (config)#ip access 1 permit 192.168.1.0 0.0.0.255<br><br>Cisco (config)#&nbsp;monitor session 2 source interface G0\/1<br>Cisco (config)#&nbsp;monitor session 2 destination interface G0\/2 encapsulation replicate<br>Cisco (config)#&nbsp;monitor session 2 filter ip access-group 1<br>Cisco (config)#&nbsp;end<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">&nbsp;<\/h2>\n\n\n\n<p>\u6765\u6e90\uff1a\u79d1\u6765<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7f51\u7edc\u5168\u6d41\u91cf\u91c7\u96c6\u4e0e\u5206\u6790\u5728\u7f51\u7edc\u9886\u57df\u5177\u6709\u591a\u65b9\u9762\u7684\u91cd\u8981\u4ef7\u503c\uff0c\u5176\u5e94\u7528\u5728...<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[15],"tags":[276,277,278],"class_list":["post-2860","post","type-post","status-publish","format-standard","hentry","category-cybersecurity","tag-276","tag-277","tag-278"],"_links":{"self":[{"href":"https:\/\/dengbaoceping.org\/index.php\/wp-json\/wp\/v2\/posts\/2860","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dengbaoceping.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dengbaoceping.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dengbaoceping.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dengbaoceping.org\/index.php\/wp-json\/wp\/v2\/comments?post=2860"}],"version-history":[{"count":0,"href":"https:\/\/dengbaoceping.org\/index.php\/wp-json\/wp\/v2\/posts\/2860\/revisions"}],"wp:attachment":[{"href":"https:\/\/dengbaoceping.org\/index.php\/wp-json\/wp\/v2\/media?parent=2860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dengbaoceping.org\/index.php\/wp-json\/wp\/v2\/categories?post=2860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dengbaoceping.org\/index.php\/wp-json\/wp\/v2\/tags?post=2860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}