欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  网络运营

OSPF区域验证area area-id authentication

程序员文章站 2022-08-12 19:35:39
OSPF区域验证area area-id authentication   配置简单AREA验证 step1 接口下配置 验证所需的KEY     &nb...

OSPF区域验证area area-id authentication

 

配置简单AREA验证

step1 接口下配置 验证所需的KEY

           ip ospf authentication-key cisco

ip ospf message-digest-key 1 md5 ciscoac   //启用MD5 KEY

step2    在OSPF进程下开启验证

router ospf 1 

             area 0 authentication //启用简单验证

area 0 authentication message-digest   //启用MD5加密验证

setp3      查看验证是否开启

                show ip ospf  

rtrA#show ip ospf 

Routing Process "ospf 1" with ID 1.1.1.1 

      Area BACKBONE(0) 

          Number of interfaces in this area is 2 

        Area has simple password authentication

Router A 

interface Loopback0 

ip address 1.1.1.1 255.255.255.255 

interface Serial0/0 

ip address 10.1.1.9 255.255.255.252 

ip ospf authentication-key cisco 

interface Serial0/1 

ip address 10.1.1.1 255.255.255.252 

ip ospf authentication-key cisco 

clock rate 64000 

router ospf 1 

area 0 authentication 

network 10.1.1.0 0.0.0.15 area 0 

_________________________________________

Router B 

interface Loopback0 

ip address 2.2.2.2 255.255.255.255 

interface Serial0 

ip address 10.1.1.2 255.255.255.252 

ip ospf authentication-key cisco 

interface Serial1 

ip address 10.1.1.5 255.255.255.252 

ip ospf authentication-key cisco 

clock rate 64000 

router ospf 1 

area 0 authentication 

network 10.1.1.0 0.0.0.15 area 0 

__________________________________________

Router C 

interface Loopback0 

ip address 3.3.3.3 255.255.255.255 

interface Serial0 

ip address 10.1.1.6 255.255.255.252 

ip ospf authentication-key cisco 

interface Serial1 

ip address 10.1.1.10 255.255.255.252 

ip ospf authentication-key cisco 

clock rate 64000 

router ospf 1 

area 0 authentication 

network 10.1.1.0 0.0.0.15 area 0