当前位置:网站首页>Switch and Router Technology - 32 - Named ACL
Switch and Router Technology - 32 - Named ACL
2022-08-11 04:55:00 【w Spicy little prince】
Named ACL:
No table number, use name as table number, directly use standard to identify standard ACL, and extended to identify extension
Delete ACL
1. Before deleting the access control list, you need to cancel it from the application interface
2. Whether it is a standard ACL or an extended ACL, no matter which ACL is deleted, all deletions are deleted, and cannot be deleted individually
And adding ACL is automatically back row, cannot be inserted in the middle
Named ACL benefits:
You can delete a single ACL in a table or insert an ACL at any position
Specific configuration
Router(config)#ip access-list ?extended Extended Access Liststandard Standard Access ListRouter(config)#ip access-list extended wn //The extended ACL is named wnRouter(config-ext-nacl)#deny ?ahp Authentication Header Protocoleigrp Cisco's EIGRP routing protocolesp Encapsulation Security Payloadgre Cisco's GRE tunnelingicmp Internet Control Message Protocolip Any Internet Protocolospf OSPF routing protocoltcp Transmission Control Protocoludp User Datagram ProtocolRouter(config-ext-nacl)#deny icmp ?A.B.C.D Source addressany Any source hosthost A single source hostRouter(config-ext-nacl)#deny icmp host 192.168.10.2 ?A.B.C.D Destination addressany Any destination hosthost A single destination hostRouter(config-ext-nacl)#deny icmp host 192.168.10.2 host 192.168.30.2Router(config-ext-nacl)#deny icmp host 192.168.20.2 host 192.168.30.2Router(config-ext-nacl)#deny udp host 192.168.20.2 host 192.168.30.2 eq 53Router(config-ext-nacl)#deny tcp host 192.168.10.2 host 192.168.30.2 eq 80Router(config-ext-nacl)#permit ip any anyRouter(config-ext-nacl)#exitRouter(config)#int g0/1Router(config-if)#Router(config-if)#ip access-group wn inRouter(config-if)#exitRouter(config)#Router(config)#int g0/1 //Apply to interfaceRouter(config-if)#ip access-group wn outRouter(config-if)#
Remove ACL
Step 1: Check the ACL number
Show access-lists
Assume deletion of acl number 20
Enter extended ACL;then no directly
Router(config)#ip access-list extended wn
Router(config-ext-nacl)#no 20
Specify ACL number
Router(config-ext-nacl)#?<1-2147483647> Sequence NumberRouter(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 is equivalent to deny icmp 192.168.20.2 92.168.30.2
The 0.0.0.0 here is the inverse mask of 255.255.255.255, because acl needs an inverse mask to identify the subnet we use for an IPThe mask is four 255
边栏推荐
- Mysql: set the primary key to automatically increase the starting value
- Listen to pull out U disk inserted into the message, U disk drive
- About the pom.xml file
- Redis deletes keys in batches according to regular rules
- async(异步)和await的使用
- 绿盾加密如何顺利切换成IP-Guard加密
- [E-commerce operation] How to formulate a social media marketing strategy?
- K8s复习笔记7--Redis单机和Redis-cluster的K8S实现
- 交换机和路由器技术-28-OSPF的NSSA区域
- 交换机和路由器技术-22/23-OSPF动态路由协议/链路状态同步过程
猜你喜欢
C语言题解:谁是凶手!
应用层协议——DNS
交换机和路由器技术-26-OSPF末梢区域配置
Switches and routers technology - 21 - RIP routing protocol
C语言:实用调试技巧
Switch and Router Technology - 25 - OSPF Multi-Area Configuration
交换机和路由器技术-32-命名ACL
Paper Notes: BBN: Bilateral-Branch Network with Cumulative Learning for Long-Tailed Visual Recognition
How to use svg-icon (svg-sprite-loader plugin)
Dry goods: The principle and practice of server network card group technology
随机推荐
【小记】BatchSize的数值是设置的越大越好吗
Embedded Sharing Collection 33
开发工具篇第七讲:阿里云日志查询与分析
如何将360全景图导出高清短视频分享到视频平台上?
延长经济保险(jeecgboot)
The basics of binary heap~
论文笔记:Bag of Tricks for Long-Tailed Visual Recognition with Deep Convolutional Neural Networks
Smart Pointer Notes
如何给网页添加icon图标?
Listen to pull out U disk inserted into the message, U disk drive
网络安全培训机构哪家好?排名怎么选择?
Summary of c language fprintf, fscanf, sscanf and sprintf function knowledge points
1815. 得到新鲜甜甜圈的最多组数 状态压缩
The priority queue
Apache初体验
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/data/xxxx
IP-Guard如何禁止运行U盘程序
交换机和路由器技术-30-标准ACL
Switch and Router Technology - 28 - NSSA Areas for OSPF
分层架构&SOA架构