Cisco Nexus 9396PX 平台的 sFlow 配置 tcam 问题

网络工程 思科 网络 摄像头
2021-07-15 15:44:52

我正在尝试在 Nexus 9396PX 交换机上配置 sflow,但在理解 tcam 区域时遇到了一些困难。

hardware access-list tcam region span-sflow 256
!
feature sflow
sflow counter-poll-interval 30
sflow collector-ip 10.30.0.91 vrf management
sflow collector-port 9995
sflow agent-ip 172.30.0.26

当我启用我的port-channel1(这是 GEM 模块上的 4x40G 端口包)

sflow data-source interface port-channel1

当我运行“show run sflow”来验证配置时,我在那里看不到“sflow data-source interface port-channel1”行。

N9K(config)# show run sflow

!Command: show running-config sflow
!Running configuration last done at: Tue Apr 13 14:24:00 2021
!Time: Tue Apr 13 14:24:58 2021

version 9.3(6) Bios:version 07.68
feature sflow

sflow counter-poll-interval 30
sflow collector-ip 10.30.0.91 vrf management
sflow collector-port 9995
sflow agent-ip 172.30.0.26

对于实验,我尝试添加Ethernet 1/1 (10G 端口)并且有效,我可以看到在“show run”中看起来不支持 40G Gem 模块。所以我用谷歌搜索并在思科网站上找到了这个

确保为以下设备上要配置为 sFlow 数据源的任何上行链路端口配置 sFlow 和 SPAN ACL TCAM 区域大小:Cisco Nexus 9332PQ、9372PX、9372TX 和 93120TX 交换机以及 Cisco Nexus 9396PX、9396TX、和带有 N9K-M6PQ 或 N9K-M12PQ 通用扩展模块 (GEM) 的 93128TX 交换机。

问题,我在交换机上可以看到的所有 SPAN ACL 区域是什么,SPAN ACL 是 ing-l2-span-filter 还是 ing-l3-span-filter ?

hardware access-list tcam region span 0
hardware access-list tcam region ing-l2-span-filter 0
hardware access-list tcam region ing-l3-span-filter 0
hardware access-list tcam region ipv6-span-udf 0
hardware access-list tcam region ipv6-span-l2-udf 0
hardware access-list tcam region span-sflow 256
1个回答

这是解决方案,我们需要tcamspansflow256 大小,所以我取了vPC切片并将其分配给span区域(注意:以下解决方案仅适用于 40G 接口,如果您使用 10G 作为数据源,则无需执行任何操作)

hardware access-list tcam region vpc-convergence 0
hardware access-list tcam region sflow 256
hardware access-list tcam region span 256

现在我可以使用端口通道(4x40G 包)

feature sflow

sflow counter-poll-interval 30
sflow collector-ip 172.29.0.91 vrf management
sflow collector-port 9995
sflow agent-ip 172.29.0.236

sflow data-source interface port-channel1

流量统计

N9K# show sflow
sflow sampling-rate : 4096
sflow max-sampled-size : 128
sflow counter-poll-interval : 30
sflow max-datagram-size : 1400
sflow collector-ip : 172.29.0.91 , vrf : management
sflow collector-port : 9995
sflow agent-ip : 172.29.0.236
sflow data-source interface port-channel1

N9K# show sflow statistics
Total Packets        : 4921
Total Samples        : 0
Processed Samples    : 0
Dropped Samples      : 0
Sent Datagrams       : 39
Dropped Datagrams    : 0