当前位置:网站首页>标准ACL与扩展ACL
标准ACL与扩展ACL
2022-07-07 16:36:00 【陈叉叉__】
标准ACL
R0基本配置
int f0/0
ip add 192.168.10.254 255.255.255.0
no shutdown
int f0/1
ip add 76.12.16.133 255.255.255.252
no shut
R1基本配置
int f0/0
ip add 76.12.32.254 255.255.255.0
no shut
int f0/1
ip add 76.12.16.134 255.255.255.252
no shut
再分别给R1、R2配置默认路由
R1
ip route 0.0.0.0 0.0.0.0 76.12.16.133 #76.12.16.133为本路由器的所连接的下一跳地址,也可写为本路由器所连接的下一跳端口号
R2
ip route 0.0.0.0 0.0.0.0 76.12.16.134 #同上
标准ACL靠近目的地址的路由器上
在R1上配置标准ACL
标准ACL的编号1-99
ip access-list 1 permit host 192.168.10.100
ip access-list 1 deny host 192.168.10.1
interface f0/1
ip access-group 1 in
扩展ACL
R0基本配置
int f0/0
ip add 192.168.10.254 255.255.255.0
no shutdown
int f0/1
ip add 76.12.16.133 255.255.255.252
no shut
R1基本配置
int f0/0
ip add 76.12.32.254 255.255.255.0
no shut
int f0/1
ip add 76.12.16.134 255.255.255.252
no shut
再分别给R1、R2配置默认路由
R1
ip route 0.0.0.0 0.0.0.0 76.12.16.133 #76.12.16.133为本路由器的所连接的下一跳地址,也可写为本路由器所连接的下一跳端口号
R2
ip route 0.0.0.0 0.0.0.0 76.12.16.134 #同上
扩展ACL配置在靠近源地址的路由器上
在R0上配置扩展ACL
扩展ACL的编号100-199
需要协议、源IP、源端口、目的IP、目的端口都匹配
ip access-list 100 deny icmp host 192.168.10.1 host 76.12.32.1 #拒接来自192.168.10.1主机去往76.12.32.1主机的ping包
ip access-list 100 permit ip any any #允许所有
interface f0/1
ip access-group 100 out #将ACL应用到出接口
边栏推荐
- What is the general yield of financial products in 2022?
- PHP面试题 foreach($arr as &$value)与foreach($arr as $value)的用法
- 小试牛刀之NunJucks模板引擎
- [principles and technologies of network attack and Defense] Chapter 3: network reconnaissance technology
- 万字保姆级长文——Linkedin元数据管理平台Datahub离线安装指南
- SQLite SQL exception near "with": syntax error
- Chapter 3 business function development (to remember account and password)
- Ten thousand words nanny level long article -- offline installation guide for datahub of LinkedIn metadata management platform
- [trusted computing] Lesson 10: TPM password resource management (II)
- < code random recording two brushes> linked list
猜你喜欢
你真的理解粘包与半包吗?3分钟搞懂它
Introduction to OTA technology of Internet of things
Native JS verification code
Mui side navigation anchor positioning JS special effect
[tpm2.0 principle and Application guide] Chapter 5, 7 and 8
Explain it in simple terms. CNN convolutional neural network
[deep learning] 3 minutes introduction
[PaddleSeg源码阅读] PaddleSeg Validation 中添加 Boundary IoU的计算(1)——val.py文件细节提示
手撕Nacos源码(先撕客户端源码)
通过 Play Integrity API 的 nonce 字段提高应用安全性
随机推荐
Threshold segmentation based on RGB image and threshold adjustment by sliding
[trusted computing] Lesson 13: TPM extended authorization and key management
讨论 | AR 应用落地前,要做好哪些准备?
[论文分享] Where’s Crypto?
[principles and technologies of network attack and Defense] Chapter 3: network reconnaissance technology
What are the financial products in 2022? What are suitable for beginners?
Interviewer: why is the page too laggy and how to solve it? [test interview question sharing]
现在网上期货开户安全吗?国内有多少家正规的期货公司?
socket編程之常用api介紹與socket、select、poll、epoll高並發服務器模型代碼實現
【C语言】字符串函数
Understanding of 12 methods of enterprise management
磁盘存储链式的B树与B+树
科学家首次观察到“电子漩涡” 有助于设计出更高效的电子产品
Win11C盘满了怎么清理?Win11清理C盘的方法
Chapter 2 building CRM project development environment (building development environment)
高考填志愿规则
[PaddleSeg源码阅读] PaddleSeg Validation 中添加 Boundary IoU的计算(1)——val.py文件细节提示
Chapter 3 business function development (user login)
DataSimba推出微信小程序,DataNuza接受全场景考验? | StartDT Hackathon
海量数据去重的hash,bitmap与布隆过滤器Bloom Filter