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

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

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


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):即为以上两种的综合

目录
相关文章
|
25天前
|
网络协议
iptables配置tcp端口转发
iptables配置tcp端口转发
33 1
|
1月前
|
监控 Linux Shell
【Shell 命令集合 网络通讯 】Linux 配置和管理网络流量的形状 shapecfg命令 使用指南
【Shell 命令集合 网络通讯 】Linux 配置和管理网络流量的形状 shapecfg命令 使用指南
39 0
|
1月前
|
网络协议 Shell Linux
【Shell 命令集合 网络通讯 】Linux 设置和配置PPP pppsetup命令 使用教程
【Shell 命令集合 网络通讯 】Linux 设置和配置PPP pppsetup命令 使用教程
45 0
|
1月前
|
缓存 网络协议 Linux
【Shell 命令集合 网络通讯 】Linux 配置DNS dnsconf 命令 使用教程
【Shell 命令集合 网络通讯 】Linux 配置DNS dnsconf 命令 使用教程
39 0
|
1月前
|
网络协议 网络虚拟化 数据中心
华为配置VXLAN构建虚拟网络实现相同网段互通示例(静态方式)
配置VXLAN构建虚拟网络实现相同网段互通示例(静态方式
|
1月前
|
域名解析 网络协议 Linux
【Shell 命令集合 网络通讯 】Linux 设置和管理网络接口配置信息 netconfig命令 使用指南
【Shell 命令集合 网络通讯 】Linux 设置和管理网络接口配置信息 netconfig命令 使用指南
56 1
|
18天前
|
网络协议 Linux
在Linux中,管理和配置网络接口
在Linux中管理网络接口涉及多个命令,如`ifconfig`(在新版本中被`ip`取代)、`ip`(用于网络设备配置)、`nmcli`(NetworkManager的CLI工具)、`nmtui`(文本界面配置)、`route/ip route`(处理路由表)、`netstat/ss`(显示网络状态)和`hostnamectl/systemctl`(主机名和服务管理)。这些命令帮助用户启动接口、设置IP地址、查看连接和路由信息。不同发行版可能有差异,建议参考相应文档。
19 4
|
1天前
|
传感器 监控 物联网
PoE 交换机:为现代网络供电
【4月更文挑战第21天】
8 0
|
5天前
|
Ubuntu 网络协议 Linux
Linux(20) Ubuntu 20.04 网络接口自动切换路由配置
Linux(20) Ubuntu 20.04 网络接口自动切换路由配置
28 0
|
5天前
|
监控 索引
配置本地端口镜像示例(1:N,单个配置观察端口)
1:N镜像是指将单个镜像端口的报文复制到N个不同的观察端口,主要适用于将报文复制到不同监控设备进行分析处理的场合。 1:N镜像需要配置多个观察端口,连接不同的监控设备。观察端口有单个配置和批量配置两种方式,而且这两种方式可同时配置。观察端口组一般在1:N镜像时使用,既可以简化配置,还可以节约观察端口索引(一个观察端口组无论包含多少个端口,仅占用一个观察端口索引)。