我们有思科与M12PQ 12x40G创业板扩展卡Nexus开关。今天,当我在一个40G接口上启用sflow时,我得到了以下错误:
# sflow data-source interface e2/12
In order to enable sFlow sampling on North star front panel port(Ethernet2/12), please either carve both span and sflow tcam regions with non-zero sizes using the commands
'hardware access-list tcam region span <size>'
'hardware access-list tcam region sflow <size>'
or remove both span and sflow tcam regions and carve a span-sflow tcam region with a non-zero size using the commands 我目前使用的tcam如下所示:
# show hardware access-list resource utilization
slot 1
=======
INSTANCE 0x0
-------------
ACL Hardware Resource Utilization (Mod 1)
----------------------------------------------------------
Used Free Percent
Utilization
-------------------------------------------------------------------
Ingress IPv4 PACL 3 509 0.59
Ingress IPv4 Port QoS 4 252 1.56
Ingress IPv4 VACL 2 510 0.39
Ingress IPv4 RACL 221 291 43.16
Egress IPv4 VACL 3 509 0.59
Egress IPv4 RACL 3 253 1.17
SUP COPP 205 51 80.08
SUP COPP Reason Code TCAM 6 122 4.69
Redirect 2 510 0.39
SPAN 21 235 8.20
VPC Convergence 1 255 0.39
LOU 2 22 8.33
Both LOU Operands 2
Single LOU Operands 0
LOU L4 src port: 1
LOU L4 dst port: 1
LOU L3 packet len: 0
LOU IP tos: 0
LOU IP dscp: 0
LOU ip precedence: 0
LOU ip TTL: 0
TCP Flags 0 16 0.00
Protocol CAM 2 244 0.81
Mac Etype/Proto CAM 0 14 0.00
L4 op labels, Tcam 0 0 1023 0.00
L4 op labels, Tcam 2 1 62 1.58
L4 op labels, Tcam 6 0 2047 0.00
Ingress Dest info table 0 512 0.00
Egress Dest info table 0 512 0.00
INSTANCE 0x1
-------------
ACL Hardware Resource Utilization (Mod 1)
----------------------------------------------------------
Used Free Percent
Utilization
-------------------------------------------------------------------
Ingress NS IPv4 Port QoS 1 255 0.39
Ingress NS IPv4 L3 QoS 1 255 0.39
Ingress NS IPv4 VLAN QoS 1 255 0.39
LOU 0 24 0.00
Both LOU Operands 0
Single LOU Operands 0
LOU L4 src port: 0
LOU L4 dst port: 0
LOU L3 packet len: 0
LOU IP tos: 0
LOU IP dscp: 0
LOU ip precedence: 0
LOU ip TTL: 0
TCP Flags 0 16 0.00
Protocol CAM 0 246 0.00
Mac Etype/Proto CAM 0 14 0.00
L4 op labels, Tcam 0 0 7 0.00
L4 op labels, Tcam 2 0 7 0.00
L4 op labels, Tcam 6 0 2047 0.00
Ingress Dest info table 0 512 0.00
Egress Dest info table 0 512 0.00现在的问题是,为什么在上面的输出中没有看到任何span或sflow区域,我在这里有哪些选项可以让它工作呢?
发布于 2020-10-22 15:24:50
#溶液
在这个平台中,sflow默认分配了零0 tcam片。
sFlow尺寸
# show hardware access-list tcam region | grep "sFlow ACL"
sFlow ACL [sflow] size = 0
SPAN+sFlow ACL [span-sflow] size = 0跨距TCAM尺寸
# show hardware access-list tcam region | grep "SPAN"
SPAN [span] size = 256
SPAN+sFlow ACL [span-sflow] size = 0如果您没有使用SPAN端口的计划,那么您可以从span中获取256片,并将其分配给sflow。
# hardware access-list tcam region span 0
# hardware access-list tcam region sflow 256在重新启动/重新启动交换机之后,您可以看到以下结果
# show hardware access-list tcam region | grep -i sflow
sFlow ACL [sflow] size = 256
SPAN+sFlow ACL [span-sflow] size = 0现在您可以使用sFlow了
https://networkengineering.stackexchange.com/questions/58244
复制相似问题