思科 nexus 交換機流統配置

有時爲了方便網絡故障排查,咱們會進行交換機抓包或者流量統計,下面是思科nexus 交換機作流統的示例:
思科 nexus 交換機流統配置網絡

#建立須要匹配流量的ACL:
ip access-list test01
  statistics per-entry
  1 permit tcp 1.1.1.1/32 2.2.2.2/32 eq 8888
  100 permit ip any any 

#建立vlan access-group, 調用ACL
vlan access-map test01 
  match ip address test01  // 匹配上述ACL
  action forward
  statistics per-entry

#在對應的vlan調用流統策略
vlan filter test01 vlan-list <valn-id-list>   //在一個或多個VLAN裏面統計報文

#/查看流量統計狀況
show vlan access-list test01    

VLAN access-map test01 
        IP access list test01
        1 permit tcp 1.1.1.1/32 2.2.2.2/32 eq 8888 [match=21]   // 有匹配到
        100 permit ip any any [match=468440]

若是你們有其餘好的建議,歡迎提出來,一塊兒交流學習。tcp

相關文章
相關標籤/搜索