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运用到端口,并选择模式

  • 相关阅读:
    ABP源码编译及部署
    nopCommerce源码本地部署、配置及语言包导入
    MongoDB查询转对象时出错 Element '_id' does not match any field or property of class
    找不到资产文件 project.assets.json
    Docker中运行.net core 验证码不显示
    css设置input不显示光标
    js中的==和===
    Navicat连接mysql(高级选项配置)
    js回调函数,检测这个值是否重复
    layer数据表格换行
  • 原文地址:https://www.cnblogs.com/guoshiyu/p/9324330.html
Copyright © 2011-2022 走看看