华为交换机配置流控策略

1.写acl规则

acl ipv6 number 3000
 rule 1 permit ipv6 source 2408:8766:5:2:800:100:0:100/128 destination 240E:974:1200:401::1/128
 rule 2 permit ipv6 source 240E:974:1200:401::1/128 destination 2408:8766:5:2:800:100:0:100/128

2.配置流策略

traffic classifier ipv6test
 if-match ipv6 acl 3000

traffic behavior ipv6test
 statistic enable 

traffic policy ipv6test
 classifier ipv6test behavior ipv6test

4.在端口应用/取消规则

int XGigabitEthernet 8/0/0
 traffic-policy ipv6test inbound
 traffic-policy ipv6test outbound

int XGigabitEthernet 8/0/0
 undo traffic-policy outbound
 undo traffic-policy inbound

5.查看统计信息

dis traffic policy statistics interface XGigabitEthernet 8/0/0 inbound
dis traffic policy statistics interface XGigabitEthernet 8/0/0 outbound

  

 

posted @ 2023-06-21 17:03  枫火~  阅读(456)  评论(0)    收藏  举报