拓朴:
Ip如下配置本实验只使用R1 R2 R3和R4:
实验目的实现
ospf和rip的重发布
在R3上实现如下命令
ospf 1
import-route rip 1 重发布rip到ospf
area 0.0.0.0
abr-summary 10.10.0.0 255.255.248.0
network 192.168.2.0 0.0.0.255
network 10.10.0.0 0.0.255.255
#
rip 1
undo summary
version 2
network 192.168.6.0
import-route ospf 1 cost 4 重发布ospf到rip指定跳数为4跳.
#
对于直连的路由发布我们需要输入,在h3c中直连路由不会自动重分发,所以要输入以下命令.:
rip 1
undo summary
version 2
network 192.168.6.0
import-route direct cost 3
import-route ospf 1 cost 4
#
在asbr作汇总:
ospf 1
asbr-summary 192.168.96.0 255.255.248.0
import-route rip 1
area 0.0.0.0
abr-summary 10.10.0.0 255.255.248.0
network 192.168.2.0 0.0.0.255
network 10.10.0.0 0.0.255.255
#
看路由表:
<RT1>display ip routing-table
Routing Tables: Public
Destinations : 16 Routes : 16
Destination/Mask Proto Pre Cost NextHop Interface
10.10.0.0/21 OSPF 10 3124 192.168.1.2 S0/2/0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
172.16.0.1/32 Direct 0 0 127.0.0.1 InLoop0
172.16.1.1/32 Direct 0 0 127.0.0.1 InLoop0
172.16.2.1/32 Direct 0 0 127.0.0.1 InLoop0
172.16.3.1/32 Direct 0 0 127.0.0.1 InLoop0
172.16.4.1/32 Direct 0 0 127.0.0.1 InLoop0
172.16.5.1/32 Direct 0 0 127.0.0.1 InLoop0
172.16.6.1/32 Direct 0 0 127.0.0.1 InLoop0
172.16.7.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.1.0/24 Direct 0 0 192.168.1.1 S0/2/0
192.168.1.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.1.2/32 Direct 0 0 192.168.1.2 S0/2/0
192.168.2.0/24 OSPF 10 3124 192.168.1.2 S0/2/0
192.168.96.0/21 O_ASE 150 2 192.168.1.2 S0/2/0
<RT1>
本文出自 “上善若水威加海内” 博客,转载请与作者联系!