路由器端口镜像的配置与实验(eNSP)

概述:路由器交换机的镜像口核心作用是复制端口的网络流量,供监控、分析设备抓取数据,主要用于网络故障排查、流量分析和安全审计与监控(对关键区域端口进行流量镜像,结合IDS或日志审计工具,监控敏感数据或恶意行为等)等场景。

*eNSP中的交换机端口配置镜像之后,镜像口****抓不到镜像流量,这里使用路由器AR3260演示。(主要是Router没法识别镜像端口的配置命令)。

1、topo图

2、配置

网络可达:

复制代码
[Huawei]int g0/0/0

[Huawei-GigabitEthernet0/0/0]ip add 192.168.0.1 24

[Huawei-GigabitEthernet0/0/0]int g0/0/1

[Huawei-GigabitEthernet0/0/1]ip add 192.168.1.1 24

[Huawei]dis ip int bri
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 0
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 1

Interface                         IP Address/Mask      Physical   Protocol
GigabitEthernet0/0/0              192.168.0.1/24       up         up
GigabitEthernet0/0/1              192.168.1.1/24       up         up
GigabitEthernet0/0/2              unassigned           up         down
NULL0                             unassigned           up         up(s)
[Huawei]

观察口,镜像口配置:

复制代码
[Huawei]observe-port int g0/0/2

[Huawei]int g0/0/1

[Huawei-GigabitEthernet0/0/1]mirror to observe-por both

[Huawei]dis mirror    //查询镜像端口
  ---------------------------------------------------------------------------
    Mirror-port              Direction  Observe-dest
  ---------------------------------------------------------------------------
  1 GigabitEthernet0/0/1     Both       GigabitEthernet0/0/2
  ---------------------------------------------------------------------------

[Huawei]dis observe-port    //查询观察口
  ----------------------------------------------------------------------
  Index    : 1
  Interface: GigabitEthernet0/0/2
  Used     : 2
  ----------------------------------------------------------------------

3、镜像验证

*关于eNSP可以配置镜像但是无法抓取镜像流量报文问题评论区可探讨。

相关推荐
Arenaschi4 小时前
AI对未来游戏模式与游戏开发的助力
网络·人工智能·游戏·ai
国际云,接待4 小时前
出海东南亚无忧:腾讯云如何凭借本地合作与全球节点,保障游戏和电商业务合规流畅?
大数据·服务器·网络·云计算·腾讯云
2501_929907005 小时前
怕随身 WiFi 虚量断连?格行随身wifi拆箱测评:1500G 真不虚标?
网络
极客范儿5 小时前
华为HCIP网络工程师认证—网络参考模型
网络·华为
南♡黎(・ิϖ・ิ)っ5 小时前
JavaEE初阶,网络原理HTTP报头篇
网络·https·java-ee
爱编程的鱼6 小时前
HTTP 是什么?它是如何工作的
网络·网络协议·http
小武~6 小时前
嵌入式Linux安全启动全解析:从原理到实战
linux·网络·安全
橘子136 小时前
Linux网络(二)——socket编程
linux·网络
报错小能手6 小时前
计算机网络自顶向下方法24——运输层 可靠数据传输 超时间隔加倍 快速重传 是回退n步还是选择重传
网络·计算机网络·php