命令手冊(cè)流量監(jiān)控操作命令_第1頁(yè)
命令手冊(cè)流量監(jiān)控操作命令_第2頁(yè)
命令手冊(cè)流量監(jiān)控操作命令_第3頁(yè)
命令手冊(cè)流量監(jiān)控操作命令_第4頁(yè)
命令手冊(cè)流量監(jiān)控操作命令_第5頁(yè)
免費(fèi)預(yù)覽已結(jié)束,剩余24頁(yè)可下載查看

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、目錄第1章鏡像命1monitormonitormonitor1erface121.4show 2第2章RSPAN配置命目錄第1章鏡像命1monitormonitormonitor1erface121.4show 2第2章RSPAN配置命12.1remote-1monitormonitorremote11第3章sFlow命13.1sflowagent-13.213.3sflow 1sflowdata-2sflow2sflowheader-2sflow3sflow3show3第4章IPFIX配置命14.11clearipfixclearipfixistic2erface24.4collect24.

2、5collect33debug3414ipfixapply5ipfix5ipfix5ipfix4ipfixapply5ipfix5ipfix5ipfix64.14ipfix6ipv47ipv67matchdatalinkether-7matchdatalink8matchdatalink8match9matchipv4-9matchipv6flow-9matchipv6-104.24101012setpacket-12showipfix124.29show erface13showipfix14showipfix15showipfixshowipfixshowipfix15istic16erf

3、ace1617udp17第5章ERSPAN配置命15.1monitordestination121第1像命1.1monitortx|sourceerfaceerface-list|cpuslotnomonitorsourceerfaceerface-list|cpuslot 表,支持“-;cpu slot CPU ,1第1像命1.1monitortx|sourceerfaceerface-list|cpuslotnomonitorsourceerfaceerface-list|cpuslot 表,支持“-;cpu slot CPU ,CPU 4配置;rx為鏡像源端口接收的流量;tx為鏡像從源端

4、口發(fā)出的流量;both為鏡像源端口入流量及接收流量。如果不指定rx|tx|bothboth1/0/1-41/0/5 1 1 erfaceethernet1/0/1-4erfaceethernet1/0/51.2monitorerfaces-monitor nomonitor source erface erface-list s-list sourceerface s-list 值,目前支持1-4;erface-list 為鏡像源端口列表 rx tx both 2設(shè)置鏡像端口1/0/6符合規(guī)則120 2 erface1/0/6s-list12011.3monitor命令:monitor erf

5、aceerfacenomonitor 11.3monitor命令:monitor erfaceerfacenomonitor 舉例:設(shè)置鏡像目的端口為1/0/7。 Switch(config)#monitor ses1destinationerfaceethernet1.4show命令:show口鏡像,CPUMac鏡像,只在支持的板Mac。Switch#show2RSPAN2.1remote- vlanRSPANvlannoRSPANvlan。命令模式:vlan配置模式。 建專(zhuān)屬的RSPAN vlanvlanrspan vlan2RSPAN2.1remote- vlanRSPANvlannoR

6、SPANvlan。命令模式:vlan配置模式。 建專(zhuān)屬的RSPAN vlanvlanrspan vlanvlan RSPAN 2.2monitorremote命令:monitorremotevlannomonitorremotemirror 使用指南:通過(guò)本命令將本地mirror 的ses在被鏡像的數(shù)據(jù)打上RSPAN tag。 1remotevlan2.3monitorreflector-命令:monitorreflector-port nomonitor 。2RSPAN 令。通過(guò)no2RSPAN 令。通過(guò)nostrunkRSPAN VLANcputx方向鏡像時(shí),反射端口必須配置為trunkR

7、SPANVLAN的數(shù) vlan tagabort MTU 1reflector-port3sFlow第3sFlow3.1sflowagent- nosflowagent-sFlow 使用指南,類(lèi)似于OSPF或者BGP中的RouterID,但是并sFlow3sFlow第3sFlow3.1sflowagent- nosflowagent-sFlow 使用指南,類(lèi)似于OSPF或者BGP中的RouterID,但是并sFlow 3.2no yzeryzersFlow使用的分析器。nosflow參數(shù):sflowtrendon Sflowtrend yzer3.3sflow命令:sflowervalnosf

8、low e1/0/1 20 秒。 erval3sFlow3.4sflowdata-命令:sflowdata-lenlength-nosflowdata-sFlow報(bào)文中允許的最大數(shù)據(jù)長(zhǎng)度,no命令恢復(fù)為默認(rèn)值。參數(shù):5001470。1400。sFlow分組發(fā)送出去,sFlowmac 3sFlow3.4sflowdata-命令:sflowdata-lenlength-nosflowdata-sFlow報(bào)文中允許的最大數(shù)據(jù)長(zhǎng)度,no命令恢復(fù)為默認(rèn)值。參數(shù):5001470。1400。sFlow分組發(fā)送出去,sFlowmac IP sFlow1000。 Switch(Config-If-Etherne

9、t1/0/2)#sflow data-len 10003.5sflow nosflowIPIP 地址,則使用端口的配置,否則使用全局的配置。no Switch(config)#sflowdestination192.168.1.2003.6sflowheader- nosflowheader-sFlow CPUIPv4 IPv6 報(bào)文,那么要將分組sFlow 報(bào)文中發(fā)送出去,拷貝內(nèi)容的內(nèi)容長(zhǎng)度由本命令配置。sFlow 3sFlow3.7sflow nosflowsFlow從硬件收?qǐng)?bào)文時(shí)的優(yōu)先級(jí)。no命令恢復(fù)為默認(rèn)值。參數(shù):03。0。3sFlow3.7sflow nosflowsFlow從硬件收

10、報(bào)文時(shí)的優(yōu)先級(jí)。no命令恢復(fù)為默認(rèn)值。參數(shù):03。0。CPU時(shí),其優(yōu)先級(jí)不應(yīng)該配得太高,以免影響其它協(xié)議 3.8sflow命令:sflowrateinputinput-rate|outputoutput-rate no sflow rate input | outputsFlow 在硬件采樣時(shí)的采樣速率。No 命令刪除采樣速率值。 egress100016383500。 Switch(Config-If-Ethernet1/0/1)#sflow rate input 10000 3.9show命令:showsFlow的配置狀態(tài)。 Switch#showSflowAgent address is

11、 172.16.1.100 CollectorportisSl 3sFlowSflowDataSource:type2,index194(Ethernet1/0/2) Collector address is 192.168.1.200 erval is Slerateisinput0,output 43sFlowSflowDataSource:type2,index194(Ethernet1/0/2) Collector address is 192.168.1.200 erval is Slerateisinput0,output 4Sflow表示sFlow的為Agentaddressis

12、sFlow采 Collectorportis riorityis Sflow DataSource: type 2, index sFlow 一個(gè)采樣太網(wǎng),接口的index 為194CollectoraddressisE1/0/1接口上采CollectorportisE1/0/1接口采ervalisE1/0/120le rate is input 10000, output E1/0/1 接口采樣行egress 流采樣lepacketmaxlenisE1/0/1接口采樣超過(guò)1400 個(gè)字節(jié)leheadermaxlenisE1/0/1 接口采樣長(zhǎng)度為50le is 發(fā)出的sFlow分組的data

13、gram第4IPFIX配置4.1 normal|tcp-end-nocacheentries|timeoutactive|inactive| 的第4IPFIX配置4.1 time1- time2- 1 time3-time4-timeout inactive time1-time2-time3-time4-1秒(160120320cache cache命令模式:ipfixmonitor配置模式。缺省情況: cachetypemonitorcachemonitor當(dāng)前沒(méi)有被應(yīng)用于任何端口。monitor 已應(yīng)用于端口,則需先將其從端口上取消應(yīng)用。monitorcache 。Switch(Conf

14、ig)# ipfix monitor my-ipfix-monitor Switch(Config-ipfix-monitor)# cache entries item2 Switch(Config-ipfix-monitor)#cachetimeoutactivetime1 monitorcacheSwitch(Config)# ipfix monitor my-ipfix-monitor Switch(Config-ipfix-monitor)#cacheentriesitem1 cachetypemonitorcachemonitor當(dāng)前沒(méi)有被應(yīng)用于任何端口。monitor 已應(yīng)用于端口

15、,則需先將其從端口上取消應(yīng)用。monitorcache 。Switch(Config)# ipfix monitor my-ipfix-monitor Switch(Config-ipfix-monitor)# cache entries item2 Switch(Config-ipfix-monitor)#cachetimeoutactivetime1 monitorcacheSwitch(Config)# ipfix monitor my-ipfix-monitor Switch(Config-ipfix-monitor)#cacheentriesitem1 4.2clearipfixis

16、tic命令:clearipfix Switch#clearipfixisticexporterexport-to-4.3clearipfixerface命令:clearipfixerfaceethernet Switch#clearipfixerfaceethernet4.4collect命令:collect counter bytes | packets nocollectcounterbytes|packets命令模式:ipfix record 配置模式。Switch(Config)#ipfixrecordapp- 4.5collectsys-命令:collect| nocollect|命

17、令模式:ipfix record 配置模式。Switch(Config)#ipfixrecordapp- 命令模式:ipfix record 配置模式。Switch(Config)#ipfixrecordapp- 4.5collectsys-命令:collect| nocollect|命令模式:ipfix record 配置模式。Switch(Config)#ipfixrecordapp- 4.6命令:dealnon-discard|discard|no 命令模式:ipfixmonitor Switch(Config)#ipfixmonitormy-ipfix- 4.7debug命令:debu

18、gipfixmonitor|nodebugipfixmonitor| debug Switch#debugipfix4.8命令:descriptionstring no descriptionnodebugipfixmonitor| debug Switch#debugipfix4.8命令:descriptionstring no descriptionler參數(shù):128個(gè)字符。命令模式:ipfix monitor 配置模式ipfixexporteripfixrecordipfixlermonitorSwitch(Config)#ipfixmonitormy-ipfix-Switch(Conf

19、ig-ipfix-monitor)#descriptionusedformonitoringallpackets4.9命令:exporter noexportername 參數(shù):exporter32字節(jié)的字符串。命令模式:ipfix monitor 模式。monitorexporteripfixexporter 信息可以輸出到多個(gè)設(shè)備。目前,一個(gè)monitorexporterexport-to-server。 Switch(Config)# ipfix monitor my-ipfix-monitor 4.10ipfixapply命令:ipfixapplymonitorlerler-namei

20、nput|ler-nameinput|noipfixapplymonitor ler參數(shù):monitor 4.10ipfixapply命令:ipfixapplymonitorlerler-nameinput|ler-nameinput|noipfixapplymonitor ler參數(shù):monitor monitor sler ler-name lermonitor leripfix monitor ipfix ler 采樣到的會(huì)被ipfix 。對(duì)于每個(gè)端口,輸入和輸出方向都只能設(shè)置一個(gè)ipfixmonitor erfaceethernetSwitch(Config-If-Ethernet1/

21、0/2)# ipfix apply monitor my-ipfix-monitor ler 4.11ipfix命令:ipfix exporter noipfixexporternameexporter或修改已存在的exporteripfix exporter配置參數(shù):exporter32字節(jié)的字符串。512exporterexporterIPv4源/目的 exportermonitor在使用它。重復(fù)配置將覆蓋原有配Switch(Config)#ipfixexporterexport-to-server 4.12ipfix命令:ipfixmonitornoipfixmonitor參數(shù):moni

22、tor32字節(jié)的字符串。 apply 命令將其從端口上刪除。Switch(Config)#ipfixmonitormy-ipfix-monitor 4.13ipfix命令:ipfix record noipfixrecordnamerecord參數(shù):monitor32字節(jié)的字符串。 apply 命令將其從端口上刪除。Switch(Config)#ipfixmonitormy-ipfix-monitor 4.13ipfix命令:ipfix record noipfixrecordnamerecordrecordipfixrecord配置模式。參數(shù):record 32 字節(jié)的字符串。 Switch

23、(Config)#ipfixrecordapp-4.14ipfix命令:ipfixlernoipfixlerler ler ler 512ipfix Switch(Config)#ipfixler4.15ipv4命令:ipv4destinationipv4-addresssourceipv4-address no ipv4 destination 命令模式:ipfixexporterIPv4地址。4.15ipv4命令:ipv4destinationipv4-addresssourceipv4-address no ipv4 destination 命令模式:ipfixexporterIPv4地

24、址。輸出到172.16.1.1。 Switch(Config)#ipfixexporterexport-to-server 4.16ipv6命令:ipv6destinationipv6-addresssourceipv6-noipv6 命令模式:ipfixexporterIPv6地址。Switch(Config)#ipfixexporterexport-to-Switch(Config-ipfix-exporter)#ipv6destination2001:1source4.17matchdatalinkether-命令:match datalink ether-type nomatchdat

25、alinkether-typeether-type值作為關(guān)鍵字。命令模式:ipfixrecord KEY若沒(méi)有配置selectipv4和selectipv6select selectipv6IPv6IPv6關(guān)鍵字匹配,其它報(bào)文使用此關(guān)鍵字進(jìn)行匹配;若IPv6關(guān)鍵字匹配,non-IP 報(bào)文使用此關(guān)鍵字匹配。 Switch(Config)#ipfixrecordapp- 4.18matchdatalink命令:match datalink mac destination-address | source-address nomatchdatalinkmacdestination-address|s

26、ource-addressMACSwitch(Config)#ipfixrecordapp- 4.18matchdatalink命令:match datalink mac destination-address | source-address nomatchdatalinkmacdestination-address|source-addressMAC參數(shù):destination-addressMAC 字段。命令模式:ipfix record 配置模式。 KEY若沒(méi)有配置selectipv4和selectipv6select selectipv6IPv6IPv6關(guān)鍵字匹配,其它報(bào)文使用此關(guān)鍵

27、字進(jìn)行匹配;若IPv6關(guān)鍵字匹配,non-IP 報(bào)文使用此關(guān)鍵字匹配。 Switch(Config)#ipfixrecordapp- 4.19matchdatalink命令:matchdatalinkvlanid|nomatchdatalinkvlanid| 參數(shù):vlanidvlanidvlanpriorityvlanpriority值。命令模式:ipfix record 配置模式。non-IP(L2-KEY若沒(méi)有配置selectipv4和selectipv6select selectipv6IPv6IPv6關(guān)鍵字匹配,其它報(bào)文使用此關(guān)鍵字進(jìn)行匹配;若IPv6關(guān)鍵字匹配,non-IP 報(bào)文使

28、用此關(guān)鍵字匹配。vlanidSwitch(Config)#ipfixrecordapp- 4.20match命令:match ip protocol | tos | destination-port | source-port nomatchipprotocol|tos|destination-port|source-portIP報(bào)文頭字段作為關(guān)鍵字。若選擇的選項(xiàng)多于一個(gè),此命令可配置參數(shù):protocolIPv4protocolIPv6 next-header字4.20match命令:match ip protocol | tos | destination-port | source-po

29、rt nomatchipprotocol|tos|destination-port|source-portIP報(bào)文頭字段作為關(guān)鍵字。若選擇的選項(xiàng)多于一個(gè),此命令可配置參數(shù):protocolIPv4protocolIPv6 next-header字 命令模式:ipfixrecord配置模式。KEYIPv4 select ipv6IPv6 報(bào)文有效。 Switch(Config)#ipfixrecordapp-Switch(Config-ipfix-record)#matchip4.21matchipv4-命令:matchipv4-maskdestinationmask-lengthsourcem

30、ask-length no match ipv4-mask sourceIPv4源地址。命令模式:ipfix record 配置模式。 KEY Switch(Config)#ipfixrecordapp-Switch(Config-ipfix-record)#matchipv4-maskdestination24source4.22matchipv6flow-命令:match ipv6 flow-label nomatchipv6flow-labelIPv6flow-lable字段作為關(guān)鍵字。命令模式:ipfixrecord KEY Switch(Config)#ipfixrecordapp-

31、 4.23matchipv6-命令:matchipv6-prefixdestinationprefix-lengthsourceprefix-length no match ipv6-prefix KEY Switch(Config)#ipfixrecordapp- 4.23matchipv6-命令:matchipv6-prefixdestinationprefix-lengthsourceprefix-length no match ipv6-prefix sourceIPv6源地址。命令模式:ipfix record 配置模式。使用指南:對(duì)于 IPv6 報(bào)文,采用此關(guān)鍵字進(jìn)行匹配。此命令是

32、 IPv6 KEY Switch(Config)#ipfixrecordapp-Switch(Config-ipfix-record)#matchipv6-prefixdestination64source4.24命令:ratenumber no rate參數(shù): 1/NN個(gè)報(bào)文采一個(gè)(不區(qū)分報(bào)文類(lèi)型命令模式:ipfixlerSwitch(Config)#ipfixlerler)#rate4.25命令:recordname|default-setipv4|ipv6|l2|ipv4-ipv6|ipv4-l2|ipv6-no :record 32 record 的定義必須已存在; IPv4IPv4I

33、Pv6IPv6的基:record 32 record 的定義必須已存在; IPv4IPv4IPv6IPv6的基Source IPAddressDestinationIPAddressProtocolTosL4 Source PortL4 Destination PortIPv4 IPv4 L2 的關(guān)鍵字,L2 的關(guān)鍵字默認(rèn)情況下只有端口;SourceIPv6Address, DestinationIPv6Address, Next Header, Tos, L4 Source Port, L4 Destination Port, IPv6 Flow LabelIPv6 IPv6 的基本流關(guān)鍵字

34、,對(duì)L2 的關(guān)鍵字,L2 的關(guān)鍵字默認(rèn)情況下只有端口;record default-set l2L2 的基本流關(guān)鍵字,它的基本流關(guān)鍵字包括以下六個(gè):Port, SourceMACAddressDestinationMACAddressVLAN IDVLAN PriorityEtherTypeL2 的基本流關(guān)鍵字; IPv4IPv6IPv6的基本流關(guān)鍵字,對(duì)于其它報(bào)文,使L2 的關(guān)鍵字,L2 的關(guān)鍵字默認(rèn)情況下只有端口;record default-set ipv4-l2IPv4L2IPv4 record default-set ipv6-l2IPv6L2IPv6IPv6L2的基本流關(guān)鍵字。命令

35、模式:ipfix monitor 配置模式。monitor recordmonitor 沒(méi)有被應(yīng)用于任何端口。 Switch(Config)#ipfixmonitormy-ipfix- IPv4IPv6Switch(Config)#ipfixmonitormy-ipfix- Switch(Config)#ipfixmonitormy-ipfix- 4.26命令:selectipv4|noselectipv4| ipv6ipv6關(guān)鍵字。命令模式:ipfix record 配置模式。 命令可配置多次。在配置該命令后,match ip/match ipv4-mask/match ipv6-mask等

36、命令的配IPv4IPv6Switch(Config)#ipfixrecordapp-4.26命令:selectipv4|noselectipv4| ipv6ipv6關(guān)鍵字。命令模式:ipfix record 配置模式。 命令可配置多次。在配置該命令后,match ip/match ipv4-mask/match ipv6-mask等命令的配IPv4IPv6Switch(Config)#ipfixrecordapp-Switch(Config-ipfix-record)#selectipv4 4.27setpacket-命令:setpacket-typeipv4|ipv6|nosetpacket

37、-typeipv4|ipv6|IPv4IPv6non-IP命令模式:ipfixmonitor端口已配置類(lèi)型的報(bào)文,對(duì)其它類(lèi)型的報(bào)文不處理。需要與select ipv4 | ipv6命令I(lǐng)Pv4non-IPSwitch(Config)# ipfix monitor my-ipfix-monitor Switch(Config-ipfix-monitor)#setpacket-typeipv4 4.28showipfix ipfix 參數(shù):exporter32個(gè)字符。如果不提供exporter 的信息。Switch#showipfixexporterexport-to-server IPFIX E

38、xporter export-to-server: Description: User definedNo. of monitor users: 1 No. of port users: 1 TransportConfiguration:DestinationIPv4/IPv6address:172.16.1.1 Source IPv4/IPv6 address: 172.16.6.2 Transport Protocol: UDPDestinationPort:Refreshrate:1204.29showerface命令:showerfaceethernet Switch#showipfi

39、xexporterexport-to-server IPFIX Exporter export-to-server: Description: User definedNo. of monitor users: 1 No. of port users: 1 TransportConfiguration:DestinationIPv4/IPv6address:172.16.1.1 Source IPv4/IPv6 address: 172.16.6.2 Transport Protocol: UDPDestinationPort:Refreshrate:1204.29showerface命令:s

40、howerfaceethernet Switch#showerfaceetherneterfacemonitor:my-flow-monitor monitor direction: output lerIPFIXexporter No.ofmonitorusers: No.ofportportDestinationIPv4/IPv6IPFIXIPv4IPv6SourceIPv4/IPv6IPFIXIPv4IPv6 Refresh4.30showipfix Switch#showipfixmonitormy-ipfix-monitor IPFIX Monitor my-ipfix-monito

41、r: Description: User definedNo.ofportusers:IPFIXrecord:app-4.30showipfix Switch#showipfixmonitormy-ipfix-monitor IPFIX Monitor my-ipfix-monitor: Description: User definedNo.ofportusers:IPFIXrecord:app-IPFIXexporterIPFIXexporter:export-to-server InactiveTimeout:60seconds Active Timeout: 10 minutes Si

42、ze: 4096 entriesDealtype:non-Packettype:IPFIXmonitormonitorNo.ofport monitorportIPFIXmonitorIPFIXexportermonitorexporterIPFIXmonitorexporter ActiveDealPacketerface monitor報(bào)4.31showipfix命令:showipfixrecordrecord- Switch#showipfixrecordapp-IPFIXrecordapp-Description:Thisipfixrecord4.31showipfix命令:showipfixrecordrecord- Switch#showipfixrecordapp-IPFIXrecordapp-Description:Thisipfixrecordtracksapplicationusage No. of monitor users: 1No.ofportusers:1 selectmatchipv4-maskdestination24source0 match ip source-portmatchipdestination-collectcollectc

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論