取消
显示结果 
搜索替代 
您的意思是: 
cancel
4340
查看次数
0
有帮助
3
回复

cisco 2960X配置FLOW后监控端无法接收

Wade_hCddU
Level 1
Level 1
我监控FLOW服务器无法接收到来自2960X的 FLOW配置如下。
flow record test
description ipv4flow
match ipv4 source address
match ipv4 destination address
match flow direction
collect transport tcp flags
collect interface output
collect counter bytes long
collect timestamp absolute first
!
!
flow exporter ExportTest
description ExportV9
destination 10.1.2.112
source Vlan2
ttl 210
transport udp 9996
template data timeout 60
!
!
flow monitor MonitorTest
description ipv4 Monitor
exporter ExportTest
cache timeout active 60
record test
!
!
sampler SampleTest
description samples
mode random 1 out-of 1022
interface Vlan1
ip flow monitor MonitorTest input
ip address 192.168.1.253 255.255.255.0
end
Switch# sh run interface vlan 2
Building configuration...
Current configuration : 94 bytes
!
interface Vlan2
ip flow monitor MonitorTest input
ip address 10.1.2.55 255.255.255.0
end
3 条回复3

18653465190
Spotlight
Spotlight
10.1.2.112是目标地址,192.168.1.253这个是镜像端口,那么10.1.2.55是接受端口?还是10.1.2.X的网关呢???

When configuring a flow, you need to have the protocol, source port, destination port, first and last timestamps, and packet and bytes counters defined in the flow record. Otherwise, you will get the following error message: "Warning: Cannot set protocol distribution with this Flow Record. Require protocol, source and destination ports, first and last timestamps and packet and bytes counters."
照着配置示例来一遍呢?
Example: Configuring a Flow
This example shows how to create a flow and apply it to an interface:
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# flow export export1
Switch(config-flow-exporter)# destination 10.0.101.254
Switch(config-flow-exporter)# transport udp 2055
Switch(config-flow-exporter)# exit
Switch(config)# flow record record1
Switch(config-flow-record)# match ipv4 source address
Switch(config-flow-record)# match ipv4 destination address
Switch(config-flow-record)# match ipv4 protocol
Switch(config-flow-record)# match transport source-port
Switch(config-flow-record)# match transport destination-port

Switch(config-flow-record)# collect counter byte long
Switch(config-flow-record)# collect counter packet long
Switch(config-flow-record)# collect timestamp absolute first
Switch(config-flow-record)# collect timestamp absolute last
Switch(config-flow-record)# exit
Switch(config)# flow monitor monitor1
Switch(config-flow-monitor)# record record1
Switch(config-flow-monitor)# exporter export1
Switch(config-flow-monitor)# exit
Switch(config)# interface tenGigabitEthernet 1/0/1
Switch(config-if)# ip flow monitor monitor1 input
Switch(config-if)# end
https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960x/software/15-2_5_e/configuration_guide/b_1525e_consolidated_2960x_cg/b_1525e_consolidated_2960x_cg_chapter_011010.html
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rps-Cheers | If it solves your problem, please mark as answer. Thanks !

Wade_hCddU
Level 1
Level 1
谢谢感觉还是缺那里
入门指南

使用上面的搜索栏输入关键字、短语或问题,搜索问题的答案。

我们希望您在这里的旅程尽可能顺利,因此这里有一些链接可以帮助您快速熟悉思科社区:









快捷链接