RIP协议实验

文章详细描述了192.168.1.0/24网络的子网划分,包括骨干、路由器接口IP分配、环回地址以及用户段。接着,配置了RIP版本2协议,并实施了认证机制。此外,进行了路由汇总以优化路由表,并通过静态路由避免环路问题。
摘要由CSDN通过智能技术生成

192.168.1.0/24 划分:

骨干:192.168.1.00 000000

           192.168.1.0/26

r1--r2:192.168.1.00 0 00000

          192.168.1.0/27

r2--r3:192.168.1.00 1 00000

          192.168.1.32/27

用户(r1):192.168.1.01 000000

           192.168.1.64/26

环回: 192.168.1.01 0 00000

            192.168.1.64/27

环回: 192.168.1.01 1 00000

            192.168.1.95/27

用户(r2):192.168.1.10 000000

           192.168.1.128/26

环回:192.168.1.10 0 00000

           192.168.1.128/27

环回: 192.168.1.10 1 00000

           192.168.1.160/27

r1写IP:                                               r2写IP:                                           r3写IP:

sys                                                     sys                                                   sys

int g 0/0/0                                           int g 0/0/0                                         int g 0/0/0

ip add 192.168.1.1 27                        ip add 192.168.1.2 27                     ip add 192.168.1.34 27

                                                            int g 0/0/1

                                                           ip add 192.168.1.33 27                       

int l0                                                   int l0                                                int l0

ip add 192.168.1.65 27                      ip add 192.168.1.129 27                ip add 3.3.3.3 24

int  l1                                                  int  l1

ip add 192.168.1.96 27                     ip add 192.168.1.161 27

书写RIP协议:

r1:  rip 1                                    r2:rip 1                                  r3:      rip 1

      version  2                                 version  2                                  version  2

       network  192.168.1.0            network 192.168.1.0                    network 192.168.1.0

                                                                                                      书写缺省:

                                                                                                          default-route originate

                                                   

书写手工认证:

r1:int g 0/0/0

    rip  authentication-mode md5 usual plain 123456

r2:int g 0/0/0

   rip  authentication-mode md5 usual plain 123456

r2:int g 0/0/1

   rip  authentication-mode md5 usual plain 654321

r3:int g 0/0/0

    rip  authentication-mode md5 usual plain 654321

汇总:r1:

                int g 0/0/0

                rip summary-address 192.168.1.64 255.255.255.192

           r2:

                int g 0/0/0

                rip summary-address 192.168.1.128 255.255.255.192

避免环路:

                  r1:

                       Ip  route-static 192.168.1.64 26 null 0

                  r2:

                       Ip  route-static 192.168.1.128 26 null 0

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值