eNSP RIPv2配置

一、分配IP

 此处列举R1的配置

[r1]int loop 1
[r1-LoopBack1]ip ad 192.168.1.5 30
[r1-LoopBack1]int loop 2
[r1-LoopBack2]ip ad 192.168.1.9 30
[r1-LoopBack2]int g0/0/0
[r1-GigabitEthernet0/0/0]ip ad 192.168.1.1 30
Jul 11 2022 23:57:49-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the interface GigabitEthernet0/0/0 has entered the UP state. 

二、启用RIPv2

R1

[r1]rip 1                       创建rip 1
[r1-rip-1]version 2             选择版本为RIPv2
[r1-rip-1]network 192.168.1.0   宣告主类网段

[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]rip summary-address 192.168.1.0 255.255.255.248
###将两个环回接口进行汇总,在更新源路由器上,所有更新发出的接口上配置###

[r1-GigabitEthernet0/0/0]rip authentication-mode md5 usual cipher 123
###邻居间收发的RIP消息中进行身份核实口令添加;同时华为在接口开启认证后,   ###
###所有rip的信息将被加密传输,两两直连的邻居间,认证口令和模式必须完全一致 ###

R2

[r2]rip 1                       创建rip 1
[r2-rip-1]version 2             选择版本为RIPv2
[r2-rip-1]network 192.168.1.0   宣告主类网段

[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]rip summary-address 192.168.1.0 255.255.255.240
[r2]int g0/0/1
[r2-GigabitEthernet0/0/1]rip summary-address 192.168.1.0 255.255.255.224
###R2有两个更新出发接口,面向R1和R3                              ###
###将两个环回接口和R1和R2的干路进行汇总,在更新源路由器上,所有更新发出的接口上配置###

[r2-GigabitEthernet0/0/0]rip authentication-mode md5 usual cipher 123
###与R1之间做个验证接口                                                ###
###邻居间收发的RIP消息中进行身份核实口令添加;同时华为在接口开启认证后,   ###
###所有rip的信息将被加密传输,两两直连的邻居间,认证口令和模式必须完全一致 ###

R3

[r3]rip 1                       创建rip 1
[r3-rip-1]version 2             选择版本为RIPv2
[r3-rip-1]network 192.168.1.0   宣告主类网段

[r3-rip-1]default-route originate
###在边界路由器上定义缺省源头信息后,将向内网发布缺省路由;###
###之后内部路由器将自动生成缺省路由指向边界路由器方向;    ###
###边界路由器指向ISP的缺省路由,依然需要手写             ###
###R3为边界路由器###

四、测试

1、R1访问3.3.3.0/24

[r1]ping 3.3.3.1
  PING 3.3.3.1: 56  data bytes, press CTRL_C to break
    Request time out
    Reply from 3.3.3.1: bytes=56 Sequence=2 ttl=254 time=30 ms
    Reply from 3.3.3.1: bytes=56 Sequence=3 ttl=254 time=30 ms
    Reply from 3.3.3.1: bytes=56 Sequence=4 ttl=254 time=30 ms
    Reply from 3.3.3.1: bytes=56 Sequence=5 ttl=254 time=30 ms

  --- 3.3.3.1 ping statistics ---
    5 packet(s) transmitted
    4 packet(s) received
    20.00% packet loss
    round-trip min/avg/max = 30/30/30 ms

2、R1访问R2的环回和192.168.1.20/30

[r1]ping 192.168.1.13  ###访问R2环回
  PING 192.168.1.13: 56  data bytes, press CTRL_C to break
    Reply from 192.168.1.13: bytes=56 Sequence=1 ttl=255 time=20 ms
    Reply from 192.168.1.13: bytes=56 Sequence=2 ttl=255 time=20 ms
    Reply from 192.168.1.13: bytes=56 Sequence=3 ttl=255 time=30 ms
    Reply from 192.168.1.13: bytes=56 Sequence=4 ttl=255 time=20 ms
    Reply from 192.168.1.13: bytes=56 Sequence=5 ttl=255 time=30 ms

  --- 192.168.1.13 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/24/30 ms



[r1]ping 192.168.1.29    ###访问192.168.1.20/30网段
  PING 192.168.1.29: 56  data bytes, press CTRL_C to break
    Reply from 192.168.1.29: bytes=56 Sequence=1 ttl=255 time=20 ms
    Reply from 192.168.1.29: bytes=56 Sequence=2 ttl=255 time=20 ms
    Reply from 192.168.1.29: bytes=56 Sequence=3 ttl=255 time=30 ms
    Reply from 192.168.1.29: bytes=56 Sequence=4 ttl=255 time=30 ms
    Reply from 192.168.1.29: bytes=56 Sequence=5 ttl=255 time=40 ms

  --- 192.168.1.29 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/28/40 ms

完成

  • 1
    点赞
  • 15
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值