网络基础 港湾FlexHammer5010交换机镜像端口配置
港湾FlexHammer5010交换机镜像端口配置
by:授客 QQ:1033553122
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 switch(Telnet到其它主机或交换机)
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删除镜像源端口2,3,4,5
例子:
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):指源端口发送出去,其数据副本发送至目的端口的数据流
作者:授客
微信/QQ:1033553122
全国软件测试QQ交流群:7156436
Git地址:https://gitee.com/ishouke
友情提示:限于时间仓促,文中可能存在错误,欢迎指正、评论!
作者五行缺钱,如果觉得文章对您有帮助,请扫描下边的二维码打赏作者,金额随意,您的支持将是我继续创作的源动力,打赏后如有任何疑问,请联系我!!!
微信打赏
支付宝打赏 全国软件测试交流QQ群
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· [.NET]调用本地 Deepseek 模型
· 一个费力不讨好的项目,让我损失了近一半的绩效!
· .NET Core 托管堆内存泄露/CPU异常的常见思路
· PostgreSQL 和 SQL Server 在统计信息维护中的关键差异
· C++代码改造为UTF-8编码问题的总结
· 【.NET】调用本地 Deepseek 模型
· CSnakes vs Python.NET:高效嵌入与灵活互通的跨语言方案对比
· DeepSeek “源神”启动!「GitHub 热点速览」
· 我与微信审核的“相爱相杀”看个人小程序副业
· Plotly.NET 一个为 .NET 打造的强大开源交互式图表库