您的位置:首页 > 其它

华为S5300交换机配置基于接口的本地端口镜像

2015-06-13 16:52 549 查看
配置思路

1、 将Ethernet0/0/20接口配置为观察端口(监控端口)

2、 将Ethernet0/0/1----Ethernet0/0/10接口配置为镜像端口

配置步骤

1、 配置观察端口

<Switch> system-view

[Switch] observe-port 1 interface GigabitEthernet 0/0/20

命令格式:

observe-port index interface interface-type interface-number [ vlan vlan-id ]

参数说明:

参数

参数说明

取值

index

指定观察接口的索引。

S5300EI系列产品取值范围为1~4。

S5300SI系列产品取值为1。

interface-type interface-number

指定S5300设备上的接口类型和接口编号,

接口类型为GigabitEthernet和XGigabitEthernet。

-

vlan vlan-id

用来指定远程镜像VLAN。

IP方式时,配置的vlan-id用来为GRE隧道的二层头添加Tag。

整数形式,取值范围为1~4094。

配置观察端口时,如果不指定vlan,则观察端口的类型为本地镜像;如果指定vlan,则观察端口的类型为远端镜像。

2、 配置镜像端口

#将Ethernet0/0/1----Ethernet0/0/10接口配置为镜像端口

[Switch] interface GigabitEthernet 0/0/1

[Switch-Ethernet0/0/1] port-mirroring to observe-port 1 both

[Switch] interface GigabitEthernet 0/0/2

[Switch-Ethernet0/0/2] port-mirroring to observe-port 1 both

[Switch] interface GigabitEthernet 0/0/3

[Switch-Ethernet0/0/3] port-mirroring to observe-port 1 both

[Switch] interface GigabitEthernet 0/0/4

[Switch-Ethernet0/0/4] port-mirroring to observe-port 1 both

[Switch] interface GigabitEthernet 0/0/5

[Switch-Ethernet0/0/5] port-mirroring to observe-port 1 both

[Switch] interface GigabitEthernet 0/0/6

[Switch-Ethernet0/0/6] port-mirroring to observe-port 1 both

[Switch] interface GigabitEthernet 0/0/7

[Switch-Ethernet0/0/7] port-mirroring to observe-port 1 both

[Switch] interface GigabitEthernet 0/0/8

[Switch-Ethernet0/0/8] port-mirroring to observe-port 1 both

[Switch] interface GigabitEthernet 0/0/9

[Switch-Ethernet0/0/9] port-mirroring to observe-port 1 both

[Switch] interface GigabitEthernet 0/0/10

[Switch-Ethernet0/0/10] port-mirroring to observe-port 1 both

命令格式:

port-mirroring to observe-port index { both | inbound | outbound }

参数说明:

参数

参数说明

取值

index

表示全局观察接口的索引。

S5300EI系列产品取值范围为1~4。

S5300SI系列产品取值为1。

both

支持出/入双方向的接口镜像。

-

3、 检查配置结果

查看观察端口的使用情况

display observe-port

查看接口镜像信息列表

display port-mirroring

再查看Switch的配置文件

[Switch] dis curr
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: