[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
[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
S6820-56HF 这款交换机本身不支持通过 SNMP 统计 VLANIF 接口的流量。H3C 许多交换机都是如此,这是一个普遍的设计特性,并非设备型号或软件的局限或故障。
如果您需要监控 VLAN 层面的流量数据,建议使用基于数据流的 sFlow 采样监控或基于端口的 端口镜像分析 这两种方法,都能很好地实现监控目标。
具体的原理和替代方案如下:
SNMP 统计流量的标准协议(如 IF-MIB)是为物理接口和三层层逻辑接口(如 VLANIF 接口本身)设计的。但是,跨 VLAN 路由转发的流量,实际上通过芯片内部的硬件处理,并不会被软件层面的 VLANIF 接口计数器一一记录,所以 SNMP 无法获取这个数据。这导致的结果就是,用 SNMP 查询 VLANIF 接口的 ifInOctets 等 OID(对象标识符)时,计数器始终为 0。
既然 SNMP 层面无法直接获取 VLAN 路由的流量数据,我们可以通过以下三种替代技术对流量进行分析:
S6820 系列支持 sFlow 流量采样技术,它通过周期性数据包采样分析,可在支持 sFlow 的收集器上呈现 VLAN 流量分布。
优点:对设备性能影响小,是跨设备流量监控的行业标准实践。
通过 SPAN 功能将 VLAN 流量完整地复制到监控端口,再配合分析工具(如 Wireshark)进行深度解析。
优点:可进行全量捕捉和深度分析,适合故障诊断场景。
首先访问 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
[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
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明