物理交换机镜像接口配置

物理交换机镜像指导

常见主流交换机厂商镜像口流量配置如下,可根据实际情况做对应的调整。

1.华为

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

<Quidway> system-view

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

[Quidway] interface gigabitethernet 0/0/1

[Quidway-GigabitEthernet0/0/1] port-mirroring to observe-port 1 both

执行命令system-view,进入系统视图。

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

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

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

执行命令interface range gigabitethernet 0/0/1 to gigabitethernet 0/0/7,配置多个接口镜像

2.华三

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

<sysname>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

执行命令system-view,进入系统视图。

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

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

执行命令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/1 both

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

执行命令configure terminal,进入全局配置模式。

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

执行命令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 interface fastethernet 0/1 both

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

执行命令configure terminal,进入全局配置模式。

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

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

  • 10
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值