当前位置:网站首页>交换机和路由器技术-32-命名ACL
交换机和路由器技术-32-命名ACL
2022-08-11 04:44:00 【w辣条小王子】
命名ACL:
没有表号,使用名字作为表号,直接使用standard标识标准ACL、和extended标识扩展
删除访问控制列表
1.在删除访问控制列表前,需要先从应用的接口上取消
2.不管是标准ACL还是扩展ACL 不管no哪一条ACL,删除都是全部删除,不能单独删除
而且添加ACL是自动往后排,不能插在中间

![]()
![]()
![]()
命名ACL好处:
可以在某一个表内删除单条ACL或者在任意位置插入ACL
具体配置
Router(config)#ip access-list ?
extended Extended Access List
standard Standard Access List
Router(config)#ip access-list extended wn //扩展ACL命名为wn
Router(config-ext-nacl)#deny ?
ahp Authentication Header Protocol
eigrp Cisco's EIGRP routing protocol
esp Encapsulation Security Payload
gre Cisco's GRE tunneling
icmp Internet Control Message Protocol
ip Any Internet Protocol
ospf OSPF routing protocol
tcp Transmission Control Protocol
udp User Datagram Protocol
Router(config-ext-nacl)#deny icmp ?
A.B.C.D Source address
any Any source host
host A single source host
Router(config-ext-nacl)#deny icmp host 192.168.10.2 ?
A.B.C.D Destination address
any Any destination host
host A single destination host
Router(config-ext-nacl)#deny icmp host 192.168.10.2 host 192.168.30.2
Router(config-ext-nacl)#deny icmp host 192.168.20.2 host 192.168.30.2
Router(config-ext-nacl)#deny udp host 192.168.20.2 host 192.168.30.2 eq 53
Router(config-ext-nacl)#deny tcp host 192.168.10.2 host 192.168.30.2 eq 80
Router(config-ext-nacl)#permit ip any any
Router(config-ext-nacl)#exit
Router(config)#int g0/1
Router(config-if)#
Router(config-if)#ip access-group wn in
Router(config-if)#exit
Router(config)#
Router(config)#int g0/1 //应用到接口
Router(config-if)#ip access-group wn out
Router(config-if)#删除ACL
第一步:查看ACL编号
Show access-lists

假设删除编号为20的acl
进入扩展ACL;然后直接no
Router(config)#ip access-list extended wn
Router(config-ext-nacl)#no 20

指定ACL序号
Router(config-ext-nacl)#?
<1-2147483647> Sequence Number
Router(config-ext-nacl)#12 deny icmp 192.168.20.2 0.0.0.0 192.168.30.2 0.0.0.0
deny icmp 192.168.20.2 0.0.0.0 192.168.30.2 0.0.0.0等同于deny icmp 192.168.20.2 92.168.30.2
此处的0.0.0.0是是255.255.255.255的反掩码,原因acl需要反掩码,标识一个IP我们用的子网掩码是四个255
边栏推荐
- [Note] Is the value of BatchSize the bigger the better?
- 【小记】BatchSize的数值是设置的越大越好吗
- [Web3 series development tutorial - create your first NFT (9)] How to view your NFT in the mobile wallet
- shell monitors gpu usage
- Overview of the JVM garbage collection and mechanism
- To break the bottleneck of transactional work, the gentleman signs the electronic contract to release the "source power" of HR!
- findViewById返回null的问题
- 【人话版】WEB3将至之“权益的游戏”
- [Server installation mysql] Use mysql offline installation package to install mysql5.7 under centos7
- 洛谷P4847 银河英雄传说V2
猜你喜欢

CAN/以太网转换器 CAN与以太网互联互通

校园兼职平台项目反思

Switch---Spanning Tree---Three-layer Architecture Summary

这些云自动化测试工具值得拥有

CAD2020 打开错误报告 e06d7363h Exception at 13644F69h

Selenium自动化测试框架工作原理你明白了吗?

「转」“搜索”的原理,架构,实现,实践,面试不用再怕了

Dry goods: The principle and practice of server network card group technology

LeetCode Brush Questions Day 11 String Series "58 Last Word Length"

0 Basic software test for career change, self-study for 3 months, 12k*13 salary offer
随机推荐
[Likou] 22. Bracket generation
Introduction to c # a week of high-level programming c # - LINQ Day Four
洛谷P2245 星际导航
Word2021 中的图片保存后就变模糊了
Callable实现多线程
Mysql:设置主键自动增长起始值
LeetCode814 Math Question Day 15 Binary Tree Series Value "814 Binary Tree Pruning"
Self-research capability was recognized again, and Tencent Cloud Database was included in the Forrester Translytical report
洛谷P2370 yyy2015c01 的 U 盘
如何将360全景图导出高清短视频分享到视频平台上?
Merkel Studio--OpenEuler Training Notes (1)
How to add icons to web pages?
洛谷P1196 银河英雄传说
"110 Balanced Binary Tree Judgment" in leetCode's 14-day binary tree series
About the pom.xml file
CAN/以太网转换器 CAN与以太网互联互通
Use Navicat Premium to export database table structure information to Excel
Solve the problem of multi-thread calling sql stored procedure
Australia cyberspace security system construction
对象的创建以及显示转换