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. 【Cracking the Code Interview(5th edition)】一、数组与字符串(C++)

    1.1 实现一个算法,确定一个字符串的所有字符是否全都不同.不允许使用额外的数据结构. 解答:这里假定字符集为ASCII码,可以与面试官沟通确认字符串使用的字符集.由于字符集是有限的,建立一个数组模拟 ...

  2. List<T> 循环修改其中的数据

    List<MyObject> myObject = new List<MyObject>(); myObject.ForEach(w => { w.字段1=123: if ...

  3. Python自动化开发学习20-Django的form组件

    武沛齐老师的Django的FORM组件:http://www.cnblogs.com/wupeiqi/articles/6144178.html 转自:http://blog.51cto.com/st ...

  4. 图片滚动插件jquery bxslider

    https://www.cnblogs.com/axl234/p/4167196.html

  5. C++_引用变量探究

    什么是引用 引用变量是已定义变量的别名. 如何定义引用变量: int rats; int & rodents = rats; 其中&不失地址运算符,而是类型标识符的一部分.就行声明ch ...

  6. P2896 [USACO08FEB]一起吃饭Eating Together

    传送门 可以考虑DP 设 f [ i ] [ 1/2/3 ] [ 0/1 ] 表示当前考虑到第 i 头牛,打算让当前位置的编号变成 1/2/3,并且打算让整段序列上升/下降 0/1 然后就对每种情况慢 ...

  7. HDU 4507 求指定范围内与7不沾边的所有数的平方和 (数位DP)

    题意:求区间[l,r]内所有与7无关的数的平方和(取模)定义与7无关的数:                                      1.数字的数位上不能有7              ...

  8. LeeCode(5. Longest Palindromic Substring)

    Given a string s, find the longest palindromic substring in s. You may assume that the maximum lengt ...

  9. day 012 生成器 与 列表推导式

    生成器的本质就是迭代器,写法和迭代器不一样,用法一样. 获取方法: 1.通过生成器函数 2.通过各种推导式来实现生成器 3.通过数据的转换也可以获取生成器 例如: 更改return 为 yield 即 ...

  10. 17-----BBS论坛

    BBS论坛(十七) 17.首页导航条实现和代码抽离 (1)temlates/common/_head.html <meta name="csrf-token" content ...