zoukankan      html  css  js  c++  java
  • 网络基础 港湾FlexHammer5010交换机镜像端口配置

    港湾FlexHammer5010交换机镜像端口配置

    by:授客 QQ1033553122

    1.登陆港湾交换机FlexHammer5010交换机

    方法:

    telent 交换机ip

    输入用户名

    输入用户密码

     

    列子:

    telnet 10.5.0.248

     

    HammerOS Version 1.3(Build 0036) on FlexHammer5010.

     

    Login: admin

    Password:

     

    Harbour>

     

    2.查看帮助

    方法:输入 ? 号,回车

    说明:问号的输入是不回显的

    例子:

    Harbour>

      clear     Clear screen

      enable    Turn on privileged mode command(开启特权命令模式)

      exit      Exit current mode and down to previous mode

      help      Description of the interactive help system

      list      Print command list

      logout    Disconnect from switch and quit

      ping      Ping command to test if the net is correct

      quit      Disconnect from switch and quit

      show      Show running system information(显示运行系统信息)

      telnet    Telnet to other host or switchTelnet到其它主机或交换机)

      terminal  Set terminal line parameters

      who       Display who is connected to the switch

     

    3.显示端口镜像情况

    方法:show mirroring

    例子:

    Harbour> show mirroring

     

    Mirroring information:

    The port which mirror to    : 26.

    The ports which egress traffic mirror from : 7.

    The ports which ingress traffic mirror from : 7.

     

    4.开启特权命令模式

    方法:

    Harbour>enable

    输入管理员密码

    例子:

    Harbour> enable

    Password:

     

    Harbour(config)#

     

    5.显示交换机活动的配置文件,包括交换机名称、密码、接口配置情况及辅助端口的配置等

    Harbour(config)# show running-config

    !HammerOS system config file

     

    !Syslog config

    !

     

    !Port config

     config mirroring 1 to 26

     config mirroring 1 add port 7 egress

     config mirroring 1 add port 7 ingress

     

     

     

    !

    !vlan config

     config vlan default ipaddress 10.5.0.248 255.255.0.0

    !

    !fdb entry config

    !

    !Acl config

    !

    !Qos config

    !

    !Dscp config

    !

    !Tos config

    !

    !Bandwidth config

    !

    !Traceroute config

    !

     

    !Stpd config

     config stpd default disable

     config stpd default hellotime 1

    !

    !Rstp config

    !

     

    !Loop detect config

    !

     

    !Rate control config

     

    !Route-policy rules config

    !

    !Rip config

    !

     

    !Ospf config

    !

     

    !Interface config

    !

     

    !Static routes config

     ip route 0.0.0.0/0 10.4.0.1

     ip route 0.0.0.0/0 10.5.0.1

    !

     

    !Igmp snooping

    !

    !Arp config

    !

    !DHCP relay config

    !

     

    !Sntp config

    !

     

    !Timezone config

    !

     

    !Dot1x config

    !

     

    !Port bind config

    !

     

    !RADIUS client config

    !

     

    !User manage config

     user add admin login-password 1838f7d41567d4c7c6539b4172a809f5

     user role admin ADMIN enable-password 1838f7d41567d4c7c6539b4172a809f5

    !

     

    !SNMP config

     config snmp community readonly sinetpublic

     config snmp community readwrite sinetdev

     service snmp enable

    !

     

    !

    !H.Link config

    !

     

    !Network access-control service config

    !

     

    !vstack cluster config

    !

    !End of config

    Harbour(config)#

     

    !Acl config

    !

    !Qos config

    !

    !Dscp config

    !

    !Tos config

    !

    !Bandwidth config

    !

    !Traceroute config

    !

     

    !Stpd config

     config stpd default disable

     config stpd default hellotime 1

    !

    !Rstp config

    !

     

    !Loop detect config

    !

     

    !Rate control config

     

    !Route-policy rules config

    !

     

    !Rip config

    !

     

    !Ospf config

    !

     

    !Interface config

    !

     

    !Static routes config

     ip route 0.0.0.0/0 10.4.0.1

     ip route 0.0.0.0/0 10.5.0.1

    !

     

    !Igmp snooping

    !

    !Arp config

    !

    !DHCP relay config

    !

     

    !Sntp config

    !

     

    !Timezone config

    !

     

    !Dot1x config

    !

     

    !Port bind config

    !

     

    !RADIUS client config

    !

     

    !User manage config

     user add admin login-password 1838f7d41567d4c7c6539b4172a809f5

     user role admin ADMIN enable-password 1838f7d41567d4c7c6539b4172a809f5

    !

     

    !SNMP config

     config snmp community readonly sinetpublic

     config snmp community readwrite sinetdev

     service snmp enable

    !

     

    !

     

    !H.Link config

    !

     

    !Network access-control service config

    !

     

    !vstack cluster config

    !

    !End of config

    Harbour(config)#

     

    说明:

    !Port config

     config mirroring 1 to 26 #启用镜像组1,选择端口26作为镜像目的端口

     config mirroring 1 add port 7 egress #把端口7作为镜像源端口发送数据,把流量复制给目的端口[监控端口]

     config mirroring 1 add port 7 ingress #把端口7作为镜像源端口接收进来的数据,把流量复制给目的端口[监控端口]

     

    6.设置端口镜像

    说明:交换机把某一端口接收或发送的数据帧完全相同的复制给另一端口,其中被复制的端口称为镜像源端口,复制到端口称为镜像目的端口,也称监控端口

     

    6.1添加镜像源端口

    例子:

    Harbour(config)# config mirroring 1 add port 7 egress

    Harbour(config)# config mirroring 1 add port 7 ingress

     

    6.2删除镜像源端口2345

    例子:

    Harbour(config)# config mirroring 1 delete port 2,3,4,5 egress

    Harbour(config)# config mirroring 1 delete port 2,3,4,5 ingress

     

    说明:

    第一:输入数据流(Ingress SPAN):指源端口接收进来,其数据副本发送至目的端口的数据流

    第二:输出数据流(Egress SPAN):指源端口发送出去,其数据副本发送至目的端口的数据流

    第三:双向数据流(Both SPAN):即为以上两种的综合

  • 相关阅读:
    CSS input
    CSS 伪类选择器
    input placeholder 文字颜色修改
    css flex弹性布局学习总结
    jqGrid使用方法
    GridView控件RowDataBound事件的一个实例
    GridView控件RowDataBound事件中获取列字段值的几种途径 !!!
    .net中ckeditor的应用
    博客第一天
    用python实现数学多元数学方程式计算
  • 原文地址:https://www.cnblogs.com/shouke/p/10157996.html
Copyright © 2011-2022 走看看