博客文章 首页 > 博客文章列表 >

主流厂商交换机端口镜像配置

1、华为

配置GigabitEthernet0/0/1 为镜像接口,GigabitEthernet0/0/2 为观察接口,观察接口索引号为 1。镜像 GigabitEthernet0/0/1 上的双向业务流量到 GigabitEthernet0/0/2 上。

system-view

[Quidway] observe-port 1 interface gigabitethernet 0/0/2

[Quidway] interface gigabitethernet 0/0/1

[Quidway-GigabitEthernet0/0/1] port-mirroring toobserve-port 1 both

步骤 1 执行命令 system-view,进入系统视图

步骤 2 执行命令 observe-port index interface interface-type interface-number ,配置观察接口

步骤 3 执行命令 interface interface-type interface-number,进入镜像接口的接口视图

步骤 4 执行命令 port-mirroring to observe-port index { both | inbound | outbound } ,配置接口镜像

2、华三

配置GigabitEthernet0/0/1 为镜像接口,GigabitEthernet0/0/2 为观察接口,观察接口索引号为 1。

镜像GigabitEthernet0/0/1 上的双向业务流量到 GigabitEthernet0/0/2 上。

system-view

[sysname] mirroring-group 1 local

[sysname] mirroring-group 1 mirroring-port G0/0/1 both

[sysname] mirroring-group 1 monitor-port G0/0/2

步骤 1 执行命令 system-view,进入系统视图

步骤 2 执行命令 mirroring-group number local ,建立一个镜像组

步骤 3 执行命令 mirroring-group 1 mirroring-port G0/0/1 { both | inbound | outbound},将端口加入到镜像组中,镜像可以根据实际情况灵活选择入方向、出方向及全部流量;both,全部流量;inbound,入方向流量;outbound,出方向流量

步骤 4 执行命令 mirroring-group 1 monitor-port G0/0/2 ,设置镜像的目的端口。

3、锐捷 

配置 fa0/1 为镜像接口,fa0/2 为观察接口,观察接口索引号为 1。镜像 fa0/1 上的双向业务流量到 fa0/2 上。

Switch# configure terminal

Switch(config)#monitor session 1 source interface fa0/1both

Switch(config)#monitor session 1 destination interface fa0/2

步骤 1 执行命令 configure terminal,进入全局配置模式

步骤 2 执行命令 monitor session 1 source interface fa0/1 { both | inbound |outbound } ,建立观察接口索引号为 1,并将fa0/1 加入该索引,镜像可以根据实际情况灵活选择入方向、出方向及全部流量;both,全部流量;inbound,入方向流量;outbound,出方向流量

步骤 3 执行命令 monitor session 1 destination interface fa 0/2 设置 fa0/2 为监控口。

4、思科

配置fa0/1 为镜像接口,fa0/2 为观察接口,观察接口索引号为 1。镜像 fa0/1 上的双向业务流量到 fa0/2 上。

Switch# configure terminal

Switch(config)# monitor session 1 source interfacefastethernet 0/1 both

Switch(config)# monitor session 1 destination interfacefastethernet 0/2

步骤 1 执行命令 configure terminal,进入全局配置模式

步骤 2 执行命令 monitor session 1 source interface fa0/1 { both | inbound |outbound } ,建立观察接口索引号为 1,并将fa0/1 加入该索引,镜像可以根据实际情况灵活选择入方向、出方向及全部流量;both,全部流量;inbound,入方向流量;outbound,出方向流量

步骤 3 执行命令 monitor session 1 destination interface fa 0/2 设置 fa0/2 为监控口。

如遇页面排版混乱,请访问原网页   访问原网页