基本OSPF搭建
1.配置路由器的环回和串口地址
[Huawei]interface g0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 12.1.1.2 24
[Huawei]interface g0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 23.1.1.1 24
[Huawei]interface LoopBack 0
[Huawei-LoopBack0]ip address 2.2.2.2
2.OSPF宣告各个路由
[Huawei-LoopBack0]ospf enable 100 area 0
[Huawei]ospf 100 router-id 2.2.2.2
[Huawei-ospf-100]area 0
[Huawei-ospf-100-area-0.0.0.0]network 0.0.0.0 255.255.255.255 //只适用实验装置不适用实体装置
3.各个路由之间PING通