教你配置OSPF动态路由协议的身份验证
敬业的IT人
互联网
佚名
2008-3-20 10:21:59
为了安全的原因,我们可以在相同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 0ip address 192.1.0.129 255.255.255.192!interface serial 0ip address 192.200.10.5 255.255.255.252ip ospf authentication-key cisco!router ospf 100network 192.200.10.4 0.0.0.3 area 0network 192.1.0.128 0.0.0.63 area 1area 0 authentication!Router2:interface ethernet 0ip address 192.1.0.65 255.255.255.192!interface serial 0ip address 192.200.10.6 255.255.255.252ip ospf authentication-key cisco!router ospf 200network 192.200.10.4 0.0.0.3 area 0network 192.1.0.64 0.0.0.63 area 2area 0 authentication! |
| 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 |
- 最新文章
- 独家首发:脱兔3跨协议BT下载体验记[03-20]
- 中国电信与谷歌达成广告合作协议[03-20]
- HDS与BlueArc签订全球OEM协议 进军HPC市场[03-20]
- 基于流传输控制协议的移动切换研究[03-20]
- 新手学堂:解析Ftp协议的两种工作模式[03-20]
- RFC1674 - A Cellular Industry ..[03-20]
- 相关文章
- 独家首发:脱兔3跨协议BT下载体验记[03-20]
- 中国电信与谷歌达成广告合作协议[03-20]
- HDS与BlueArc签订全球OEM协议 进军HPC市场[03-20]
- 基于流传输控制协议的移动切换研究[03-20]
- 新手学堂:解析Ftp协议的两种工作模式[03-20]
- RFC1204 - Message Posting Prot..[03-20]
