命名访问控制列表ACL添加删除规则

上传人:新** 文档编号:447960168 上传时间:2023-04-25 格式:DOC 页数:5 大小:62KB
返回 下载 相关 举报
命名访问控制列表ACL添加删除规则_第1页
第1页 / 共5页
命名访问控制列表ACL添加删除规则_第2页
第2页 / 共5页
命名访问控制列表ACL添加删除规则_第3页
第3页 / 共5页
命名访问控制列表ACL添加删除规则_第4页
第4页 / 共5页
命名访问控制列表ACL添加删除规则_第5页
第5页 / 共5页
亲,该文档总共5页,全部预览完了,如果喜欢就下载吧!
资源描述

《命名访问控制列表ACL添加删除规则》由会员分享,可在线阅读,更多相关《命名访问控制列表ACL添加删除规则(5页珍藏版)》请在金锄头文库上搜索。

1、outerenable 用户模式Router#configure termina l 特权模式Enter configuration commands, one per line. End with CNTL/Z.Router(config)#interface FastEthernet0/0 进入接口模式Router(config-if)#ip address 192.168.1.1 255.255.255.0 为 f0/0 分配 iP 地址 Router(config-if)#no shutdown 激活端口Router(config-if)#%LINK-5-CHANGED: Interf

2、ace FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-if)#exit 退出接口 f0/0Router(config)#interface FastEthernet0/1Router(config-if)#ip address 192.168.2.1 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#%LI

3、NK-5-CHANGED: Interface FastEthernet0/1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to upRouter(config-if)#Router(config-if)#Router(config-if)#exitRouter(config)#ip acRouter(config)#ip access-list ?extended Extended Access List standard Standard

4、 Access ListRouter(config)#ip access-list sRouter(config)#ip access-list standard renshibu创建命名的访问控制列表Router(config-std-nacl)#deny host 192.168.1.2 创建规则拒绝目标主机 Router(config-std-nacl)#%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down%LINEPROTO-5-UPDOWN: Line protoc

5、ol on Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-std-nacl)#Router(config-std-nacl)#Router(config-std-nacl)#Router

6、(c on fig-std-n acl)#AZRouter#%SYS-5-CONFIG_I: Configured from console by consoleRouter#show acRouter#show access-lists查看访问控制列表Standard IP access list renshibu10 deny host 192.168.1.2Router#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#ip acRouter(config)#ip access

7、-list aRouter(config)#ip access-list sRouter(config)#ip access-list standard% Incomplete command.Router(config)#ip access-list standard renshibuRouter(config-std-nacl)#pRouter(config-std-nacl)#permit ?A.B.C.DAddress to matchanyAny source hosthost A single host addressRouter(config-std-nacl)#permit h

8、oRouter(config-std-nacl)#permit host 192.168.1.3 添加规则允许目标主机Router(config-std-nacl)#AZRouter#%SYS-5-CONFIG_I: Configured from console by consoleRouter#show acRouter#show access-listsStandard IP access list renshibu10 deny host 192.168.1.220 permit host 192.168.1.3Router#conf tEnter configuration comm

9、ands, one per line. End with CNTL/Z. Router(config)#ip accRouter(config)#ip access-list sRouter(config)#ip access-list standard renshibuRouter(config-std-nacl)#pe添加规则允许目标主机 添加规则允许目标主机 添加规则允许目标主机Router(config-std-nacl)#permit hRouter(config-std-nacl)#permit host 192.168.1.4Router(config-std-nacl)#per

10、mit host 192.168.1.5Router(config-std-nacl)#permit host 192.168.1.6Router(config-std-nacl)#AZRouter#%SYS-5-CONFIG_I: Configured from console by consoleRouter#show acRouter#show access-lists qRouter#show access-lists 查看访问控制列表Standard IP access list renshibu10 deny host 192.168.1.220 permit host 192.1

11、68.1.330 permit host 192.168.1.440 permit host 192.168.1.550 permit host 192.168.1.6Router#conf tEnter configuration commands, one per line. End with CNTL/Z. Router(config)#ip access-list standard renshibuRouter(config-std-nacl)#permit host 192.168.1.7Router(config-std-nacl)#permit host 192.168.1.8R

12、outer(config-std-nacl)#permit host 192.168.1.9Router(config-std-nacl)#permit host 192.168.1.10Router(config-std-nacl)#permit host 192.168.1.11Router(config-std-nacl)#permit host 192.168.1.12Router(c on fig-std-n acl)#AZRouter#%SYS-5-CONFIG_I: Configured from console by consoleRouter#show acRouter#sh

13、ow access-listsStandard IP access list renshibu10 deny host 192.168.1.220 permit host 192.168.1.330 permit host 192.168.1.440 permit host 192.168.1.550 permit host 192.168.1.660 permit host 192.168.1.770 permit host 192.168.1.880 permit host 192.168.1.990 permit host 192.168.1.10100 permit host 192.

14、168.1.11110 permit host 192.168.1.12Router#cofn tA% Invalid input detected at A marker.Router#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#ip access-list standard renshibu Router(config-std-nacl)#no ? Sequence NumberdenySpecify packets to rejectpermitSpecify packe

15、ts to forwardremarkAccess list entry commentRouter(config-std-nacl)#no 100 删除第 100 条规则Router(c on fig-std-n acl)#AZRouter#%SYS-5-CONFIG_I: Configured from console by consoleRouter#show acRouter#show access-listsStandard IP access list renshibu10 deny host 192.168.1.220 permit host 192.168.1.330 permit host 192.168.1.440 permit host 192.168.1.550 permit host 192.168.1.660 permit host 192.168.1.770 permit host 192.168.1.880 permit host 192.168.1.990 permit host 192.168.1.10110 permit host 192.168.1.12Ro

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 办公文档 > 解决方案

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号