zoukankan      html  css  js  c++  java
  • 神州数码标准访问控制列表配置(ACL)

    实验要求:熟练掌握标准访问控制列表配置方法

    拓扑如下

    R1

    enable  进入特权模式

    config  进入全局模式

    hostname R1  修改名称

    interface s0/1  进入端口

    ip address 192.168.1.1 255.255.255.0  设置IP地址

    physical-layer speed 64000  设置同步时钟

    interface g0/6  进入端口

    ip address 192.168.2.254 255.255.255.0  设置IP地址

    exit  返回上一级

    ip route 192.168.3.0 255.255.255.0 192.168.1.2  添加静态路由

     

    R2

    enable  进入特权模式

    config  进入全局模式

    hostname R2  修改名称

    interface s0/2  进入端口

    ip address 192.168.1.2 255.255.255.0  设置IP地址

    physical-layer speed 64000  设置同步时钟

    interface g0/6  进入端口

    ip address 192.168.3.254 255.255.255.0  设置IP地址

    exit  返回上一级

    ip route 192.168.2.0 255.255.255.0 192.168.1.1  添加静态路由

    ip access-list standard 1  创建标准访问控制列表

    deny 192.168.2.0 255.255.255.0  不允许这个网段的流量通过或进入

    permit any  允许其他网段的流量通过或进入

    exit  返回上一级

    interface g0/6  进入端口

    ip access-group 1 out  将控制列表与端口绑定,并选择方向

     

    相关命令

    ip access-list standard [ID]     创建一个标准ACL访问列表

    deny [网段号]            不允许通过的网段

    permit [网段号]          允许通过的网段

    ip accress-group [ID] [IN|OUT]    ACL运用到端口,并选择模式

  • 相关阅读:
    BZOJ1787 [Ahoi2008]Meet 紧急集合[结论题]
    poj3728 The merchant[倍增]
    poj2750 Potted Flower[线段树]
    poj2482 Stars in Your Window[扫描线]
    poj2182 Lost Cows[BIT二分]
    UVA12096 The SetStack Computer
    第05组(65) 需求分析报告
    团队介绍与选题报告
    数据采集技术第三次作业
    结对编程作业
  • 原文地址:https://www.cnblogs.com/guoshiyu/p/9324330.html
Copyright © 2011-2022 走看看