• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

S6820-56HF 设备不支持vlanif流量的snmp统计

1小时前提问
  • 0关注
  • 0收藏,25浏览
粉丝:0人 关注:0人

问题描述:

H3C Comware Software, Version 7.1.070, Feature 6205P05

Copyright (c) 2004-2018 New H3C Technologies Co., Ltd. All rights reserved.

S6820-56HF 设备不支持vlanif流量的snmp统计吗?有什么办法支持吗?

3 个回答
粉丝:112人 关注:11人

应该是不支持,可以统计物理接口的


具体可以这里找找看:

https://www.h3c.com/cn/BizPortal/QueryMIB/cn_index.aspx

粉丝:7人 关注:9人

S6820-56HF在该版本下支持Vlanif流量的SNMP统计,需手动开启接口流量统计功能,操作步骤如下:
1. 开启Vlanif接口流量统计:
system-view
interface vlanif
traffic-statistics enable [interval <10-300>] //interval为统计周期,默认300秒
quit
2. 确认SNMP配置有效性:
配置SNMP访问权限(如snmp-agent community read
确保默认MIB视图已包含IF-MIB节点(默认已包含)
3. 验证:
执行display interface vlanif 查看Traffic Statistics状态为Enabled,且接口有流量统计
通过SNMP工具获取对应Vlanif的ifIndex,再查询IF-MIB的ifInOctets、ifOutOctets等OID值
操作前请备份配置,若仍无法获取数据,需排查SNMP客户端与设备的连通性、Vlanif接口是否有实际流量。

[HS-BWX-1H4LP04-38U-6820-46-Vlan-interface10]? Vlan-interface interface view commands: arp ARP module attack-defense Configure the attack defense function bandwidth Specify the expected bandwidth bfd BFD module bgp-policy Configure BGP policy-based accounting or QoS policy propagation blacklist Configure the blacklist function cfd Connectivity Fault Detection (CFD) module dci Data center interconnect mode ddns Dynamic Domain Name System (DDNS) module default Restore the default settings description Describe the interface dhcp Dynamic Host Configuration Protocol (DHCP) commands diagnostic-logfile Diagnostic log file configuration display Display current system information emulate-ping Emulate ping function enable Enable functions end Alias for 'return' exit Alias for 'quit' igmp Internet Group Management Protocol (IGMP) module ip Specify IP configuration ipsec IP Security module ipv6 Specify IPv6 configuration isis Configure interface parameters for IS-IS local-proxy-arp Specify local proxy ARP function for same interface local-proxy-nd Local ND proxy function lock Lock the current line logfile Log file configuration mac-address MAC address information mad Multi-active detection mirroring-group Specify mirroring group mld Multicast Listener Discovery (MLD) module monitor System monitor mpls Multiprotocol Label Switching (MPLS) module mtrace Configure the multicast traceroute mtu Specify Maximum Transmission Unit(MTU) of the interface multicast Multicast module no Alias for 'undo' ntp-service Network Time Protocol (NTP) module openflow OpenFlow module ospf OSPF module ospfv3 OSPFv3 interface commands packet-filter Packet filter settings pim Protocol Independent Multicast (PIM) module ping Ping function portal Portal authentication module private-vlan Private VLAN function proxy-arp Specify proxy ARP function proxy-nd ND proxy function quit Exit from current command view repeat Repeat executing history commands reset Reset operation return Exit to User View rip Configure interface parameters for RIP ripng Configure interface parameters for RIPng rsvp Resource Reservation Protocol (RSVP) module save Save current configuration security-logfile Security log file configuration service Specify the service slot show Alias for 'display' shutdown Shut down the interface tcp Specify TCP parameters of the interface tracert Tracert function udp-helper UDP helper function undo Cancel current setting vrrp Virtual Router Redundancy Protocol (VRRP) module web-redirect Web redirection function write Alias for 'save' xconnect Bind a VSI [HS-BWX-1H4LP04-38U-6820-46-Vlan-interface10] 没有相关指令,也不支持在vlan和vlanif 的sflow

zhiliao_lfNzWM 发表时间:56分钟前 更多>>

[HS-BWX-1H4LP04-38U-6820-46-Vlan-interface10]? Vlan-interface interface view commands: arp ARP module attack-defense Configure the attack defense function bandwidth Specify the expected bandwidth bfd BFD module bgp-policy Configure BGP policy-based accounting or QoS policy propagation blacklist Configure the blacklist function cfd Connectivity Fault Detection (CFD) module dci Data center interconnect mode ddns Dynamic Domain Name System (DDNS) module default Restore the default settings description Describe the interface dhcp Dynamic Host Configuration Protocol (DHCP) commands diagnostic-logfile Diagnostic log file configuration display Display current system information emulate-ping Emulate ping function enable Enable functions end Alias for 'return' exit Alias for 'quit' igmp Internet Group Management Protocol (IGMP) module ip Specify IP configuration ipsec IP Security module ipv6 Specify IPv6 configuration isis Configure interface parameters for IS-IS local-proxy-arp Specify local proxy ARP function for same interface local-proxy-nd Local ND proxy function lock Lock the current line logfile Log file configuration mac-address MAC address information mad Multi-active detection mirroring-group Specify mirroring group mld Multicast Listener Discovery (MLD) module monitor System monitor mpls Multiprotocol Label Switching (MPLS) module mtrace Configure the multicast traceroute mtu Specify Maximum Transmission Unit(MTU) of the interface multicast Multicast module no Alias for 'undo' ntp-service Network Time Protocol (NTP) module openflow OpenFlow module ospf OSPF module ospfv3 OSPFv3 interface commands packet-filter Packet filter settings pim Protocol Independent Multicast (PIM) module ping Ping function portal Portal authentication module private-vlan Private VLAN function proxy-arp Specify proxy ARP function proxy-nd ND proxy function quit Exit from current command view repeat Repeat executing history commands reset Reset operation return Exit to User View rip Configure interface parameters for RIP ripng Configure interface parameters for RIPng rsvp Resource Reservation Protocol (RSVP) module save Save current configuration security-logfile Security log file configuration service Specify the service slot show Alias for 'display' shutdown Shut down the interface tcp Specify TCP parameters of the interface tracert Tracert function udp-helper UDP helper function undo Cancel current setting vrrp Virtual Router Redundancy Protocol (VRRP) module web-redirect Web redirection function write Alias for 'save' xconnect Bind a VSI [HS-BWX-1H4LP04-38U-6820-46-Vlan-interface10] 没有相关指令,也不支持在vlan和vlanif 的sflow

zhiliao_lfNzWM 发表时间:56分钟前
粉丝:15人 关注:1人

S6820-56HF 这款交换机本身不支持通过 SNMP 统计 VLANIF 接口的流量。H3C 许多交换机都是如此,这是一个普遍的设计特性,并非设备型号或软件的局限或故障。

如果您需要监控 VLAN 层面的流量数据,建议使用基于数据流的 sFlow 采样监控或基于端口的 端口镜像分析 这两种方法,都能很好地实现监控目标。

具体的原理和替代方案如下:


 为什么 SNMP 无法统计 VLANIF 流量?

SNMP 统计流量的标准协议(如 IF-MIB)是为物理接口和三层层逻辑接口(如 VLANIF 接口本身)设计的。但是,跨 VLAN 路由转发的流量,实际上通过芯片内部的硬件处理,并不会被软件层面的 VLANIF 接口计数器一一记录,所以 SNMP 无法获取这个数据。这导致的结果就是,用 SNMP 查询 VLANIF 接口的 ifInOctets 等 OID(对象标识符)时,计数器始终为 0。


 替代方案:精确监控 VLAN 流量

既然 SNMP 层面无法直接获取 VLAN 路由的流量数据,我们可以通过以下三种替代技术对流量进行分析:

方案一:sFlow/NetStream 采样监控(推荐)

S6820 系列支持 sFlow 流量采样技术,它通过周期性数据包采样分析,可在支持 sFlow 的收集器上呈现 VLAN 流量分布。
优点:对设备性能影响小,是跨设备流量监控的行业标准实践。

方案二:端口镜像流量分析(SPAN)

通过 SPAN 功能将 VLAN 流量完整地复制到监控端口,再配合分析工具(如 Wireshark)进行深度解析。
优点:可进行全量捕捉和深度分析,适合故障诊断场景。

方案三:升级固件并验证 MIB 支持情况

首先访问 H3C 官网下载产品的最新固件,并通过版本发布说明确认是否有新增的 VLAN 流量统计功能。然后再自行验证 MIB 文件的 OID 树结构是否有效。
验证方法:使用 snmpwalk 工具查询 OID 节点 1.3.6.1.4.1.25506 下是否有关键性的 VLAN 流量数据。

提示:如果操作系统未预装 snmpwalk,可通过安装包(如 net-snmp-utils)进行安装。

[HS-BWX-1H4LP04-38U-6820-46-Vlan-interface10]? Vlan-interface interface view commands: arp ARP module attack-defense Configure the attack defense function bandwidth Specify the expected bandwidth bfd BFD module bgp-policy Configure BGP policy-based accounting or QoS policy propagation blacklist Configure the blacklist function cfd Connectivity Fault Detection (CFD) module dci Data center interconnect mode ddns Dynamic Domain Name System (DDNS) module default Restore the default settings description Describe the interface dhcp Dynamic Host Configuration Protocol (DHCP) commands diagnostic-logfile Diagnostic log file configuration display Display current system information emulate-ping Emulate ping function enable Enable functions end Alias for 'return' exit Alias for 'quit' igmp Internet Group Management Protocol (IGMP) module ip Specify IP configuration ipsec IP Security module ipv6 Specify IPv6 configuration isis Configure interface parameters for IS-IS local-proxy-arp Specify local proxy ARP function for same interface local-proxy-nd Local ND proxy function lock Lock the current line logfile Log file configuration mac-address MAC address information mad Multi-active detection mirroring-group Specify mirroring group mld Multicast Listener Discovery (MLD) module monitor System monitor mpls Multiprotocol Label Switching (MPLS) module mtrace Configure the multicast traceroute mtu Specify Maximum Transmission Unit(MTU) of the interface multicast Multicast module no Alias for 'undo' ntp-service Network Time Protocol (NTP) module openflow OpenFlow module ospf OSPF module ospfv3 OSPFv3 interface commands packet-filter Packet filter settings pim Protocol Independent Multicast (PIM) module ping Ping function portal Portal authentication module private-vlan Private VLAN function proxy-arp Specify proxy ARP function proxy-nd ND proxy function quit Exit from current command view repeat Repeat executing history commands reset Reset operation return Exit to User View rip Configure interface parameters for RIP ripng Configure interface parameters for RIPng rsvp Resource Reservation Protocol (RSVP) module save Save current configuration security-logfile Security log file configuration service Specify the service slot show Alias for 'display' shutdown Shut down the interface tcp Specify TCP parameters of the interface tracert Tracert function udp-helper UDP helper function undo Cancel current setting vrrp Virtual Router Redundancy Protocol (VRRP) module web-redirect Web redirection function write Alias for 'save' xconnect Bind a VSI [HS-BWX-1H4LP04-38U-6820-46-Vlan-interface10] 没有相关指令,也不支持在vlan和vlanif 的sflow

zhiliao_lfNzWM 发表时间:56分钟前 更多>>

[HS-BWX-1H4LP04-38U-6820-46-Vlan-interface10]? Vlan-interface interface view commands: arp ARP module attack-defense Configure the attack defense function bandwidth Specify the expected bandwidth bfd BFD module bgp-policy Configure BGP policy-based accounting or QoS policy propagation blacklist Configure the blacklist function cfd Connectivity Fault Detection (CFD) module dci Data center interconnect mode ddns Dynamic Domain Name System (DDNS) module default Restore the default settings description Describe the interface dhcp Dynamic Host Configuration Protocol (DHCP) commands diagnostic-logfile Diagnostic log file configuration display Display current system information emulate-ping Emulate ping function enable Enable functions end Alias for 'return' exit Alias for 'quit' igmp Internet Group Management Protocol (IGMP) module ip Specify IP configuration ipsec IP Security module ipv6 Specify IPv6 configuration isis Configure interface parameters for IS-IS local-proxy-arp Specify local proxy ARP function for same interface local-proxy-nd Local ND proxy function lock Lock the current line logfile Log file configuration mac-address MAC address information mad Multi-active detection mirroring-group Specify mirroring group mld Multicast Listener Discovery (MLD) module monitor System monitor mpls Multiprotocol Label Switching (MPLS) module mtrace Configure the multicast traceroute mtu Specify Maximum Transmission Unit(MTU) of the interface multicast Multicast module no Alias for 'undo' ntp-service Network Time Protocol (NTP) module openflow OpenFlow module ospf OSPF module ospfv3 OSPFv3 interface commands packet-filter Packet filter settings pim Protocol Independent Multicast (PIM) module ping Ping function portal Portal authentication module private-vlan Private VLAN function proxy-arp Specify proxy ARP function proxy-nd ND proxy function quit Exit from current command view repeat Repeat executing history commands reset Reset operation return Exit to User View rip Configure interface parameters for RIP ripng Configure interface parameters for RIPng rsvp Resource Reservation Protocol (RSVP) module save Save current configuration security-logfile Security log file configuration service Specify the service slot show Alias for 'display' shutdown Shut down the interface tcp Specify TCP parameters of the interface tracert Tracert function udp-helper UDP helper function undo Cancel current setting vrrp Virtual Router Redundancy Protocol (VRRP) module web-redirect Web redirection function write Alias for 'save' xconnect Bind a VSI [HS-BWX-1H4LP04-38U-6820-46-Vlan-interface10] 没有相关指令,也不支持在vlan和vlanif 的sflow

zhiliao_lfNzWM 发表时间:56分钟前

编辑答案

你正在编辑答案

如果你要对问题或其他回答进行点评或询问,请使用评论功能。

分享扩散:

提出建议

    +

亲~登录后才可以操作哦!

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作

举报

×

侵犯我的权益 >
对根叔社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 pub.zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明