重启OSPF服务进程:
首先确认用户视图
在该视图下输入命令 reset ospf [进程号] process
查看当前OSPF状态:display ospf brief
OSPF单区域配置
1 2 3 4 5 6
| ospf 1 router-id 1.1.1.1 area 0 network +IP +匹配码 display ospf interface 命令查看OSPF接口通告是否正确 display ospf peer 查看OSPF邻居状态 display ip routing-table protocol ospf 查看OSPF路由表
|
配置OSPF区域明文认证
1 2 3 4 5 6
| ospf 1 area 1 authentication-mode simple plain huawei
authentication-mode md5 1 huawei
|
配置链路认证
1 2 3
| int g0/0/1 ospf authentication-mode md5 1 huawei
|
配置抑制接口
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| ospf 1 silent-interface GigabitEthernet 0/0/1
技巧对多个接口配置接口抑制 ospf 1 silent-interface all un display ip routing-table 10.0.1.1
基于接口修改 int g0/0/0 ospf network-type p2mp
ospf network-type broadcast
ospf dr-priority 100
reset ospf process ospf cost 1000 ospf timer hello 20 ospf timer dead 80
ospf 1 preference 110
|
路由引入
1 2 3 4 5 6 7 8 9 10 11
| ospf 1 import-route rip 1 default-route-advertise always
rip import-route ospf 1 import-route ospf cost 3 ospf
default-route originate
|