华为模拟器eNSP练习题-RIP

 题目要求:

1、R3环回为3.3.3.0/24
2、其他基于192.168.1.0/24进行划分
3、R1/R2均存在两个环回
4、整个网络运行RIPV2,但不能直接宣告R3的环回
5、全网可达,保障更新安全,减少路由条目数量,避免环路。

 解题步骤:

1、数广播域:

        三个路由器,骨干链路上有2个广播域;

        R1/R2均存在两个环回地址,4个广播域,共6个广播域。

2、子网划分:

先借2位主机位,做为网络为,可以分出四个网段。

192.168.1.0/24
    192.168.1.00 000000/26
    192.168.1.01 000000/26
    192.168.1.10 000000/26
    192.168.1.11 000000/26

从第一个掩码为26的网段中借4位主机位,做完网络位。因为30网段的主机数量为2,可以分配给路由器的两个接口。

192.168.1.0/24
    192.168.1.00 000000/26 -- 骨干链路
        192.168.1.00 0000 00/30
        192.168.1.00 0001 00/30
    192.168.1.01 000000/26
    192.168.1.10 000000/26
    192.168.1.11 000000/26

选择两个26掩码的网段,从中借1位主机位做完网络位。

192.168.1.0/24
    192.168.1.00 000000/26 --骨干
        192.168.1.00 0000 00/30 -192.168.1.0/30
        192.168.1.00 0001 00/30 -192.168.1.4/30

    192.168.1.01 000000/26 --R1环回
        192.168.1.01 0 00000/27 -192.168.1.64/27
        192.168.1.01 1 00000/27 -192.168.1.96/27

    192.168.1.10 000000/26 --R2环回
        192.168.1.10 0 00000/27 -192.168.1.128/27
        192.168.1.10 1 00000/27 -192.168.1.160/27

    192.168.1.11 000000/26

3、配置命令:

        RIP的配置:

        [r1]rip 1 --- 启动RIP进程,仅具有本地意义,区分多个RIP进程若不带进程号默认进入进程1

        [r1-rip-1]version 1 ---选择RIP版本号

        [r1-rip-1]network 1.0.0.0 --- (1)所有直连网段都要宣告(2)必须按照主类宣告

        [r1]display rip 1 route ---查看RIP路由表

        [r1-GigabitEthernet0/0/0]rip summary-address 192.168.1.64 255.255.255.192

        [r1-GigabitEthernet0/0/0]rip summary-address 汇总后的网段 掩码---RIPV2的手工汇总

        [r1-rip-1]default-route originate ---缺省路由,若在R3设置,R1/R2自动发布指向R3的缺省路由。

R1:

sys
sys r1
int g0/0/0
ip add 192.168.1.1 30
int l0
ip add 192.168.1.65 27
int l1
ip add 192.168.1.97 27
rip 1
v 2
n 192.168.1.0
int g0/0/0
rip su 192.168.1.64 255.255.255.192
dis rip 1 rou

R2:

sys
sys r2
int g0/0/0
ip add 192.168.1.2 30
int g0/0/1
ip add 192.168.1.5 30
int l0
ip add 192.168.1.129 27
int l1
ip add 192.168.1.161 27
rip 1
v 2
n 192.168.1.0
int g0/0/0
rip su 192.168.128 255.255.255.192
int g 0/0/1
rip su 192.168.128 255.255.255.192
dis rip 1 rou

R3:

sys
sys r3
int g0/0/1
ip add 192.168.1.6 30
int l0
ip add 3.3.3.1 24
rip 1
v 2
n 192.168.1.0
default-route originate
dis rip 1 rou

验证:

拓扑图:

猜你喜欢

转载自blog.csdn.net/z99533/article/details/121336880