Print

高端路由器IPv4、IPv6 netstream采样

2020-09-10 发表

组网及说明

网管对接口的IPv4、IPv6流量同时进行监控,配置参考如下:

配置步骤

ip netstream IPv4、Ipv6采样 

 # 

 ip netstream 

 ip netstream export version 9 origin-as 

 ip netstream export source interface LoopBack 0 

 ip netstream export host 1.1.1.1 9000 

 sampler ns_ipv4 mode fixed packet-interval 2000 

 sampler ns_ipv6 mode fixed packet-interval 2000 

acl advanced 3000 

 rule 0 permit ip 

acl ipv6 advanced 3000 

 rule 0 permit ipv6 

traffic classifier netstream operator or 

 if-match acl 3000 

 if-match acl ipv6 3000 

traffic behavior netstream 

 mirror-to slot 0 sampler ns_ipv4 

 mirror-to slot 0 sampler ns_ipv6

qos policy netstream 

 classifier ns_ipv4 behavior ns_ipv4 

 classifier ns_ipv6 behavior ns_ipv6 

interface Route-Aggregation1 

 qos apply policy netstream inbound 

 qos apply policy netstream outbound 

#

配置关键点

1、当使用mirror-to命令将SPEX类单板、CSPC-GE24L-E单板、CSPC-GP24GE8XP2L-E单板、CSPC-GE16XP4L-E单板、CSPEX类单板和CEPC类单板上接收或发送的流量镜像到指定的单板时,必须同时配置sampler参数,否则镜像配置不生效。

2、配置时,注意 traffic classifier netstream operator or ,此处为or。