API Guide

配置文本身份验证
OS10(config)# interface ethernet 1/1/1
OS10(conf-if-eth1/1/1)# ip ospf authentication-key sample
查看文本身份验证
OS10(conf-if-eth1/1/1)# show configuration
!
interface ethernet1/1/1
ip address 10.10.10.2/24
no switchport
no shutdown
ip ospf 100 area 0.0.0.0
ip ospf authentication-key sample
配置 MD5 身份验证
OS10(config)# interface ethernet 1/1/1
OS10(conf-if-eth1/1/1)# ip ospf message-digest-key 2 md5 sample12345
查看 MD5 身份验证
OS10(conf-if-eth1/1/1)# show configuration
!
interface ethernet1/1/1
ip address 10.10.10.2/24
no switchport
no shutdown
ip ospf 100 area 0.0.0.0
ip ospf message-digest-key 2 md5 sample12345
Identifier
GUID-948C682E-5A49-4BDE-A12A-1143C4057E14
Version 6
Status Translation approved
OSPFv2 故障处理
您可以对 OSPFv2 操作进行故障处理并查看有关中断进程的典型问题。
OSPF 是否已全局启用
在接口上是否已启用 OSPF
是否正确建立了邻区
是否已针对 L3 正确配置了接口
路由器是否是正确的区域类型
OSPF 数据库中是否包括 OSPF 路由
除了 OSPF 数据库外路由表中是否还包括 OSPF 路由
是否可以对相邻路由器接口的 IPv4 地址执行 ping 命令
使用 show 命令对 OSPF 进行故障处理
查看在 EXEC 模式下已启用的所有 OSPF 进程 ID 的摘要。
show running-configuration ospf
EXEC 模式查看 IP 路由的摘要信息。
show ip route summary
EXEC 模式查看 OSPF 数据库的摘要信息。
show ip ospf database
EXEC 模式查看连接到本地路由器的 OSPF 邻居的配置。
show ip ospf neighbor
3 645