基于区域的OSPF MD5认证(cisco packet tracer 5.3)

 

 
1》开启R1和R2的OSPF进程
2》R1(config-router)#area 0 authentication message-digest //区域0启用MD5认证
      R1(config)#interface s0/3/0
      R1(config-if)#ip ospf message-digest-key 1 md5 cisco//配置认证key ID及密钥
3》R2(config-router)#area 0 authentication message-digest //区域0启用MD5认证
      R2(config)#interface s0/3/0
      R2(config-if)#ip ospf message-digest-key 1 md5 cisco//配置认证key ID及密钥
4》实验调试
◆Router#show ip ospf interface s0/3/0
Serial0/3/0 is up, line protocol is up
  Internet address is 192.168.12.1/24, Area 0
  Process ID 1, Router ID 1.1.1.1, Network Type POINT-TO-POINT, Cost: 781
  Transmit Delay is 1 sec, State POINT-TO-POINT, Priority 0
  No designated router on this network
  No backup designated router on this network
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:07
  Index 2/2, flood queue length 0
  Next 0x0(0)/0x0(0)
  Last flood scan length is 1, maximum is 1
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 1 , Adjacent neighbor count is 1
    Adjacent with neighbor 2.2.2.2
  Suppress hello for 0 neighbor(s)
  Message digest authentication enabled
    Youngest key id is 1
最后两行信息表明该接口启用了MD5认证,而且密钥ID为1
◆Router#show ip ospf
 Routing Process "ospf 1" with ID 1.1.1.1
 Supports only single TOS(TOS0) routes
 Supports opaque LSA
 SPF schedule delay 5 secs, Hold time between two SPFs 10 secs
 Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs
 Number of external LSA 0. Checksum Sum 0x000000
 Number of opaque AS LSA 0. Checksum Sum 0x000000
 Number of DCbitless external and opaque AS LSA 0
 Number of DoNotAge external and opaque AS LSA 0
 Number of areas in this router is 1. 1 normal 0 stub 0 nssa
 External flood list length 0
    Area BACKBONE(0)
        Number of interfaces in this area is 2
        Area has message digest authentication
        SPF algorithm executed 2 times
        Area ranges are
        Number of LSA 2. Checksum Sum 0x00dc42
        Number of opaque link LSA 0. Checksum Sum 0x000000
        Number of DCbitless LSA 0
        Number of indication LSA 0
        Number of DoNotAge LSA 0
        Flood list length 0
输出结果中加粗的这一行表明区域0采用了MD5认证。
 

实验结束,谢谢大家!

 

你可能感兴趣的:(MD5,职场,认证,休闲,ospf)