Chinaunix首页 | 论坛 | 博客
  • 博客访问: 17787
  • 博文数量: 5
  • 博客积分: 25
  • 博客等级: 民兵
  • 技术积分: 60
  • 用 户 组: 普通用户
  • 注册时间: 2012-03-14 13:39
文章分类

全部博文(5)

文章存档

2021年(4)

2014年(1)

我的朋友

分类: 网络与安全

2021-03-14 20:23:46

RIP 动态路由协议, 设备自己寻找路径.
RIP 距离矢量协议,把自己的路由表更新给下一个路由器,下一个路由器在把自己的路由表更新给下一个路由器.
度量值: 跳数, 跳数超过15不可达.
每30秒收敛一次.
V1使用广播,V2使用组播,一旦启用了RIP就有资格监听组播信息,组播地址224.0.0.9,.
管理距离是120,静态路由的管理距离是1,数字越小优先级越高.
V1无类路由(不发送子网掩码),V2有类路由(发送子网掩码).
UDP协议传输, 应用层协议, 端口号520.
协议号: 17
消息形式:  请求消息,响应消息
默认支持等价负载均衡: 支持4个下一跳, 最大人为的改成6.

开始配置RIP协议.

R1路由器配置ip和还回虚拟ip.
R1#conf t
R1(config)#int f0/0
R1(config-if)#ip add 10.0.0.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#exit
R1(config)#int lo
R1(config)#int loopback ?
  <0-2147483647>  Loopback interface number
R1(config)#int loopback 0
R1(config-if)#
R1(config-if)#ip add 10.1.1.1 255.255.255.255

R2路由器配置ip和还回虚拟ip.
R2#conf t
R2(config)#int f0/0
R2(config-if)#ip add 10.0.0.2 255.255.255.0
R2(config-if)#no sh
R2(config-if)#int f0/1
R2(config-if)#ip add 20.0.0.2 255.255.255.0
R2(config-if)#no sh
R2(config-if)#int l0
R2(config-if)#ip add 20.1.1.2 255.255.255.255
R2(config-if)#end
R2#show ip interface brief 
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet0/0            10.0.0.2        YES manual up                    up      
FastEthernet0/1            20.0.0.2        YES manual up                    up      
Loopback0                  20.1.1.2        YES manual up                    up 

R3路由器配置ip和还回虚拟ip.
R3#conf t
R3(config)#int f0/0
R3(config-if)#ip add 20.0.0.3 255.255.255.0
R2(config-if)#no sh
R3(config-if)#int l0
R3(config-if)#ip add 20.1.1.3 255.255.255.255

配置R1路由器的RIP协议.
R1(config)#router rip
R1(config-router)#version 2
关闭自动汇总
R1(config-router)#no auto-summar
宣告自己直连接口网络进入组播.
R1(config-router)#net 10.0.0.0 
R1(config-router)#net 10.1.1.1

配置R2路由器的RIP协议.
R2#conf t
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#no auto-summary 
R2(config-router)#do show ip route
     20.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C       20.0.0.0/24 is directly connected, FastEthernet0/1
C       20.1.1.2/32 is directly connected, Loopback0
     10.0.0.0/24 is subnetted, 1 subnets
C       10.0.0.0 is directly connected, FastEthernet0/0
R2(config-router)#net 20.0.0.0
R2(config-router)#net 10.0.0.0
R2(config-router)#net 20.1.1.2

配置R3路由器的RIP协议.
R3#conf t
R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#no auto-summary 
R3(config-router)#net 20.1.1.3
R3(config-router)#net 20.0.0.0

查看R1路由信息, 设备自己配置路由完成.
R1#show ip route
     20.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
R       20.0.0.0/24 [120/1] via 10.0.0.2, 00:00:07, FastEthernet0/0
R       20.1.1.2/32 [120/1] via 10.0.0.2, 00:00:07, FastEthernet0/0
R       20.1.1.3/32 [120/2] via 10.0.0.2, 00:00:07, FastEthernet0/0
     10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C       10.0.0.0/24 is directly connected, FastEthernet0/0
C       10.1.1.1/32 is directly connected, Loopback0
阅读(4000) | 评论(0) | 转发(0) |
0

上一篇:思科(cisco) arp协议

下一篇:没有了

给主人留下些什么吧!~~