zoukankan      html  css  js  c++  java
  • 神州数码OSPF基于区域认证(简单、MD5认证)

    实验要求:掌握基于区域的简单认证及MD5认证

    拓扑如下

    简单认证

    R1

    enable  进入特权模式

    config   进入全局模式

    hostname R1  修改名称

    interface l0  进入端口

    ip address 192.168.2.254 255.255.255.0  设置IP地址

    interface s0/1  进入端口

    ip address 192.168.1.1 255.255.255.0   设置IP地址

    physical-layer speed 64000  设置同步时钟

    exit  返回上一级

    router ospf 1  启动OSPF协议

    network 192.168.1.0 255.255.255.0 area 0  添加直连网段到OSPF

    network 192.168.2.0 255.255.255.0 area 0  添加直连网段到OSPF

    area 0 authentication simple  启动区域的简单认证

    exit  返回上一级

    interface s0/1  进入端口

    ip ospf password 978285  设置简单认证密码

    R2

    enable  进入特权模式

    config  进入全局模式

    hostname R2  修改名称

    interface s0/2  进入端口

    ip address 192.168.1.2 255.255.255.0  设置IP地址

    physical-layer speed 64000  设置同步时钟

    interface l0  进入端口

    ip address 192.168.3.254 255.255.255.0  设置IP地址

    router ospf 1  启动OSPF协议

    network 192.168.1.0 255.255.255.0 area 0  将直连网段添加到OSPF

    network 192.168.3.0 255.255.255.0 area 0  将直连网段添加到OSPF

    area 0 authentication simple  启动区域的简单认证

    exit  返回上一级

    interface s0/1  进入端口

    ip ospf password 978285  设置简单认证密码

    MD5认证

    R1

    enable  进入特权模式

    config   进入全局模式

    hostname R1  修改名称

    interface l0  进入端口

    ip address 192.168.2.254 255.255.255.0  设置IP地址

    interface s0/1  进入端口

    ip address 192.168.1.1 255.255.255.0   设置IP地址

    physical-layer speed 64000  设置同步时钟

    exit  返回上一级

    router ospf 1  启动OSPF协议

    network 192.168.1.0 255.255.255.0 area 0  添加直连网段到OSPF

    network 192.168.2.0 255.255.255.0 area 0  添加直连网段到OSPF

    area 0 authentication message-digest  启动区域的MD5认证

    exit  返回上一级

    interface s0/1  进入端口

    ip ospf message-digest-key 1 md5 978285  设置MD5认证密码

    R2

    enable  进入特权模式

    config  进入全局模式

    hostname R2  修改名称

    interface s0/2  进入端口

    ip address 192.168.1.2 255.255.255.0  设置IP地址

    physical-layer speed 64000  设置同步时钟

    interface l0  进入端口

    ip address 192.168.3.254 255.255.255.0  设置IP地址

    router ospf 1  启动OSPF协议

    network 192.168.1.0 255.255.255.0 area 0  将直连网段添加到OSPF

    network 192.168.3.0 255.255.255.0 area 0  将直连网段添加到OSPF

    area 0 authentication message-digest  启动区域的MD5认证

    exit  返回上一级

    interface s0/1  进入端口

    ip ospf message-digest-key 1 md5 978285  设置MD5认证密码

    相关命令

    基于区域的简单认证

    area [区域ID] authentication simple OSPF子模式中启动简单认证

    ip ospf password [密码] 在对应端口设置认证密码

    基于区域的MD5认证

    area [区域ID] authentication message-digest OSPF子模式中启动MD5认证

    Ip ospf message-digest-key [KeyID] md5 [密码] 在相应端口设置keyID以及认证密码

  • 相关阅读:
    VIJOS1476 旅行规划(树形Dp + DFS暴力乱搞)
    神奇的图片
    How to locate elements/ Object locators for Android devices
    ZT: How to install appium with node.js
    How to get the appPackage and appActivity
    How to enable auto-complete for python in powershell
    Node.js
    Steps to develop an iterative algorithm
    Iterative Algorithm
    FSM
  • 原文地址:https://www.cnblogs.com/guoshiyu/p/9323630.html
Copyright © 2011-2022 走看看