RIP dynamic routing protocol configuration experiment (now commonly used network protocol, you do not know out of)

Dynamic Routing

Dynamic routing and static route is a relative concept, and the maximum difference between the static route is not required to manually add routing dynamic routing can learn from each other between their routes, and can be automatically adjusted according to changes in a timely manner to links and nodes.


Dynamic routing principles:

1, timely routing information exchanged between routers (typically once every 30s for the exchange)
2, according to a certain routing algorithm router (different dynamic routing protocol) the collected routing information processed into a routing table for the router Check out when forwarding IP packets.

Currently online now common dynamic routing protocols:

1, RIP protocol (Benpian demonstrated protocol)
RIP protocol is protocol was first widely used protocol is based on the number of hops to measure the size of a standard routing protocols, primarily for small and medium network range, the more overhead small.
2, OSPF protocol
OSPF protocol is an interior gateway protocol used within a single autonomous system routing decisions.
3, IS-IS protocol
IS-IS protocol ISO tissue is a dynamic routing protocol is no connection to the network protocol design.
. 4, BGP protocol
 BGP protocol is the only protocol for handling a network like the Internet size, is the only protocol that can deal well with having multiple routing domains related connection.

This blog will pick one of the RIP protocol detailed analysis and experiments.


RIP configuration and verification

1, enable RIP
Router (config) #router RIP
2, the network ID declare
Router (config-Router) #network Number The Network-
3, the routing table
Router # show ip route
4, view the configuration of routing protocols
Router # show ip protocols

Difference of RIP v1 and v2 version

RIP dynamic routing protocol configuration experiment (now commonly used network protocol, you do not know out of)

RIP dynamic routing protocol actual experiment:

The first step, to establish a complete topology

Two PC
PC1: 192.168.10.24/24
PC2: 192.168.20.20/24
three routers
R2
F0 / 0: 192.168.10.1/24
F0 /. 1: 12.10.1.2/22
Rl
F0 / 0: 12.20.1.2/22
F0 /. 1: 12.10.2.2/22
R3
F0 / 0: 12.20.2.3/22
F0 /. 1: 192.168.20.1/24

Specific experiments topology:
RIP dynamic routing protocol configuration experiment (now commonly used network protocol, you do not know out of)

The second step, each router is set to direct routes

First, the route R2 is connected to PC1 configuration

Enter: config terminal // enter the global mode
enter: interface fastethernet0 / 0 // enter f0 / 0 interface mode
Input: ip address 192.168.10.1 255.255.255.0// add the IP address and subnet mask
input: no shut // open
input : interface fastethernet0 / 1
input: ip address 12.10.1.2 255.255.252.0
input: no shut
input: end // return to the user mode
enter: show ip route // Check the routing table
(this time should already contains two direct routes)

RIP dynamic routing protocol configuration experiment (now commonly used network protocol, you do not know out of)
RIP dynamic routing protocol configuration experiment (now commonly used network protocol, you do not know out of)

Next, the router R1 is set in the middle of

输入:config terminal//进入全局模式
输入:interface fastethernet0/1//进入f0/1接口模式
输入:ip address 12.10.2.2 255.255.252.0//添加IP地址和子网掩码
输入:no shut//开启
输入:interface fastethernet0/0
输入:ip address 12.20.1.2 255.255.252.0
输入:no shut
输入:end//退回用户模式
输入:show ip route//查看路由表
(此时应该已经内含两条直连路由)

RIP dynamic routing protocol configuration experiment (now commonly used network protocol, you do not know out of)
RIP dynamic routing protocol configuration experiment (now commonly used network protocol, you do not know out of)

最后,为连接PC2的R3路由器进行设置

输入:config terminal//进入全局模式
输入:interface fastethernet0/0//进入f0/0接口模式
输入:ip address 12.20.2.3 255.255.252.0//添加IP地址和子网掩码
输入:no shut//开启
输入:interface fastethernet0/1
输入:ip address 192.168.20.1 255.255.255.0
输入:no shut
输入:end//退回用户模式
输入:show ip route//查看路由表
(此时应该已经内含两条直连路由)

RIP dynamic routing protocol configuration experiment (now commonly used network protocol, you do not know out of)
RIP dynamic routing protocol configuration experiment (now commonly used network protocol, you do not know out of)

第三步,为两台PC机配置IP地址
PC1

输入:ip 192.168.10.20 192.168.10.1//设置IP地址与网关地址

RIP dynamic routing protocol configuration experiment (now commonly used network protocol, you do not know out of)
PC2

输入:ip 192.168.20.20 192.168.20.1//设置IP地址与网关地址

RIP dynamic routing protocol configuration experiment (now commonly used network protocol, you do not know out of)

此时,虽说IP均已配置完毕,但实际上并不能使PC1与PC2互联互通。

RIP dynamic routing protocol configuration experiment (now commonly used network protocol, you do not know out of)
RIP dynamic routing protocol configuration experiment (now commonly used network protocol, you do not know out of)

究其原因是我们没有进进行RIP协议的配置,下面就开始进行RIP协议的配置。

第一步,进入R2中

输入:config terminal//进入全局模式
输入:router rip //启动RIP进程
输入:version 2//使用v2版本(原因见上文的V1、V2区别)
输入:no auto-summary//关闭自动子网汇总
输入:network 192.168.10.0
输入:network 12.10.0.0//宣告两个与自身直连的网段

RIP dynamic routing protocol configuration experiment (now commonly used network protocol, you do not know out of)
第二步,进入R1中

输入:config terminal//进入全局模式
输入:router rip //启动RIP进程
输入:version 2//使用v2版本
输入:no auto-summary//关闭自动子网汇总
输入:network 12.10.0.0
输入:network 12.20.0.0//宣告两个与自身直连的网段

RIP dynamic routing protocol configuration experiment (now commonly used network protocol, you do not know out of)
第三步,进入R3中

输入:config terminal//进入全局模式
输入:router rip //启动RIP进程
输入:version 2//使用v2版本
输入:no auto-summary//关闭自动子网汇总
输入:network 12.20.0.0
输入:network 192.168.20.0//宣告两个与自身直连的网段

RIP dynamic routing protocol configuration experiment (now commonly used network protocol, you do not know out of)
第四步,返回到R2中查看最新的路由表

Input: end // returns the user mode
enter: show ip route // view the routing table
(In this case, the routing table R is the beginning of communication between multicast routing independent study obtained)

RIP dynamic routing protocol configuration experiment (now commonly used network protocol, you do not know out of)
Similarly, R1 and R3 are thus routing table
RIP dynamic routing protocol configuration experiment (now commonly used network protocol, you do not know out of)
RIP dynamic routing protocol configuration experiment (now commonly used network protocol, you do not know out of)

After the end of the RIP routing protocol all the configuration, PC1 and PC2 communicate at this time the test again, the answer is yes:

RIP dynamic routing protocol configuration experiment (now commonly used network protocol, you do not know out of)

Above, that all the theory about dynamic routing protocols RIP resolution and full-step real practice, thanks to all our friends to read.

Guess you like

Origin blog.51cto.com/14484404/2436890