当前位置:网站首页>标准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应用到出接口
边栏推荐
- Run Yolo v5-5.0 and report an error. If the sppf error cannot be found, solve it
- Summary of evaluation indicators and important knowledge points of regression problems
- Mobile pixel bird game JS play code
- Pro2: modify the color of div block
- Cf:c. factors and powers of two [DP + sort + Select Board + select several numbers equal to the minimum number of known sums]
- [paper sharing] where's crypto?
- Live broadcast software construction, canvas Text Bold
- Explain it in simple terms. CNN convolutional neural network
- 现在网上期货开户安全吗?国内有多少家正规的期货公司?
- 磁盘存储链式的B树与B+树
猜你喜欢

More than 10000 units were offline within ten days of listing, and the strength of Auchan Z6 products was highly praised

【Unity Shader】插入Pass实现模型遮挡X光透视效果

行业案例|数字化经营底座助力寿险行业转型

JS pull down the curtain JS special effect display layer

Mobile app takeout ordering personal center page

DataSimba推出微信小程序,DataNuza接受全场景考验? | StartDT Hackathon

How to clean when win11 C disk is full? Win11 method of cleaning C disk

保证接口数据安全的10种方案
![[paddleseg source code reading] add boundary IOU calculation in paddleseg validation (1) -- val.py file details tips](/img/f2/b6a0e5512b35cf1b695a8feecd0895.png)
[paddleseg source code reading] add boundary IOU calculation in paddleseg validation (1) -- val.py file details tips
![[OKR target management] value analysis](/img/d9/1f0022d3aa34cc10f1151e181dd695.png)
[OKR target management] value analysis
随机推荐
Youth experience and career development
Do you really understand sticky bag and half bag? 3 minutes to understand it
debian10系统问题总结
元宇宙带来的创意性改变
[paper sharing] where's crypto?
Improve application security through nonce field of play integrity API
[trusted computing] Lesson 11: TPM password resource management (III) NV index and PCR
Discuss | frankly, why is it difficult to implement industrial AR applications?
Native JS verification code
Chapter 3 business function development (to remember account and password)
[answer] if the app is in the foreground, the activity will not be recycled?
高考填志愿规则
Using stored procedures, timers, triggers to solve data analysis problems
< code random recording two brushes> linked list
你真的理解粘包与半包吗?3分钟搞懂它
debian10编译安装mysql
[PaddleSeg源码阅读] PaddleSeg Validation 中添加 Boundary IoU的计算(1)——val.py文件细节提示
Chapter 3 business function development (user login)
Afghan interim government security forces launched military operations against a hideout of the extremist organization "Islamic state"
Chapter 1 Introduction to CRM core business