1. 程式人生 > >OSPF的rip、ospf、靜態重分發及動態重分發配置

OSPF的rip、ospf、靜態重分發及動態重分發配置

outer router 關閉 ffffff images img 版本 ets 路由匯總

動態路由OSPF的rip、ospf、靜態重分發及動態重分發實驗 實驗拓撲如下:

技術分享圖片

R1
ip route 0.0.0.0 0.0.0.0 192.168.20.2

R2
ip route 192.168.10.0 255.255.255.0 192.168.20.1
router ospf 1                             
network 192.168.30.0 0.0.0.255 area 1                //宣告30網段
redistribute static subnets                                     //重分發靜態路由

R3
ip route 0.0.0.0 0.0.0.0 192.168.80.2
router ospf 1
network 192.168.30.0 0.0.0.255 area 1                  //宣告30,70,40網段
network 192.168.70.0 0.0.0.255 area 1
network 192.168.40.0 0.0.0.255 area 1
default-information originate                                    //默認路由重分發

R4
router rip
network 192.168.50.0                                  //rip中宣告50網段
version 2                                                      //版本2
no auto-summary                                         //關閉自動匯總

R4
router ospf 1
network 192.168.40.0 0.0.0.255 area 1        //宣告40網段
redistribute rip subnets                                //rip重分發
router rip 
redistribute ospf 1 metric 5                         //ospf重分發

R5
ip route 0.0.0.0 0.0.0.0 192.168.80.1

R6 
router rip 
network 192.168.50.0                          //宣告50、60網段 
network 192.168.60.0
version 2                                              //版本2
no auto-summary                                 //關閉路由匯總

OSPF的rip、ospf、靜態重分發及動態重分發配置