路由器端口镜像的配置与实验(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可以配置镜像但是无法抓取镜像流量报文问题评论区可探讨。

相关推荐
物联网软硬件开发-轨物科技3 小时前
【轨物洞见】什么是产品碳足迹(PCF)?ISO 14067 计算方法与应用场景深度解读
大数据·网络·人工智能
姜鱼问生6 小时前
docker exec 排查容器问题:从日志到进程
运维·网络·数据库·docker·容器
qq_543447826 小时前
DNS解析怎么排查?故障处理与运维实用手册
运维·服务器·网络·php
威胁猎人8 小时前
网络水军产业风险研究报告
网络
独钓寒江雨8 小时前
路由器单MAC多IP支持功能未开启致业务异常
网络·数通·故障·中兴·m6000·单mac多ip
桀人9 小时前
USART帧格式
网络·stm32·单片机·嵌入式硬件
2301_777998349 小时前
TCP粘包问题:原理、解决方法与UDP为什么没有粘包
网络
马六六i9 小时前
市面上专业的IP驱动产业新场景新工具哪家好
网络·人工智能·python·tcp/ip
星恒讯工业路由器10 小时前
工信部调整超宽带设备频段:7-9GHz为5G/6G腾频谱,工业UWB设备面临合规升级
网络·物联网·5g·无线通信·5g专网·超宽带uwb·频谱管理