FAQ-如何通过命令查询二层、三层VPN业务的流量

发布时间:  2012-07-27 浏览次数:  67 下载次数:  0
问题描述

Q:

如何通过命令查询二层、三层VPN的流量 

告警信息

处理过程
A:
二层VPN流量查询方式:
1、[NE40E-vsi-hw]
[NE40E-vsi-hw]pw ldp                                      
[NE40E-vsi-hw-ldp] 
   traffic-statistics enable   //使能流量统计
2、使用命令查询
[NE40E]displ traffic-statistics vsi hw                                            
 Statistics last cleared: never                                                 
 Last 300 seconds input rate : 0 bits/sec, 0 packets/sec                        
 Last 300 seconds output rate: 0 bits/sec, 0 packets/sec                        
 Input: 7388 bytes, 77 packets                                                  
 Output: 14419 bytes, 234 packets                                               
 Input:                                                                         
   Unicast: 80 packets, Multicast: 0 packets                                    
   Broadcast: 0 packets                                                         
 Output:                                                                        
   Unicast: 74 packets, Multicast: 0 packets                                   
   Broadcast: 0 packets
三层VPN查询流量方式:
1、[NE40E] ip vpn-instance VPN
   traffic-statistics enable   //使能流量统计
2、使用命令查询
 [NE40E]display traffic-statistics vpn-instance VPN 
 vpn-instance name: VPN                                              
 Statistics last cleared: never                                                 
 Last 300 seconds input rate : 0 bits/sec, 0 packets/sec                        
 Last 300 seconds output rate: 0 bits/sec, 0 packets/sec                        
 Input: 7392 bytes, 89 packets                                                  
 Output: 19319 bytes, 224 packets                                               
 Input:                                                                         
   Unicast: 89 packets, Multicast: 0 packets                                    
   Broadcast: 0 packets                                                         
 Output:                                                                        
   Unicast: 224 packets, Multicast: 0 packets                                   
   Broadcast: 0 packets
根因

建议与总结
 

END