20201021 cisco RIP
課堂資料
Routing Information Rrotocol ( RIP ) 路由信息協定:
RIP版本差異
RIP v1
RIP v2
Layer
Application
Application
VLSM & CIDR
X
√
AD
120
120
Metric
hop count
hop count
Update Method
broadcast 255.255.255.255
multicast 224.0.0.9
Auto Summany
X
√
VLSM:Variable Length Subnet Mask
AD:Administration Distance
IEEE:OSI 第一第二層
RFC:OSI 第三層以上
課堂練習
Part 01.
期中練習:讓 R1、R2、R3 可以互 ping

操作筆記
設定 R1、R2、R3 IP、Route IP
IP
en
conf t
hostname [路由器名稱]
enable password [密碼]
int e0/0
ip addr [IP] [遮罩]
no shut
exit
int e0/1
ip addr [IP] [遮罩]
no shut
exit
int lo 0
ip addr [IP] [遮罩]
no shut
exit
do writ
do sh ip int brief
設定完後需互ping 測試



Route IP
do sh ip ro
ro:同等 route
router rip
ver 2
ver:同等 version
no auto-summary
network 12.1.1.0
network 13.1.1.0
network 1.1.1.0
exit
do show run


exit
sh ip route rip

右擊開啟 Catpure > e0/0

int lo 1
ip addr 172.16.0.1 255.255.255.0
no shut
int lo 2
ip addr 172.16.1.1 255.255.255.0
no shut
int lo 3
ip addr 172.16.2.1 255.255.255.0
no shut
int lo 4
ip addr 172.16.3.1 255.255.255.0
no shut
do sh ip int brief

router rip
network 172.16.0.0
do sh run

^Z
sh ip route
執行結果

R3 進行合併操作
int e0/1
ip summary-address rip 172.16.0.0 255.255.252.0
合併後網路遮罩將變為 22
同時清除 IP Route
clear ip route *
sh ip ro rip

Part 02.

操作筆記
en
conf t
hostname R1
do writ
int e0/0
ip addr 192.168.12.1 255.255.255.0
no shut
exit
router rip
version 2
no auto-summary
network 192.168.12.0
exit
Passive Interface

操作筆記
R3只想在10.0.23.0/24執行RIP,而不想在10.0.34.0/24執行:
router rip
ver 2
以下分為兩種方法:
使用 network 10.0.0.0 會讓兩個 interface 都被執行RIP,所以必須加一道
passive-interface <interface>
讓 e0/1 不執行RIP
passive-interface
network 10.0.0.0
Default-Information Originate

操作筆記
R2 想發布 Default Route 給R1及R3,只需使用以下指令:
router rip
default-information originate
在R1及R3可看到Default Route
sh ip ro rip

Last updated
Was this helpful?