簡單的OSPF與RIP的相互引入(華爲筆記回顧)

 

R1 配置

//接口配置

interface Serial0/0/0

 link-protocol fr                //這裏需要更改爲幀中繼協議,默認爲PPP協議

 ip address 10.0.123.1 255.255.255.0

interface LoopBack0

 ip address 1.1.1.1 255.255.255.255

ospf 1 router-id 1.1.1.1

 peer 10.0.123.2            //串口線無法自己尋找路經,所以這裏手動指定一下路徑

 ,peer 10.0.123.3

 area 0.0.0.0

 

network 10.0.123.0 0.0.0.255

 

R2 配置

interface Serial0/0/0

 link-protocol fr

 ip address 10.0.123.2 255.255.255.0

interface LoopBack0

 ip address 2.2.2.2 255.255.255.255

ospf 1 router-id 2.2.2.2

 peer 10.0.123.1

 peer 10.0.123.3

 area 0.0.0.0

  network 10.0.123.0 0.0.0.255

R3 配置

interface Serial0/0/0

 link-protocol fr

 ip address 10.0.123.3 255.255.255.0

interface GigabitEthernet0/0/0

 ip address 10.0.34.3 255.255.255.0

interface LoopBack0

 ip address 3.3.3.3 255.255.255.255

 

ospf 1 router-id 3.3.3.3

 peer 10.0.123.1

 peer 10.0.123.2

 area 0.0.0.0

  network 10.0.123.0 0.0.0.255

  network 10.0.34.0 0.0.0.255

R4 配置                                

/*本章要點在於R4配置   一邊是OSPF協議,而另一邊則是RIP協議。爲了可以通信,需要在不同進程之間相互引入*/

interface GigabitEthernet0/0/0

 ip address 10.0.34.4 255.255.255.0

interface GigabitEthernet0/0/1

 ip address 10.0.45.4 255.255.255.0

interface LoopBack0

 ip address 4.4.4.4 255.255.255.255

ospf 1 router-id 4.4.4.4

 import-route rip 1                                 //ospf進程下引入rip

 area 0.0.0.0

  network 10.0.34.0 0.0.0.255

network 10.0.123.0 0.0.0.255

rip 1

 version 2

 network 10.0.0.0

 import-route ospf 1                         //rip裏引入OSPF

R5 配置

interface LoopBack0

 ip address 5.5.5.5 255.255.255.255

interface GigabitEthernet0/0/1

 ip address 10.0.45.5 255.255.255.0

rip 1

 version 2

 network 10.0.0.0

 

 

 

 

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章