1、拓扑图

2、配置

R1

The device is running!
######
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysnae
[Huawei]sysna
[Huawei]sysname R1
[R1]int
[R1]interface g0/
^
Error: Wrong parameter found at '^' position.
[R1]interface g0//
[R1-GigabitEthernet0//]ip add 12.1.1.1
Dec ::-: R1 %%01IFNET//LINK_STATE(l)[]:The line protocol IP
on the interface GigabitEthernet0// has entered the UP state.
[R1-GigabitEthernet0//]q
[R1]rip
[R1-rip-]netwo
[R1-rip-100]network 12.0.0.0
[R1-rip-]q

R2

Please press enter to start cmd line!

<Huawei>
<Huawei>
Dec ::-: Huawei %%01IFPDT//IF_STATE(l)[]:Interface GigabitEt
hernet0// has turned into UP state.
<Huawei>
Dec ::-: Huawei %%01IFPDT//IF_STATE(l)[]:Interface GigabitEt
hernet0// has turned into UP state.
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R2
[R2]int g0//
[R2-GigabitEthernet0//]ip add 12.1.1.2
Dec ::-: R2 %%01IFNET//LINK_STATE(l)[]:The line protocol IP
on the interface GigabitEthernet0// has entered the UP state.
[R2-GigabitEthernet0//]q
[R2]rip
[R2-rip-]net
[R2-rip-]network 12.0.0.0
[R2-rip-]q
[R2]int
[R2]interface g0//
[R2-GigabitEthernet0//]ip add 172.16.1.2
[R2-GigabitEthernet0//]
Dec ::-: R2 %%01IFNET//LINK_STATE(l)[]:The line protocol IP
on the interface GigabitEthernet0// has entered the UP state.
[R2-GigabitEthernet0//]q
[R2]rip
[R2-rip-]net
[R2-rip-]network 172.16.0.0
[R2-rip-]q

R3

 Configuration console exit, please press any key to log on

<R3>sys
Enter system view, return user view with Ctrl+Z.
[R3]int
[R3]interface g0//
[R3-GigabitEthernet0//]ip add 192.168.1.3
Dec ::-: R3 %%01IFNET//LINK_STATE(l)[]:The line protocol IP
on the interface GigabitEthernet0// has entered the UP state.
[R3-GigabitEthernet0//]q
[R3]int
[R3]interface g0//
[R3-GigabitEthernet0//]ip add 172.16.1.3
Dec ::-: R3 %%01IFNET//LINK_STATE(l)[]:The line protocol IP
on the interface GigabitEthernet0// has entered the UP state.
[R3-GigabitEthernet0//]q
[R3]rip
[R3-rip-]net
[R3-rip-]network 172.16.0.0
[R3-rip-]net
[R3-rip-]network 192.168.1.0
[R3-rip-]q
[R3]

R4

The device is running!
######################
<Huawei>
Dec ::-: Huawei %%01IFPDT//IF_STATE(l)[]:Interface GigabitEt
hernet0// has turned into UP state.
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysn
[Huawei]sysname R4
[R4]int
[R4]interface G0//
[R4-GigabitEthernet0//]ip add 192.168.1.4
Dec ::-: R4 %%01IFNET//LINK_STATE(l)[]:The line protocol IP
on the interface GigabitEthernet0// has entered the UP state.
[R4-GigabitEthernet0//]q
[R4]rip
[R4-rip-]net
[R4-rip-]network 192.168.1.0
[R4-rip-]q

3、测试

R1上测试

 Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<R1>
<R1>
<R1>
<R1>
<R1>
<R1>dis ip rou
<R1>dis ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : Routes : Destination/Mask Proto Pre Cost Flags NextHop Interface 12.1.1.0/ Direct D 12.1.1.1 GigabitEthernet
//
12.1.1.1/ Direct D 127.0.0.1 GigabitEthernet
//
12.1.1.255/ Direct D 127.0.0.1 GigabitEthernet
//
127.0.0.0/ Direct D 127.0.0.1 InLoopBack0
127.0.0.1/ Direct D 127.0.0.1 InLoopBack0
127.255.255.255/ Direct D 127.0.0.1 InLoopBack0
172.16.0.0/ RIP D 12.1.1.2 GigabitEthernet
//
192.168.1.0/ RIP D 12.1.1.2 GigabitEthernet
//
255.255.255.255/ Direct D 127.0.0.1 InLoopBack0 <R1>ping 192.168.1.4
PING 192.168.1.4: data bytes, press CTRL_C to break
Request time out
Request time out
Reply from 192.168.1.4: bytes= Sequence= ttl= time= ms
Reply from 192.168.1.4: bytes= Sequence= ttl= time= ms
Reply from 192.168.1.4: bytes= Sequence= ttl= time= ms --- 192.168.1.4 ping statistics ---
packet(s) transmitted
packet(s) received
40.00% packet loss
round-trip min/avg/max = // ms <R1>ping 192.168.1.4
PING 192.168.1.4: data bytes, press CTRL_C to break
Reply from 192.168.1.4: bytes= Sequence= ttl= time= ms
Reply from 192.168.1.4: bytes= Sequence= ttl= time= ms
Reply from 192.168.1.4: bytes= Sequence= ttl= time= ms
Reply from 192.168.1.4: bytes= Sequence= ttl= time= ms
Reply from 192.168.1.4: bytes= Sequence= ttl= time= ms --- 192.168.1.4 ping statistics ---
packet(s) transmitted
packet(s) received
0.00% packet loss
round-trip min/avg/max = // ms

R4上测试

 Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<R4>dis ip rou
<R4>dis ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : Routes : Destination/Mask Proto Pre Cost Flags NextHop Interface 12.0.0.0/ RIP D 192.168.1.3 GigabitEthernet
//
127.0.0.0/ Direct D 127.0.0.1 InLoopBack0
127.0.0.1/ Direct D 127.0.0.1 InLoopBack0
127.255.255.255/ Direct D 127.0.0.1 InLoopBack0
172.16.0.0/ RIP D 192.168.1.3 GigabitEthernet
//
192.168.1.0/ Direct D 192.168.1.4 GigabitEthernet
//
192.168.1.4/ Direct D 127.0.0.1 GigabitEthernet
//
192.168.1.255/ Direct D 127.0.0.1 GigabitEthernet
//
255.255.255.255/ Direct D 127.0.0.1 InLoopBack0 <R4>ping 12.1.1.1
PING 12.1.1.1: data bytes, press CTRL_C to break
Reply from 12.1.1.1: bytes= Sequence= ttl= time= ms
Reply from 12.1.1.1: bytes= Sequence= ttl= time= ms
Reply from 12.1.1.1: bytes= Sequence= ttl= time= ms
Reply from 12.1.1.1: bytes= Sequence= ttl= time= ms
Reply from 12.1.1.1: bytes= Sequence= ttl= time= ms --- 12.1.1.1 ping statistics ---
packet(s) transmitted
packet(s) received
0.00% packet loss
round-trip min/avg/max = // ms

总结:
1.RIP协议如何工作?
在路由器上开启RIP协议,并将路由器的直连网段宣告进RIP后,RIP会将这些直连网段信息封装成RIP协议报文,
发送给邻居路由器。这样邻居路由器间就可以相互学习对方的网段信息,实现网络的互通。

2.如何配置基本的RIP网络?
第一步开启RIP协议,第二步将路由器的直连网段宣告进RIP协议。

3.RIP如何计算开销值?
RIP是基于跳数来计算的开销值。所谓跳数即是跨越网段的数量。
RIP路由的最大网络跳数为15,如果一条RIP路由的跳数到达16,路由器则认为该路由不可达。

HCNA配置RIPv1的更多相关文章

  1. 配置 RIPv1 和 RIPv2

    拓扑图 场景您是公司的网络管理员.您所管理的小型网络中包含三台路由器,并规划了五个网络.您需要在网络中配置RIP路由协议来实现路由信息的相互传输.最初使用的是RIPv1,后来发现RIPv2更有优势,于 ...

  2. HCNA配置静态LACP模式链路聚合

    1.静态LACP模式 静态LACP模式是一种利用LACP协议进行聚合参数协商.确定活动接口和非活动接口的链路聚合方式.该模式下,需手工创建Eth-Trunk,手工加入Eth-Trunk成员接口,由LA ...

  3. HCNA配置手工负载分担模式链路聚合

    一.配置手工负载分担模式链路聚合 链路聚合(Link Aggregation)是将—组物理接口捆绑在一起作为一个逻辑接口来增加带宽的一种方法,又称为多接口负载均衡组(Load Sharing Grou ...

  4. HCNA配置浮动静态路由

    1.拓扑图 2.配置IP R1 Please press enter to start cmd line! ############ <Huawei> Dec ::-: Huawei %% ...

  5. HCNA配置ssh远程登陆

    1.拓扑图 最终实现通过AR1 来SSH登陆到AR2 上 2.配置AR2为开启SSH服务 Please press enter to start cmd line! ############## &l ...

  6. HCNA配置telnet远程管理

    1.拓扑图 说明:通过配置最终能通过R5 用telnet协议登陆到R4上并将R4改名为R44 2.R4配置 <Huawei>sys Enter system view, return us ...

  7. HCNA配置接口IP地址

    1.拓扑图 2.R1配置 The device is running! <Huawei>sys <Huawei>system-view Enter system view, r ...

  8. HCNA配置console线路密码aaa认证

    Please check whether system data has been changed, and save data in time Configuration console time ...

  9. HCNA配置console线路密码password认证

    1.华为设备配置主机名<Huawei>system    <Huawei>system-view Enter system view, return user view wit ...

随机推荐

  1. innodb的读写参数优化

    (1)    读取参数,global buffer pool以及 local buffer Innodb_buffer_pool_size,理论上越大越好,建议服务器50%~80%,实际为数据大小80 ...

  2. python BeautifulSoup基本用法

    #coding:utf-8 import os from bs4 import BeautifulSoup #jsp 路径 folderPath = "E:/whm/google/src_j ...

  3. C++_对象之间的关系与继承

    派生类和基类之间的特殊关系是基于C++继承的底层模型的. 实际上,C++有3种继承方式:公有继承.保护继承.私有继承. 公有继承是最常见的关系,它建立一种is-a的关系,即派生类对象也是一种基类,可以 ...

  4. haproxy安装:

    haproxy安装: tar zxf haproxy-1.4.24.tar.gz            ##解压 yum install rpm-build -y                   ...

  5. hadoop单机配置

    条件: 先下载VMware1.2,然后安装. 下载ubuntu-1.4.05-desktop-amd64.iso.下载地址:http://mirrors.aliyun.com/ubuntu-relea ...

  6. 用dango框架搭建博客网站

    1.我早先下载了Anaconda35.0.1.但是Anaconda自带的编辑器Spyder我用的不太熟练.所以还是使用Pycharm来编辑代码.我的Pycharm试用期已经到了,所以需要注册码来使用P ...

  7. centeros 6.5 网络设置

    vi  /etc/sysconfig/network-script/ifcfg-eth0 关键点  nat设置中的网关,dhcp设置中起始网络地址跟结束ip地址,选择其中范围的一个即可 service ...

  8. SpringBoot中通过实现WebMvcConfigurer完成参数校验

    在Spring5.0和SpringBoot2.0中废弃了WebMvcConfigurerAdapter类. 现有两种解决方案 1 直接实现WebMvcConfigurer (官方推荐)2 直接继承We ...

  9. webstorm中.vue报错(es6语法报错)-转

    1.webstorm中es6语法报错,解决方法: 打开 Settings => Languages & Frameworks => Javascript把 Javascript L ...

  10. chrome 修改请求头的小工具

    chrome 网上应用店中搜索  ModHeader