RIP

 

Device

R1

R2

R4

Host Name

R1

R2

R4

Enable RIP

On e0 s0

On e0

On s0

Eethernet 0

192.168.1.1/24

192.168.1.2/24

 

Serial 0

192.168.2.1/24

 

192.168.2.2/24

RIP拓撲  R2-e0--------e0-R1-s0---------s0-R4

RIP腳本(最好使用記事本)

R1                          

en             //進入特權模式

conf t        //進入配置模式

host R1         //爲路由器命名

int e0            //進入接口

ip add 192.168.1.1 255.255.255.0         //配置ip地址

no shut      //啓用接口

exit

int s0

ip address 192.168.2.1 255.255.255.0

no shut

end

show ip int brief       //查看接口ip地址和狀態

 

conf t

router rip        //啓用RIP

ver 2            //設定爲版本2

no auto-summary        //關閉自動彙總

net 192.168.1.0           //連接的網絡

net 192.168.2.0

end

show ip route         //查看路由

show ip protocols        //查看協議

 

 

R2                         

en

conf t

host R2

int e 0

ip add 192.168.1.2 255.255.255.0

no shut

end

show ip int brief

 

conf t

router rip

ver 2

no auto-sammary

net 192.168.1.0

end

show ip route

show ip protocols

 

 

R4                     

en

conf t

host R4

int s0

ip add 192.168.2.2 255.255.255.0

no shut

end

show ip int brief

 

conf t

router rip

ver 2

no auto-summary

net 192.168.2.0

end

show ip route

show ip protocols

 

R2、R4與R1的配置與說明情況差不多

就不再進行註釋了

RIP的實驗很簡單

主要是這種方法很好,有依據可查

製作表格,畫拓撲,寫清單 都需要完成,不然連自己都不知道

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