H3C之OSPF配置

inter e0/0

ip addr [IP地址]  [子网掩码位数]

inter e0/1

ip addr [IP地址]  [子网掩码位数]

ip lo0

ip addr [IP地址]  [子网掩码位数]

router id  [router id]

ospf 1

are a 0.0.0 .0

net [通告网络地址]  [反子网掩码]

net [通告网络地址]  [反子网掩码]

net [通告网络地址]  [反子网掩码]

..........

display ospf peer                       查看路由器OSPF邻居状态

display ospf routing                     查看路由器OSPF路由表

display ip routing-table                  查看路由器全局路由表

 

inter e0/0

ospf cost 150                         修改路由器接口开销

 

inter e0/0

ospf dr-priority 0                       修改接口优先级为0

 

reset ospf  1 process                   将路由器的OSPF进程重启 (最初模式)

你可能感兴趣的:(h3c,ospf)