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
enconf thostname [路由器名稱]enable password [密碼]int e0/0ip addr [IP] [遮罩]no shutexitint e0/1ip addr [IP] [遮罩]no shutexitint lo 0ip addr [IP] [遮罩]no shutexitdo writdo sh ip int brief設定完後需互ping 測試









Route IP
do sh ip roro:同等 route
router ripver 2ver:同等 version
no auto-summarynetwork 12.1.1.0network 13.1.1.0network 1.1.1.0network 12.1.1.0network 23.1.1.0network 2.2.2.0network 13.1.1.0network 23.1.1.0network 3.3.3.0exitdo show run





exitsh ip route rip
右擊開啟 Catpure > e0/0

ping 1.1.1.1 source 2.2.2.2ping 1.1.1.1 repeat 10 source 2.2.2.2ping 1.1.1.1 repeat 10 source 23.1.1.2
int lo 1ip addr 172.16.0.1 255.255.255.0no shutint lo 2ip addr 172.16.1.1 255.255.255.0no shutint lo 3ip addr 172.16.2.1 255.255.255.0no shutint lo 4ip addr 172.16.3.1 255.255.255.0no shutdo sh ip int brief
router ripnetwork 172.16.0.0do sh run
^Zsh ip route執行結果



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

操作筆記
enconf thostname R1do writint e0/0ip addr 192.168.12.1 255.255.255.0no shutexitrouter ripversion 2no auto-summarynetwork 192.168.12.0exitenconf thostname R2do writint e0/0ip addr 192.168.12.2 255.255.255.0no shutexitint e0/1ip addr 192.168.23.2 255.255.255.0no shutexitrouter ripversion 2no auto-summarynetwork 192.168.12.0network 192.168.23.0exitenconf thostname R3do writint e0/0ip addr 192.168.23.3 255.255.255.0no shutexitrouter ripversion 2no auto-summarynetwork 192.168.23.0exitPassive Interface

操作筆記
R3只想在10.0.23.0/24執行RIP,而不想在10.0.34.0/24執行:
router ripver 2以下分為兩種方法:
使用 network 10.0.0.0 會讓兩個 interface 都被執行RIP,所以必須加一道
passive-interface <interface>讓 e0/1 不執行RIP
passive-interface先讓所有 interface passive,然後再 no 掉要執行的 interface
passive-interface defaulton passive-interface e0/0network 10.0.0.0Default-Information Originate

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