13_流量监控操作命令

目录
第1章镜像命令.............................................................. 1-1
1.1 monitor session . 1-1
1.2 monitor session source 1-1
1.3 monitor session destination interface ........................................... 1-2
1.4 1-2第2章RSPAN配置命令................................................. 2-1
2. 2-1
2.2 monitor session 2-1
2.3 monitor session reflector-port ........................................................ 2-1第3章sFlow命令........................................................... 3-1
3.1 sflow agent-address ......................................................................... 3-1
3.2 3-1
3.3 3-1
3.4 3-2
3.5 . 3-2
3.6 3-2
3.7 . 3-3
3.8 3-3
3.9 show sflow ......................................................................................... 3-3第4章IPFIX配置命令 .................................................... 4-1
4. 4-1
4.2 clear ipfix statistic exporter ............................................................. 4-2全民公决
4.3 clear ipfix statistic 4-2
4.4 4-2
4.5 collect timestamp sys-uptime ......................................................... 4-3
4. 4-3
4.7 4-3
4.8 description ......................................................................................... 4-4
4.9 exporter .............................................................................................. 4-4 4.10 ipfix 4-5 4.11 4-5 4.12 4-5 4.13 4-6 4.14 ipfix sampler .................................................................................... 4-6 4.15 . 4-7 4.16 . 4-7 4.17 match datalink ether-type .............................................................. 4-7 4.18 match
.................... 4-8 4.19 match 4-8 4.20 4-8 4.21 4-9 4.22 match 4-9 4.23 match ipv6-prefix .......................................................................... 4-10 4.24 rate .................................................................................................. 4-10 4. 4-10 4. 4-11 4.27 set packet-type .............................................................................. 4-12 4.28 show ipfix exporter ....................................................................... 4-12 4.29 show ipfix 4-13 4.30 show ipfix monitor ........................................................................ 4-14 4.31 show 4-14 4.32 show . 4-15 4.33 show ipfix statistic exporter ........................................................ 4-16 4.34 show ipfix statistic 4-16 4. 4-17 4.36 4-17
第1章镜像命令
1.1 monitor session source interface
命令:monitor session <session> source{interface <interface-list>| cpu [slot <slotnum> ]}{rx| tx| both}
no monitor session <session> source{interface <interface-list>| cpu [slot <slotnum> ]} 功能:指定镜像源端口;本命令的no操作为删除镜像源端口。
参数:<session>为镜像session值,端口镜像目前支持1-4;<interface-list>为镜像源端口列表,支持“-”、“;”等特殊字符;cpu slot<slotnum>表示以某个插槽上板卡CPU作为镜像源,可以镜像该CPU收到或者发出的流量(调试用),CPU镜像目前只支持在session 4配置;rx为镜像源端口接收的流量;tx为镜像从源端口发出的流量;both为镜像源端口入和出的流量。
命令模式:全局配置模式。
使用指南:本命令设置镜像的源端口,交换机对镜像源端口没有限制,可以是一个端口,也可以是多个端口,不仅能镜像源端口的发出和接收双向的流量,还能单独镜像源端口的发出流量及接收流量。如果不指定[rx|tx|both]关键字,缺省为both。当镜像多个端口时,多个源端口的方向可以不一致,但要分几次配置。
举例:设置镜像源端口为1/1-4的发出流量和1/5的接收流量。
Switch(config)#monitor session 1 source interface ethernet 1/1-4 tx
ldapSwitch(config)#monitor session 1 source interface ethernet1/5 rx
1.2 monitor session source interface access-list
命令:monitor session <session>source {interface <interface-list>} access-list <num> {rx|tx|both}
no monitor session <session> source {interface <interface-list>} access-list <num>
功能:指定流镜像源端口及应用规则;本命令的no操作为删除流镜像源端口。
巴尔扎克和他的老师
参数:<session> 为镜像session值,目前支持1-4;<interface-list> 为镜像源端口列表,支持‘-’、‘;’等特殊字符;<num> 为访问表标号;rx 为镜像源端口接收的流量;tx 为镜像源端口发出的流量;both 为镜像源端口入和出的流量。
命令模式:全局配置模式。
使用指南:本命令设置流镜像的源端口,交换机对流镜像源端口没有限制,可以是一个端口,也可以
是多个端口,流镜像只能镜像源端口接收的流量,参数可以为rx, tx, both。使用本命令之前必须保证已经创建相应的访问表,有关访问表创建请参见ACL配置。流镜像必须在创建该session目的端口之后创建。
举例:在session 2设置镜像端口1/6符合规则120的入口数据。
Switch(config)#monitor session 2 source interface 1/6 access-list 120 rx
1.3 monitor session destination interface
命令:monitor session<session> destination interface<interface-number>
no monitor session<session> destination interface<interface-number>
功能:指定镜像目的端口;本命令的no操作为删除镜像目的端口。
参数:<session>为镜像session值,目前支持1-4;<interface-number>为镜像目的端口。
缺省情况:无。
命令模式:全局配置模式。
使用指南:交换机支持4个镜像目的端口。需要注意的是,作为镜像目的端口不能是端口聚合组的成员,并且端口吞吐量最好大于或等于它所镜像的所有源端口的吞吐量的总和。取消某个session的镜像目的端口,该session之前设置的所有镜像通路将不存在,重新设置该session的镜像目的,端口、CPU镜像通路将恢复,需要注意的是流镜像须要在设置目的端口之后重新设置才能恢复。
举例:设置镜像目的端口为1/7。
Switch(config)#monitor session 1 destination interface ethernet 1/7
1.4 show monitor
命令:show monitor
功能:分别显示所有镜像session的镜像源、目的端口的信息。
命令模式:特权和配置模式。
使用指南:通过本命令可以显示当前设置的所有session的镜像源端口及目的端口,对于端口镜像,CPU镜像和流镜像并且能显示镜像源的镜像模式,对于Mac镜像,只在支持的板卡上显示所设置的镜像Mac。
举例:
Switch#show monitor
第2章RSPAN配置命令
2.1 remote-span
命令:remote-span
no remote-span
高校宣传
功能:将vlan设置成RSPAN vlan,此命令的no命令为删除RSPAN vlan。
参数:无。
命令模式:vlan配置模式。
缺省情况:缺省不配置。
使用指南:本命令用于将存在的vlan设置为rspan vlan。在使用RSPAN功能之前,要先创建专属的RS
PAN vlan,专用于转发RSPAN数据报文。由于默认情况下所有的端口都属于缺省vlan,在标记RSPAN vlan时禁止将缺省vlan、动态vlan、私有vlan、组播vlan、配置了三层接口的vlan等特殊vlan配置为rspan vlan。如果该vlan在取消了RSPAN特性后仍有session在使用,则session仍然可以正常工作,但是如果在取消了该vlan的RSPAN特性后又给该vlan配置三层接口,则有可能导致RSPAN session工作失效。
举例:
Switch(Config-Vlan5)#remote-span
2.2 monitor session remote vlan
命令:monitor session <session> remote vlan <vid>
no monitor session <.session> remote vlan
功能:将本地mirror的session设置成RSPAN,此命令的no命令为将RSPAN还原为本地mirror。
参数;<session>:session ID号,有效范围为1~4。<vid>:RSPAN vlan的id号。
命令模式:全局配置模式。
缺省情况:缺省不配置。
使用指南:通过本命令将本地mirror的session设置成rspan,此处的vlan id即为rspan vlan。在被镜像的数据打上RSPAN tag。
举例:
Switch(config)#monitor session 1 remote vlan 5
2.3 monitor session reflector-port
命令:monitor session <session> reflector-port <interface-number>
no monitor session <session> reflector-port <interface-number>
安丘地震功能:配置反射端口,此命令的no命令为删除反射端口。
参数:<session>:session ID号,有效范围为1~4。<interface-number>:端口号。
命令模式:全局配置模式。穴中人语
缺省情况:缺省不配置。

本文发布于:2024-09-21 19:51:10,感谢您对本站的认可!

本文链接:https://www.17tex.com/xueshu/612161.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:镜像   端口   命令   配置   目的   模式   缺省   设置
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议