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


    配置思路

    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

  • 相关阅读:
    HTML_表单
    HTML_列表、表格与媒体元素
    HTML_HTML5基础
    使用java理解程序逻辑 试题分析
    字符串
    带参数的方法
    人机猜拳
    类的无参方法
    类和对象
    vue cli+axios踩坑记录+拦截器使用,代理跨域proxy(更新)
  • 原文地址:https://www.cnblogs.com/fjping0606/p/4573721.html
Copyright © 2020-2023  润新知