RIP OSPF
1.实验拓扑:
使用ENSP模拟器(版本V100R002C00 1.2.00.350)
2.实验需求
1:所有路由器都配置rip和ospf,互通.
3.实验配置
先配IP RIP
R1
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 12.0.0.1 24
[Huawei-GigabitEthernet0/0/0]int L0
[Huawei-LoopBack0]ip add 1.1.1.1 24
[Huawei-LoopBack0]q
[Huawei]rip 进入RIP
[Huawei-rip-1]version 2 开启RIP版本2
[Huawei-rip-1]un summary
[Huawei-rip-1]network 12.0.0.0
[Huawei-rip-1]network 1.0.0.0 只能宣告前面的
[Huawei]dis ip routing-table 查看接口状态
R2
<Huawei>sy
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 12.0.0.2 24
[Huawei-rip-1]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 11.0.0.1 24
[Huawei-GigabitEthernet0/0/0]int L0
[Huawei-LoopBack0]ip add 2.2.2.2 24
[Huawei-LoopBack0]q
[Huawei]rip
[Huawei-rip-1]version 2
[Huawei-rip-1]un summary
[[Huawei-rip-1]network 12.0.0.0
[Huawei-rip-1]network 11.0.0.0
[Huawei-rip-1]network 2.0.0.0
R3
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 11.0.0.2 24
[Huawei-GigabitEthernet0/0/1]int L0
[Huawei-LoopBack0]ip add 3.3.3.3 24
[Huawei-LoopBack0]q
[Huawei]rip
[Huawei-rip-1]version 2 版本2
[Huawei-rip-1]un summary 关闭
[Huawei-rip-1]network 3.0.0.0
[Huawei-rip-1]network 11.0.0.0
配置 OSPF
R1
[Huawei]ospf 1
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 12.0.0.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]network 1.1.1.0 0.0.0.255
R2
[Huawei]ospf 1
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 12.0.0.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]network 2.2.2.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]network 11.0.0.0 0.0.0.255
R3
<Huawei>sy
[Huawei]ospf 1
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 3.3.3.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]network 11.0.0.0 0.0.0.255
转载于:https://blog.51cto.com/funinghua/1584419