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

    实验要求:掌握OSPF基于端口认证方式

    拓扑如下

    简单认证

    R1

    enable  进入特权模式

    config   进入全局模式

    hostname R1  修改名称

    interface s0/1  进入端口

    ip aadress 192.168.1.1 255.255.255.0  设置IP地址

    physical-layer speed 64000  设置同步时钟

    interface l0  进入端口

    ip address 192.168.2.254 255.255.255.0  设置IP地址

    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

    interface s0/1  进入端口

    ip ospf authentication simple  启动OSPF端口简单认证

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

    R2

    enable  进入特权模式

    config   进入全局模式

    hostname R1  修改名称

    interface s0/1  进入端口

    ip aadress 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地址

    exit   返回上一级

    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

    interface s0/1  进入端口

    ip ospf authentication simple  启动OSPF端口简单认证

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

    MD5认证

    R1

    enable  进入特权模式

    config   进入全局模式

    hostname R1  修改名称

    interface s0/1  进入端口

    ip aadress 192.168.1.1 255.255.255.0  设置IP地址

    physical-layer speed 64000  设置同步时钟

    interface l0  进入端口

    ip address 192.168.2.254 255.255.255.0  设置IP地址

    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

    interface s0/1  进入端口

    ip ospf authentication message-digest       启动OSPF端口MD5认证

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

    R2

    enable  进入特权模式

    config   进入全局模式

    hostname R1  修改名称

    interface s0/1  进入端口

    ip aadress 192.168.1.1 255.255.255.0  设置IP地址

    physical-layer speed 64000  设置同步时钟

    interface l0  进入端口

    ip address 192.168.3.254 255.255.255.0  设置IP地址

    exit   返回上一级

    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

    interface s0/1  进入端口

    ip ospf authentication message-digest      启动OSPF端口MD5认证

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

    相关命令

    基于端口的简单认证

    ip ospf authentication simple 在相应端口启动简单认证

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

     

    基于端口的MD5认证

    ip ospf authentication message-digest 在相应端口启动认证

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

  • 相关阅读:
    SQL server 导出平面文件时出错: The code page on Destination
    中文字符集编码Unicode ,gb2312 , cp936 ,GBK,GB18030
    C# DataTable 转 List(大家进来讨论讨论)
    CSS3圆角气泡框,评论对话框
    WinForm 换行问题 textbox (转)
    Nhibernate 多对多级联删除
    JS、C# 去除html标签
    Nhibernate 多对多级联更新
    Ext.Ajax.request()方法和FormPanel.getForm().submit()方法,都返回success()方法的差异
    ExtJs 4.2.1 报错:Uncaught TypeError: Cannot call method 'getItems' of null
  • 原文地址:https://www.cnblogs.com/guoshiyu/p/9323482.html
Copyright © 2011-2022 走看看