华为和锐捷设备流统配置

华为:

<AR6121E-S>dis acl 3333

Advanced ACL 3333, 4 rules

Acl's step is 5

rule 5 permit icmp source 192.168.188.2 0 destination 192.168.88.88 0

rule 10 permit icmp source 192.168.88.88 0 destination 192.168.188.2 0

rule 15 permit udp source 14.23.154.114 0 source-port eq 1701 destination 14.145.146.57 0 (7 matches)

rule 20 permit udp source 14.145.146.57 0 destination 14.23.154.114 0 destination-port eq 1701 (7 matches)

int g0/0/8

traffic-filter inbound acl 3333

traffic-filter outbound acl 3333

AR6121E-Scapture-packet interface g 0/0/8 acl 3333 destination terminal

锐捷:

注意:以下ip地址仅为举例,以现场实际ip地址为准

第一步:创建ACL

ip access-list extended test-down-in

10 permit icmp host 104.52.56.14 host 172.26.131.30

20 permit icmp host 172.26.131.30 host 104.52.56.14

100 permit ip any any

!

ip access-list extended test-down-out

10 permit icmp host 104.52.56.14 host 172.26.131.30

20 permit icmp host 172.26.131.30 host 104.52.56.14

100 permit ip any any

!

ip access-list extended test-up-in

10 permit icmp host 104.52.56.14 host 172.26.131.30

20 permit icmp host 172.26.131.30 host 104.52.56.14

100 permit ip any any

!

ip access-list extended test-up-out

10 permit icmp host 104.52.56.14 host 172.26.131.30

20 permit icmp host 172.26.131.30 host 104.52.56.14

100 permit ip any any

第二步:开启ACL计数

!

ip access-list counter test-up-in

!

ip access-list counter test-up-out

!

ip access-list counter test-down-out

!

ip access-list counter test-down-in

第三步:

上下联口调用ACL:

上联口(连接路由器的接口)

比如连接的是g0/1(以具体连接的接口为准)

int g0/1

ip access-group test-up-in in

ip access-group test-up-out out

下连口(连接电脑的接口)

ip access-group test-down-in in

ip access-group test-down-out out

第四步:

查看计数:show access-lists

清除计数:clear counters

注意:若clear counters无法清除计数统计,则clear counters access-list xx(xx代表acl的名字)来清除

相关推荐
KKKlucifer5 小时前
拨开接口黑盒迷雾:运营商第三方合作接口安全审计与准入管控落地实践
网络·人工智能·安全
青瓦梦滋6 小时前
传输层UDP/TCP协议
linux·网络·c++·网络协议·tcp/ip·udp
江畔柳前堤6 小时前
LLM 训练核心机制深度解析:Warmup、Cosine Decay 与 Perplexity 的完整知识体系
网络·人工智能·深度学习·算法·机器学习·语音识别
小绫网络安全6 小时前
【每日一讲】学习网络安全的一些注意事项
网络·安全·web安全
星恒讯工业路由器8 小时前
5G LAN + Wi-Fi 6融合组网:工业路由器如何为柔性产线“剪掉辫子”
网络·5g·工业路由器·工业物联网·5g la·柔性产线·5g工业路由
SamChan909 小时前
PDF翻译API的JWT签名鉴权与速率限制设计:安全实战指南
网络·安全·pdf
xiaoxiangsiyan9 小时前
HCIA 网络技术基础核心模块详解
运维·网络·网络协议·tcp/ip·运维开发·网络基础
AGCSDNl10 小时前
葛姓的来源
网络
漫路在线12 小时前
无境红日靶场五 wp
网络·安全·web安全
Sylvia33.12 小时前
从轮询到推送:足球数据API架构演进与火星数据技术拆解
java·服务器·网络·python·websocket·架构