前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >网络基础 港湾FlexHammer5010交换机镜像端口配置

网络基础 港湾FlexHammer5010交换机镜像端口配置

作者头像
授客
发布2019-09-11 10:05:06
6710
发布2019-09-11 10:05:06
举报
文章被收录于专栏:授客的专栏授客的专栏

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):指源端口发送出去,其数据副本发送至目的端口的数据流

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

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2014-12-10 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档