zoukankan      html  css  js  c++  java
  • 交换机配置端口镜像

    配置端口镜像

    端口镜像是指设备复制一份从镜像端口流经的报文,并将此报文传送到指定的观察端口进行分析和监控。
    配置1:1端口镜像

    将一个镜像端口的报文复制到一个观察端口上。例如:将镜像端口10GE1/0/1入方向的报文复制到观察端口10GE1/0/2上。
    <HUAWEI> system-view
    [~HUAWEI] observe-port 1 interface 10ge 1/0/2
    [*HUAWEI] interface 10ge 1/0/1
    [*HUAWEI-10GE1/0/1] port-mirroring observe-port 1 inbound/outbound/both(这个命令是将接口的收/发/收发双向流量都镜像给服务器的端口)
    [*HUAWEI-10GE1/0/1] commit
    配置1:N端口镜像

    将一个镜像端口的报文复制到N个不同的观察端口上。例如:将镜像端口10GE1/0/1入方向的报文复制到观察端口10GE1/0/2、10GE1/0/3上。
    <HUAWEI> system-view
    [~HUAWEI] observe-port 1 interface 10ge 1/0/2
    [*HUAWEI] observe-port 2 interface 10ge 1/0/3
    [*HUAWEI] interface 10ge 1/0/1
    [*HUAWEI-10GE1/0/1] port-mirroring observe-port 1 inbound/outbound/both(这个命令是将接口的收/发/收发双向流量都镜像给服务器的端口)
    [*HUAWEI-10GE1/0/1] port-mirroring observe-port 2 inbound/outbound/both(这个命令是将接口的收/发/收发双向流量都镜像给服务器的端口)
    [*HUAWEI-10GE1/0/1] commit
    配置N:1端口镜像

    将N个镜像端口的报文复制到同一个观察端口上。例如:将镜像端口10GE1/0/1、10GE1/0/2入方向的报文复制到观察端口10GE1/0/3上。
    <HUAWEI> system-view
    [~HUAWEI] observe-port 1 interface 10ge 1/0/3
    [*HUAWEI] interface 10ge 1/0/1
    [*HUAWEI-10GE1/0/1] port-mirroring observe-port 1 inbound/outbound/both(这个命令是将接口的收/发/收发双向流量都镜像给服务器的端口)
    [*HUAWEI-10GE1/0/1] quit
    [*HUAWEI] interface 10ge 1/0/2
    [*HUAWEI-10GE1/0/2] port-mirroring observe-port 1 inbound/outbound/both(这个命令是将接口的收/发/收发双向流量都镜像给服务器的端口)
    [*HUAWEI-10GE1/0/2] commit

    这个命令是将接口的收发双向流量都镜像给服务器的端口

  • 相关阅读:
    0603学术诚信和职业道德
    0602第二个冲刺
    0525《构建之法》8、9、10章读后感
    0525Sprint回顾
    实验三进程调度
    解决提问的问题
    阅读《构建之法》第13-17章
    阅读:第10、11、12章
    作业5.2(封装及测试)
    作业5.1
  • 原文地址:https://www.cnblogs.com/yinfutao/p/11647238.html
Copyright © 2011-2022 走看看