交换机制作流统(锐捷交换机)
用于分析,源pod:10.159.72.1到目标:10.159.32.66:6443的数据包丢在哪了?
制作流统(相关的所有交换机都需要做)
config ter #进入配置模式
ip access-list extended test04 #制作流统并进入流统test04
10 permit tcp host 10.159.72.1 host 10.159.32.66 eq 6443 #配置抓包 10是权重
15 permit tcp host 10.159.32.66 eq 6443 host 10.159.72.1
20 permit tcp any any
show this #查看流统配置
exit
ip access-list counter test04 #配置流统计数
interface TFGigabitEthernet 0/5 #进入端口
ip access-group test04 in #将流统配到端口上
ip access-group test04 out
show run | include test04 # 查看配置文件过滤test04
show access-lists test04 #查看流统test04的配置
删除流统
第一步、进接口删配置
conf ter
interface TFGigabitEthernet 0/5
no ip access-group test04 in
no ip access-group test04 out
第二步、删除流统配置
no ip access-list counter test04
ip access-list extended test04
no permit tcp host 10.159.72.1 host 10.159.32.66 eq 6443
no permit tcp host 10.159.32.66 eq 6443 host 10.159.72.1
no permit tcp any any
exit
no ip access-list extended test04
exit
w #保存配置在全局模式下执行