常见交换机流统配置自动化总结
一、华为
# acl number 3001 description for-traffic-account-only # traffic classifier traffic_account type or # traffic behavior traffic_account statistics enable # traffic policy traffic_account classifier traffic_account behavior traffic_account precedence 5 # ###提前在所有接口下调用### # interface 10ge X/X/X traffic-policy traffic_account inbound # |
acl number 3001
description .*
traffic classifier traffic_account .*
traffic behavior traffic_account
statistics enable
traffic policy traffic_account
classifier traffic_account behavior traffic_account precedence 5
interface .*
traffic policy traffic_account inbound
二、华三
# acl number 3001 description for-traffic-account-only # traffic classifier traffic_account # traffic behavior traffic_account accounting packet # qos policy traffic_account classifier traffic_account behavior traffic_account # ###提前在所有接口下调用### # interface Ten-GigabitEthernet X/X/X qos apply policy traffic_account inbound # |
acl number 3001
description .*
traffic classifier traffic_account .*
traffic behavior traffic_account
accounting packet
qos policy traffic_account classifier traffic_account behavior traffic_account
interface .*
qos apply policy traffic_account inbound
三、思科
# ip access-list traffic_account statistics per-entry 100 permit ip any any # ###提前在所有接口下调用### # interface ethernet X/X ip access-group traffic_account in # |
ip access-list traffic_account statistics per-entry 100 permit ip any any
interface .* ip access-group traffic_account in
四、瞻博
# set firewall family inet filter traffic_account term Statistic then count traffic_account accept set firewall family inet filter traffic_account term Permit then accept # ###提前在所有接口下调用### # set interfaces x/x/x unit 0 family inet filter input traffic_account # |
# set firewall family inet filter traffic_account term Statistic then count traffic_account accept set firewall family inet filter traffic_account term Permit then accept #
# set interfaces .* unit 0 family inet filter input traffic_account #
五、自研
# set firewall filter statistics term traffic_account then action forward # |
# set firewall filter statistics term traffic_account then action forward #
Don't Repeat Yourself !
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· [.NET]调用本地 Deepseek 模型
· 一个费力不讨好的项目,让我损失了近一半的绩效!
· .NET Core 托管堆内存泄露/CPU异常的常见思路
· PostgreSQL 和 SQL Server 在统计信息维护中的关键差异
· C++代码改造为UTF-8编码问题的总结
· 实操Deepseek接入个人知识库
· CSnakes vs Python.NET:高效嵌入与灵活互通的跨语言方案对比
· 【.NET】调用本地 Deepseek 模型
· Plotly.NET 一个为 .NET 打造的强大开源交互式图表库
· 上周热点回顾(2.17-2.23)