当前位置:网站首页>标准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应用到出接口
边栏推荐
- < code random recording two brushes> linked list
- 数学分析_笔记_第11章:Fourier级数
- 保证接口数据安全的10种方案
- go语言的字符串类型、常量类型和容器类型
- ICer知识点杂烩(后附大量题目,持续更新中)
- Tips of the week 136: unordered containers
- 手撕Nacos源码(先撕客户端源码)
- 直播软件搭建,canvas文字加粗
- How to clean when win11 C disk is full? Win11 method of cleaning C disk
- Understanding of 12 methods of enterprise management
猜你喜欢

Machine vision (1) - Overview

科学家首次观察到“电子漩涡” 有助于设计出更高效的电子产品

小试牛刀之NunJucks模板引擎

Datasimba launched wechat applet, and datanuza accepted the test of the whole scene| StartDT Hackathon
![[OKR target management] value analysis](/img/d9/1f0022d3aa34cc10f1151e181dd695.png)
[OKR target management] value analysis

Introduction of common API for socket programming and code implementation of socket, select, poll, epoll high concurrency server model

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

Summary of debian10 system problems

卖空、加印、保库存,东方甄选居然一个月在抖音卖了266万单书

C语言中匿名的最高境界
随机推荐
万字保姆级长文——Linkedin元数据管理平台Datahub离线安装指南
[answer] if the app is in the foreground, the activity will not be recycled?
Management by objectives [14 of management]
直播软件搭建,canvas文字加粗
Introduction de l'API commune de programmation de socket et mise en œuvre de socket, select, Poll et epoll
【蓝桥杯集训100题】scratch从小到大排序 蓝桥杯scratch比赛专项预测编程题 集训模拟练习题第17题
Datasimba launched wechat applet, and datanuza accepted the test of the whole scene| StartDT Hackathon
The highest level of anonymity in C language
JS pull down the curtain JS special effect display layer
What skills can you master to be a "master tester" when doing software testing?
行业案例|数字化经营底座助力寿险行业转型
A few simple steps to teach you how to see the K-line diagram
Hutool - 轻量级 DB 操作解决方案
Mobile pixel bird game JS play code
Unlike the relatively short-lived industrial chain of consumer Internet, the industrial chain of industrial Internet is quite long
『HarmonyOS』DevEco的下载安装与开发环境搭建
[PaddleSeg源码阅读] PaddleSeg Validation 中添加 Boundary IoU的计算(1)——val.py文件细节提示
现在网上期货开户安全吗?国内有多少家正规的期货公司?
Wireshark分析抓包数据*.cap
保证接口数据安全的10种方案