router ospf 1

router-id 2.2.2.2

network 172.16.12.2 0.0.0.0 area 0

 

interface e 1/1

ip ospf 1 area 0

ip ospf cost xxx   调整带宽

ip ospf network point-to-point

 

常用查看命令:

show ip route

show ip route ospf

show ip protocols  查看当前OSPF路由协议的配置内容,接口下开启OSPF这个命令看不到

image

 show ip ospf

image

 

show ip ospf interface

image

 show ip ospf neighbor  查看邻居状态

image

 

image

 查看ABR和ASBR

image

 

posted on 2026-06-30 17:24  401335990  阅读(2)  评论(0)    收藏  举报