1. 路由器使用MQC来统计端口入出方向,特定特征的数据流。
显示policy 的统计信息
配置policy:
#
traffic classifier vlan5traffic operator and
if-match vlan-id 5
#
traffic behavior vlan5count
statistic enable
#
traffic policy vlan5policy
classifier vlan5traffic behavior vlan5count
#
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 10
traffic-policy vlan5policy inbound
#