当前位置:网站首页>在思科模擬器Cisco Packet Tracer實現自反ACL
在思科模擬器Cisco Packet Tracer實現自反ACL
2022-06-12 18:18:00 【不惑夢蝶】
目錄
實驗2:在思科模擬器Cisco Packet Tracer實現自反ACL
一、前言
最近在通過Cisco Packet Tracer模擬器學習ACL時,遇到的一點小問題,ACL分為標准的ACL訪問控制列錶和擴展的訪問控制列錶,但是當給某一路由器配置了一條訪問控制列錶,雖然是實現禁止該條例控制列錶,但是無法從對端PING回來。具體現象如下:
二、實驗
實驗1:使用ACL控制鏈路連通性
實驗拓撲圖

測試連通性

配置ACL
給路由器0 2911配置ACL(這裏只是簡單的使用了標准的ACL)
tsy(config)#access-list 11 deny 192.168.10.0 0.0.0.255 //禁止192.168.10.0網段的路由通過
tsy(config)#access-list 11 permit any //注意:這一行是最重要的,在cisco裏面只要是創建了訪問控制列錶(上一條),其餘的網段也默認禁止,只有寫入這一行才能接觸默認的禁止
tsy(config)#int g0/1
tsy(config-if)#ip access-group 11 out //引用到接口G0/1
tsy(config-if)#exit
tsy(config)#exit查看訪問控制列錶
tsy#show ip ac
tsy#show ip access-lists
Standard IP access list 11
10 deny 192.168.10.0 0.0.0.255
20 permit any
tsy#再次測試連通性


為什麼PC1去PingPC0不通,不只是限制了PC0去往PC1的路由嗎?!!!
因為Ping的執行過程,是兩個終端之間相互詢問與確認的過程:

實驗2:在思科模擬器Cisco Packet Tracer實現自反ACL
那我們該如何實現單向的Ping通,對端無法Ping通自己呢?通過在度娘的知識寶庫找了一番,參考了百度經驗:https://jingyan.baidu.com/article/948f5924a79294d80ef5f95c.html
步驟一:給路由器2911開啟securityk9模式
tsy#conf terminal //進入配置模式
tsy(config)#license boot module c2900 technology-package securityk9 //開啟securityk9模式
//此處省略
ACCEPT? [yes/no]: Y //確認
tsy#write
Building configuration...
[OK]
tsy#reload //重新啟動
//此處省略
tsy>en
tsy#show lic
tsy#show license fe
tsy#show license feature //重啟後查看許可文件情况,securityk9已開啟
Feature name Enforcement Evaluation Subscription Enabled RightToUse
ipbasek9 no no no yes no
securityk9 yes yes no yes yes
datak9 yes no no no yes
uck9 yes yes no no yes
tsy#conf terminal
Enter configuration commands, one per line. End with CNTL/Z.
tsy(config)#步驟二:配置ACL
tsy#conf terminal //進入配置模式
tsy(config)#ip access-list extended TSY //添加擴展訪問控制列錶TSY
tsy(config-ext-nacl)#deny ip any any //禁止所有網段通過
tsy(config-ext-nacl)#exit
tsy(config)#int G0/1 //在接口G0/1中應用
tsy(config-if)#ip access-group TSY in //訪問控制列錶TSY被應用於接口G0/1的進入通道
tsy(config-if)#exit
tsy(config)#ip inspect name Tong http audit-trail on //這一句我理解的是允許http往返報文的執行,標志為Tong的
tsy(config)#ip inspect name Tong icmp audit-trail on //允許icmp往返報文的執行,標志為Tong的
tsy(config)#int G0/1 //在接口G0/1中應用
tsy(config-if)#ip inspect Tong out //訪問控制列錶TONG被應用於接口G0/1的輸出通道
tsy(config-if)#exit
tsy(config)#exit這裏不知道理解的對不對,望大佬指正!
查看訪問控制列錶
tsy#show ip access-lists
Extended IP access list TSY
10 deny ip any any (4 match(es))
步驟三:驗證連通性


三、總結
這裏的自反ACL,只是在思科模擬器中的是這麼使用的,但是正確的自反ACL並不是這樣的!!!
边栏推荐
- Schematic diagram of active differential crystal oscillator and differences among lv-pecl, LVDS and HCSL
- Title 54: take 4 ~ 7 bits of an integer a from the right end.
- 有源差分晶振原理圖以及LV-PECL、LVDS、HCSL區別
- Interior design style type, rendering 100 invitation code [1a12]
- js求斐波那契数列
- leetcode 300. 最长递增子序列
- es7不使用父子和嵌套关系来实现一对多功能
- js快速排序
- USB to serial port - maximum peak serial port baud rate vs maximum continuous communication baud rate
- TypeScript类型声明文件(三)
猜你喜欢

MYSQL:Expression #4 of SELECT list is not in GROUP BY clause and contains nonaggregated column

PHP implementation of infinite classification tree (recursion and Optimization)

ES7 does not use parent-child and nested relationships to implement one to many functions

VirtualLab basic experiment tutorial -6 Blazed grating

TypeScript类型声明文件(三)

es7不使用父子和嵌套关系来实现一对多功能

赛程更新| 2022微软与英特尔黑客松大赛火热报名中

Vant3+ts H5 pages are nested into apps to communicate with native apps

有源差分晶振原理图以及LV-PECL、LVDS、HCSL区别

Applet and app are owned at the same time? A technical scheme with both
随机推荐
Gospel of audio and video developers, rapid integration of AI dubbing capability
JS中的栈(含leetcode例题)<持续更新~>
HTTP cache < strong cache and negotiation cache >
Still using Microsoft office, 3 fairy software, are you sure you don't want to try?
leetcode 300. Longest increasing subsequence
Gd32f4xx communicates with electric energy meter conforming to dlt645_ two
"Big fat • small lesson" - talk about big file segmentation and breakpoint sequel
Self made calculator (1 realized by Boolean logic operation unit and control unit programming)
Global lock, table lock, row lock
Machine learning series (5): Naive Bayes
Random talk about redis source code 91
Random talk about redis source code 90
A method of quickly reusing wechat login authorization in app
Typescript type declaration file (III)
Small program +app, a low-cost and active technology combination idea
VirtualLab基础实验教程-6.闪耀光栅
Comparison of disk mapping tools for network disk and object cloud storage management
轻量、便捷的小程序转App技术方案,实现与微信/流量App互联互通
迄今微软不同时期发布的SQL Server各版本之间的大致区别,供参考查阅
JS中的数组(含leetcode例题)<持续更新~>