RIP

RIP v1:为有类别路由协议,不支持VLSM和CIDR

             以广播的形式发送报文

             不支持验证

RIP v2:为无类别路由协议,支持VLSM,支持路由聚合与CIDR

             支持以广播或者组播(224.0.0.9)的形式发送报文

             支持明文验证和MD5密文验证

RIP是距离矢量路由选择协议

 

RIP的基本概念:

定期更新 30S

邻居

广播更新

全路由表更新

 

RIP度量值为跳数

最大跳数为15跳,16跳为不可达

RIP更新时间

每隔30秒发送路由更新消息,UDP520端口

RIP路由更新消息

发送整个路由表信息

 

例题:

 

 

 

R1

undo terminal monitor

Info: Current terminal monitor is off.

system-view

Enter system view, return user view with Ctrl+Z.

[Huawei]sysname R1

[R1]user-interface console 0

[R1-ui-console0]idle-timeout 0 0

[R1-ui-console0]quit

[R1]int g0/0/0

[R1-GigabitEthernet0/0/0]ip add 10.1.1.1 24

[R1-GigabitEthernet0/0/0]undo shut

Info: Interface GigabitEthernet0/0/0 is not shutdown.

[R1-GigabitEthernet0/0/0]quit

[R1]rip

[R1-rip-1]network 10.0.0.0

[R1-rip-1]quit

R2:

undo terminal monitor

Info: Current terminal monitor is off.

system-view

Enter system view, return user view with Ctrl+Z.

[Huawei]sysname R2

[R2]user-int

[R2]user-interface console 0

[R2-ui-console0]idle-timeout 0 0

[R2-ui-console0]quit

[R2]int g0/0/0

[R2-GigabitEthernet0/0/0]ip add 10.1.1.2 24

[R2-GigabitEthernet0/0/0]undo shut

Info: Interface GigabitEthernet0/0/0 is not shutdown.

[R2-GigabitEthernet0/0/0]int g0/0/1

[R2-GigabitEthernet0/0/1]ip add 172.16.1.2 24

[R2-GigabitEthernet0/0/1]undo shut

Info: Interface GigabitEthernet0/0/1 is not shutdown.

[R2-GigabitEthernet0/0/1]quit

[R2]rip

[R2-rip-1]network 10.0.0.0

[R2-rip-1]network 172.16.0.0

[R2-rip-1]quit

 

R3

undo terminal monitor

Info: Current terminal monitor is off.

system-view

Enter system view, return user view with Ctrl+Z.

[Huawei]sysname R3

[R3]user-interface console 0

[R3-ui-console0]idle-timeout 0 0

[R3-ui-console0]quit

[R3]int g0/0/0

[R3-GigabitEthernet0/0/0]ip add 172.16.1.3 24

[R3-GigabitEthernet0/0/0]undo shut

Info: Interface GigabitEthernet0/0/0 is not shutdown.

[R3-GigabitEthernet0/0/0]int g0/0/1

[R3-GigabitEthernet0/0/1]ip add 32.1.1.3 24

[R3-GigabitEthernet0/0/1]undo shut

Info: Interface GigabitEthernet0/0/1 is not shutdown.

[R3-GigabitEthernet0/0/1]quit

[R3]rip

[R3-rip-1]network 172.16.0.0

[R3-rip-1]network 32.0.0.0

[R3-rip-1]quit

 

R4:

undo terminal monitor

Info: Current terminal monitor is off.

system-view

Enter system view, return user view with Ctrl+Z.

[Huawei]sysname R4

[R4]user-interface console 0

[R4-ui-console0]idle-timeout 0 0

[R4-ui-console0]quit

[R4]int g0/0/0

[R4-GigabitEthernet0/0/0]ip add 32.1.1.4 24

[R4-GigabitEthernet0/0/0]undo shut

Info: Interface GigabitEthernet0/0/0 is not shutdown.

[R4-GigabitEthernet0/0/0]quit

[R4]rip

[R4-rip-1]network 32.0.0.0

[R4-rip-1]quit

 

 

什么是主类网络边界?

指的是两个不同的主类网络之间的路由网段

 

 

 

如图所示:

R2、R3就是跨越主类网络边界的路由器,R2连接了主类12网段和主类172网段,R3连接了主类12网段和主类172网段。

Rip

Version 2

Undo summary

 Rip默认的版本是Version1,可认为修改Version2,关闭自动汇总功能

 

 

你可能感兴趣的:(RIP)