Notes - Computer Network
  • 計算機網路
  • 期中
    • 20200916 Introduction
    • 20200923 Introduction Routing
    • 20200930 Introduction Router Setting
    • 20201007 Introduction DHCP
    • 20201014 Introduction IPV6
    • 20201021 cisco RIP
    • 20201104 cisco EIGRP (一)
    • 20201111 期中週
  • 期末
    • 20201118 cisco EIGRP (二)
    • 20201125 cisco EIGRP (三)
    • 20201202 cisco KDLinux
    • 20201209 cisco VRF & OSPF
    • 20201216 cisco VLAN
    • 20201223 cisco 單臂路由
    • 20201230 cisco STP
    • 20210106 cisco GRE
  • 參考資料
Powered by GitBook
On this page
  • 課堂資料
  • RIP版本差異
  • 課堂練習
  • Part 01.
  • Part 02.
  • Passive Interface
  • Default-Information Originate

Was this helpful?

  1. 期中

20201021 cisco RIP

Previous20201014 Introduction IPV6Next20201104 cisco EIGRP (一)

Last updated 4 years ago

Was this helpful?

課堂資料

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
network 12.1.1.0
network 23.1.1.0
network 2.2.2.0
network 13.1.1.0
network 23.1.1.0
network 3.3.3.0
exit
do show run
exit
sh ip route rip

右擊開啟 Catpure > e0/0

ping 1.1.1.1 source 2.2.2.2
ping 1.1.1.1 repeat 10 source 2.2.2.2
ping 1.1.1.1 repeat 10 source 23.1.1.2
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

同時清除 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
en
conf t
hostname R2
do writ
int e0/0
ip addr 192.168.12.2 255.255.255.0
no shut
exit
int e0/1
ip addr 192.168.23.2 255.255.255.0
no shut
exit
router rip
version 2
no auto-summary
network 192.168.12.0
network 192.168.23.0
exit
en
conf t
hostname R3
do writ
int e0/0
ip addr 192.168.23.3 255.255.255.0
no shut
exit
router rip
version 2
no auto-summary
network 192.168.23.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

先讓所有 interface passive,然後再 no 掉要執行的 interface

passive-interface default
on passive-interface e0/0
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
sh ip ro rip

RIP 路由信息協定 - Jan Ho 的網絡世界Jan Ho 的網絡世界
Logo