国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 網絡通信 > 正文

使用OSPF路由協議配置的身份驗證

2019-11-04 12:07:39
字體:
來源:轉載
供稿:網友

  OSPF 配置
  
  Router ospf 進程號
  
  Redistribute 其它路由協議
  
  Network 端口網絡 反掩碼 area 區域號
  
  Area 區域號 range 網絡號 掩碼
  
  Area 區域號 default-cost 花銷值
  
  ip ospf PRiority number
  
  Ip ospf cost 花銷值 <BR>Show ip ospf database
  
  使用身份驗證
  
  為了安全的原因,我們可以在相同OSPF區域的路由器上啟用身份驗證的功能,只有經過身份驗證的同一區域的路由器才能互相通告路由信息。
  
  在默認情況下OSPF不使用區域驗證。通過兩種方法可啟用身份驗證功能,純文本身份驗證和消息摘要(md5)身份驗證。純文本身份驗證傳送的身份驗證口令為純文本,它會被網絡探測器確定,所以不安全,不建議使用。而消息摘要(md5)身份驗證在傳輸身份驗證口令前,要對口令進行加密,所以一般建議使用此種方法進行身份驗證。
  
  使用身份驗證時,區域內所有的路由器接口必須使用相同的身份驗證方法。為起用身份驗證,必須在路由器接口配置模式下,為區域的每個路由器接口配置口令。
  
  任務                                 命令
  
  指定身份驗證                   area area-id authentication
  
  使用純文本身份驗證            ip ospf authentication-key passWord
  
  使用消息摘要(md5)身份驗證     ip ospf message-digest-key keyid md5 key
  
  以下列舉兩種驗證設置的示例,示例的網絡分布及地址分配環境與以上基本配置舉例相同,只是在Router1和Router2的區域0上使用了身份驗證的功能。:
  
  例1.使用純文本身份驗證
  Router1:
  interface ethernet 0
  ip address 192.1.0.129 255.255.255.192
  !
  interface serial 0
  ip address 192.200.10.5 255.255.255.252
  ip ospf authentication-key cisco
  !
  router ospf 100
  network 192.200.10.4 0.0.0.3 area 0
  network 192.1.0.128 0.0.0.63 area 1
  area 0 authentication
  !
  Router2:
  interface ethernet 0
  ip address 192.1.0.65 255.255.255.192
  !
  interface serial 0
  ip address 192.200.10.6 255.255.255.252
  ip ospf authentication-key cisco
  !
  router ospf 200
  network 192.200.10.4 0.0.0.3 area 0
  network 192.1.0.64 0.0.0.63 area 2
  area 0 authentication
  !
  
  例2.消息摘要(md5)身份驗證:
  Router1:
  interface ethernet 0
  ip address 192.1.0.129 255.255.255.192
  !
  interface serial 0
  ip address 192.200.10.5 255.255.255.252
  ip ospf message-digest-key 1 md5 cisco
  !
  router ospf 100
  network 192.200.10.4 0.0.0.3 area 0
  network 192.1.0.128 0.0.0.63 area 1
  area 0 authentication message-digest
  !
  Router2:
  interface ethernet 0
  ip address 192.1.0.65 255.255.255.192
  !
  interface serial 0
  ip address 192.200.10.6 255.255.255.252
  ip ospf message-digest-key 1 md5 cisco
  !
  router ospf 200
  network 192.200.10.4 0.0.0.3 area 0
  network 192.1.0.64 0.0.0.63 area 2
  area 0 authentication message-digest
  !
  相關調試命令:
  debug ip ospf adj
  debug ip ospf events

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 龙川县| 酉阳| 富顺县| 呼和浩特市| 乡城县| 夏河县| 土默特右旗| 新乐市| 文山县| 徐汇区| 平果县| 汪清县| 梅河口市| 萝北县| 灵石县| 浦县| 宁波市| 普洱| 宝丰县| 杨浦区| 万山特区| 名山县| 邵阳市| 横峰县| 都匀市| 古交市| 绩溪县| 安溪县| 冕宁县| 江孜县| 贡嘎县| 齐齐哈尔市| 华容县| 怀化市| 德昌县| 高雄市| 林芝县| 贡觉县| 浙江省| 介休市| 衡阳市|