1. 程式人生 > >RIP 簡單配置路由彙總認證重分佈靜態

RIP 簡單配置路由彙總認證重分佈靜態

#RIP 簡單配置、路由彙總、認證、重分佈靜態
掌握目標
一、基本 IP 地址配置
二、配置 RIPV1
三、配置 RIPV2
四、重分佈靜態路由
五、手工彙總路由
六、明文與 MD5 認證
一、基本配置:
在這裡插入圖片描述
R1:
interface Serial1/0/0
ip address 10.0.12.1 255.255.255.0
interface LoopBack0
ip address 10.0.1.1 255.255.255.0
R2:
interface Serial1/0/0
ip address 10.0.12.2 255.255.255.0
interface Serial2/0/0
ip address 10.0.23.2 255.255.255.0
interface LoopBack0
ip address 10.0.2.2 255.255.255.0
R3:
interface Serial2/0/0
ip address 10.0.23.3 255.255.255.0
interface LoopBack0
ip address 10.0.3.3 255.255.255.0
測試:
[R2]ping 10.0.12.1
[R2]ping 10.0.23.3
二、配置 RIPv1 協議
R1:
[R1]rip 1 =啟用 RIP 程序
[R1-rip-1]network 10.0.0.0 ===宣告網路到 RIP 程序
R2:
[R2]rip
[R2-rip-1]network 10.0.0.0
R3:
[R3]rip
[R3-rip-1]network 10.0.0.0
[R1]display ip routing-table protocol rip =檢視路由表中 RIP 路由
測試:
[R1]ping 10.0.23.3
[R1]ping 10.0.3.3
debugging rip 1 ====開啟 RIP 除錯資訊,必須在使用者檢視開啟
terminal debugging
terminal monitor
display debugging rip ====檢視開啟 debug 功能
undo debug rip 1 ====關閉 RIP debug 功能
undo debug all ====關閉所有 debug 功能
三、配置 RIPv2 協議
[R1]rip 1
[R1-rip-1]version 2
[R2]rip 1
[R2-rip-1]version 2
[R3]rip 1
[R3-rip-1]version 2
[R1]display ip routing-table protocol rip
測試:
debugging rip 1 event
debugging rip 1 packet
undo debugging all
四、RIP 中重分佈靜態路由
[R3]int lo 1
[R3-LoopBack1]ip add 172.16.3.3 24
ping -c 3 172.16.3.3
[R2]ip route-static 172.16.3.0 24 10.0.23.3
[R2]rip 1
[R2-rip-1]import-route static ====RIP 程序中重分佈靜態路由
R1>display ip routing-table protocol rip | in 172

實驗二
在這裡插入圖片描述
一、基本配置
R3:
interface LoopBack1
ip address 172.16.0.1 255.255.255.0
interface LoopBack2
ip address 172.16.1.1 255.255.255.0
interface LoopBack3
ip address 172.16.2.1 255.255.255.0
interface LoopBack4
ip address 172.16.3.1 255.255.255.0
二、配置 RIPv2
R1:
[R1]rip 1
[R1-rip-1]version 2
[R1-rip-1]network 10.0.0.0
R2:
[R2]rip 1
[R2-rip-1]version 2
[R2-rip-1]network 10.0.0.0
R3:
[R3]rip 1
[R3-rip-1]version 2
[R3-rip-1]net 10.0.0.0
[R3-rip-1]net 172.16.0.0
R1]display ip routing-table protocol rip
三、配置手工路由彙總
[R2]int s1/0/0
[R2-Serial1/0/0]rip summary-address 172.16.0.0 255.255.0.0
測試
display ip routing-table protocol rip | in 172
四、配置明文與 MD5 認證
R1 與 R2 明文認證:
interface Serial1/0/0
rip authentication-mode simple cisco
interface Serial1/0/0
rip authentication-mode simple cisco
interface Serial2/0/0
rip authentication-mode md5 usual cisco
interface Serial2/0/0
rip authentication-mode md5 usual cisco
測試:
[R1]int s1/0/0
[R1-Serial1/0/0]rip authentication-mode simple huawei
debugging rip 1
terminal monitor
Info: Current terminal monitor is on.
terminal debugging
reset ip routing-table statistics protocol rip ====清除 RIP 路由表資訊