ciso模拟器配置RIP2

本文为ciso模拟器配置RIP2 操作笔记

(供新手参考)

思科路由器设置ip地址怎么设置(思科模拟器中怎样给路由器配置ip地址)

方法一: 物理配置
https://www.luyouqi.com/shezhi/39347.html

方法二: 路由 CLI 配置
https://blog.csdn.net/qq_63964343/article/details/124231106

思科路由器上配置RIPv2
https://blog.csdn.net/wow0524/article/details/124954730

原理

RIP(Routing Information Protocols,路由信息协议)是应用较早、使用较普遍的IGP(Interior Gateway Protocol,内部网关协议),适用于小型同类网络,是典型的距离矢量(distance-vector)协议。

RIP协议跳数做为衡量路径开销的,RIP协议里规定最大跳数为15。

RIP协议有两个版本RIPv1和RIPv2。

RIPv1属于有类路由协议,不支持VLSM(变长子网掩码),RIPv1是以广播的形式进行路由信息的更新的;更新周期为30秒。

RIPv2属于无类路由协议,支持VLSM(变长子网掩码),RIPv2是以组播的形式进行路由信息的更新的,组播地址是224.0.0.9。RIPv2还支持基于端口的认证,提高网络的安全性。

配置命令

开启RIP:Router(config)#router rip

申请本设备的直连网段信息:Router(config-router)#network +ip地址

指定RIP协议的版本是2(默认为1):Router(config-router)#version2

关闭路由信息的自动汇总功能:Router(config-router)#no auto-summary

一、ciso配置RIP2 图例

根据此图列如下为本次操作详细笔记,及注意的问题
ciso模拟器配置RIP2_第1张图片

1.1 将ip设置完成

ciso模拟器配置RIP2_第2张图片

将演示 PC0、Router0、Router7、Router8、Router6、Router1、PC2配置及连通性。

1.2 ip设置

PC0:

ip 为10.2.30.1 掩码可为255.0.0.0 或如图所示,所有路由电脑掩码需保持一致,否则会造成丢包
网关为下一个路由或接口地址为10.2.30.2
ciso模拟器配置RIP2_第3张图片

Router0

F0口ip 需与pC为同一网段,且掩码相同,且端口需要开启
可使用

Router#en
Router#config
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip address 10.2.30.2 255.255.255.0
Router(config-if)#no shutdown 

ciso模拟器配置RIP2_第4张图片
Router0 为下一ip网段时钟设置与下一路由相同、端口需开启
可使用

Router(config-router)#exit
Router(config)#interface Serial2/0
Router(config-if)#ip address 192.168.12.1 255.255.255.0
Router(config-if)#no shutdown 
Router(config-if)#clock rate 64000

ciso模拟器配置RIP2_第5张图片

Router0配置RIP2协议

可使用如下命令,ip会自动设置为声明网段,需要关闭rip2协议的自动汇总否则可能找不到

Router(config-router)#exit
Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#network 10.2.30.2
Router(config-router)#network 192.168.12.1
Router(config-router)#no auto-summary 

ciso模拟器配置RIP2_第6张图片

1.3 Router7配置

Serial2/0 配置如图

ciso模拟器配置RIP2_第7张图片

Serial3/0 配置如图

ciso模拟器配置RIP2_第8张图片

RRP 配置如图

ciso模拟器配置RIP2_第9张图片

1.4 查看

查看 路由表 show ip route

R为RIP协议 学习到的C为直连网段,下图为Router1 运行出的命令

Router#show ip route 
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     10.0.0.0/24 is subnetted, 4 subnets
R       10.2.30.0 [120/4] via 192.168.56.6, 00:00:05, Serial2/0
C       10.2.31.0 is directly connected, FastEthernet0/0
R       10.2.32.0 [120/4] via 192.168.56.6, 00:00:05, Serial2/0
R       10.2.33.0 [120/4] via 192.168.56.6, 00:00:05, Serial2/0
R    192.168.12.0/24 [120/3] via 192.168.56.6, 00:00:05, Serial2/0
R    192.168.30.0/24 [120/2] via 192.168.56.6, 00:00:05, Serial2/0
R    192.168.31.0/24 [120/1] via 192.168.56.6, 00:00:05, Serial2/0
R    192.168.32.0/24 [120/2] via 192.168.56.6, 00:00:05, Serial2/0
R    192.168.33.0/24 [120/3] via 192.168.56.6, 00:00:05, Serial2/0
R    192.168.34.0/24 [120/2] via 192.168.56.6, 00:00:05, Serial2/0
C    192.168.56.0/24 is directly connected, Serial2/0
 --More-- 

查看接口状态 show ip interface brief

可以查看接口状态及IP信息等,以及是否开启或关闭。

Router#show ip interface brief 
Interface              IP-Address      OK? Method Status                Protocol
 
FastEthernet0/0        10.2.31.2       YES manual up                    up
 
FastEthernet1/0        unassigned      YES unset  administratively down down
 
Serial2/0              192.168.56.5    YES manual up                    up
 
Serial3/0              unassigned      YES unset  administratively down down
 
FastEthernet4/0        unassigned      YES unset  administratively down down
 
FastEthernet5/0        unassigned      YES unset  administratively down down

查看设备运行配置 show running-config

Router#show running-config 
Building configuration...

Current configuration : 828 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!

二、小结:

如上图,可以使用图形化界面配置,也可使用命令行进行配置。
但图形化界面配置时,可导致命令不生效,从而配置失败,因此如在某个路由不好用时,可使用命令行重新进行配置。

2.1 常见的问题及解决策略

常见问题多为配置出错、找不到目标主机地址、一层路由器下一跳失败、二层路由找不到等,多为以下解决策略
1、一层路由下一跳失败 多为PC电脑没有设置网关
2、F口未进行no shutdown (开启)、或S口未开启
3、RIP协议的network 未生效重新使用命令行声明
4、RIP协议未运行no auto-summary 导致路由自动汇总 (常见丢包丢一半、超时)
5、掩码未统一 、有的设置255.0.0.0 有的设置255.255.0.0 或其它(常见丢包丢一半、超时)
6、时钟未进行设置,或未统一,当前路由器的下一路由端口未开启
7、ip网段划分不合理,相邻接口不统一

在注意以上6点后,基本都会配置成功! 大部分问题多为图形化界面配置后未生效

你可能感兴趣的:(网络,智能路由器,网络)