ip ospf authentication-key

发表于:2007-06-23来源:作者:点击数: 标签:
为了给OSPF简单口令认证的相邻路由器分配一个口令,使用ip ospfauthentication-key接口配置命令。若要去掉所分配的OSPF口令,使用该命令的no格式。 ip ospf authentication-key passwordno ip ospf authentication-key 句法 概述 Password 任何键入的、长度

   


为了给OSPF简单口令认证的相邻路由器分配一个口令,使用ip ospfauthentication-key接口配置命令。若要去掉所分配的OSPF口令,使用该命令的no格式。
ip ospf authentication-key passwordno
ip ospf authentication-key

句法概述
Password任何键入的、长度为8个字节的连续字符串。


缺省
不指定口令
命令模式
接口配置
使用指南

该命令首次出现在Cisco IOS 10.0版中。

当Cisco IOS软件产生路由选择协议包时,该命令建立的口令被当做“密钥”直接插入OSPF报头中。一个分开的口令能被赋值到基于接口的网络上,同一网上的所有相邻路由器必须有相同的口令,从而才能交换OSPT信息。

注意:
Cisco IOS软件只有在认证一个区域上的area authentication路由器配置命令有效时才使用这个密钥。
示例
下面的例子中,使带有字符串yourpass的认证密钥有效:
ip ospf authentication-key yourpass
相关命令
要获得相关命令的文档信息,可查阅www.cisco.com
area authentication

原文转自:http://www.ltesting.net