zoukankan      html  css  js  c++  java
  • RIP路由协议(一)

    实验要求:使用RIPv2配置路由器,使路由器能接收到所有的路由条目

    拓扑如下:

    配置如下:

    R1
    enable 进入特权模式
    configure terminal  进入全局模式
    interface s0/0/0   进入端口
    ip address 192.168.1.1 255.255.255.0   设置IP地址
    clock rate 64000  设置同步时钟
    no shutdown   开启端口
    interface l0  创建并进入环回端口
    ip address 1.1.1.1 255.255.255.0  设置IP地址
    exit  返回上一级
    router rip  开启RIP协议
    version 2  选择版本为2
    no auto-summary  关闭路由汇总
    network 192.168.1.0  添加自身直通网段到RIP
    network 1.1.1.0  添加自身直通网段到RIP


    R2
    enable   进入特权模式
    configure terminal   进入全局模式
    interface s0/0/0  进入端口
    ip address 192.168.1.2 255.255.255.0  设置IP地址
    no shutdown   开启端口
    interface s0/0/1  进入端口
    ip address 192.168.2.1 255.255.255.0  设置IP地址
    clock rate 64000  设置同步时钟  
    no shutdown   开启端口
    exit   返回上一级
    router rip  开启RIP协议
    version 2  版本为2
    no auto-summary  关闭路由汇总功能
    network 192.168.1.0  添加直连网段到RIP
    network 192.168.2.0  添加直连网段到RIP


    R3
    enable  进入特权模式
    configure terminal   进入全局模式
    interface s0/0/0  进入端口
    ip address 192.168.3.1 255.255.255.0  设置IP地址
    clock rate 64000  设置同步时钟
    no shutdown   开启端口
    interface s0/0/1  进入端口
    ip address 192.168.2.2 255.255.255.0  设置IP地址
    no shutdown   开启端口
    exit   返回上一级
    router rip  开启RIP协议
    version 2  版本为2
    no auto-summary  关闭路由汇总
    network 192.168.2.0  添加直连网段到RIP
    network 192.168.3.0  添加直连网段到RIP


    R4
    enable  进入特权模式
    configure terminal    进入全局模式 
    interface s0/0/0  进入端口
    ip address 192.168.3.2 255.255.255.0  设置IP地址
    no shutdown   开启端口  
    interface l0  开启并进入环回端口
    ip address 2.2.1.1 255.255.255.0  设置IP地址
    interface l1  开启并进入环回端口
    ip address 2.2.2.1 255.255.255.0  设置IP地址
    interface l2  开启并进入环回端口
    ip address 2.2.3.1 255.255.255.0  设置IP地址
    interface l3  开启并进入环回端口
    ip address 2.2.4.1 255.255.255.0  设置IP地址
    exit   返回上一级
    router rip  开启RIP协议
    version 2  版本为2
    no auto-summary  关闭路由汇总
    network 192.168.3.0  添加直连网段到RIP  
    network 2.2.1.0  添加直连网段到RIP
    network 2.2.2.0  添加直连网段到RIP
    network 2.2.3.0  添加直连网段到RIP
    network 2.2.4.0  添加直连网段到RIP

  • 相关阅读:
    索引脚本实例1
    哈尔滨理工大学2016新生赛A题
    拒绝从入门到放弃_《Openstack 设计与实现》必读目录
    生成四位随机数,用于登录验证码制作。
    Python多线程学习(一、线程的使用)
    为什么在 React 16 版本中 render 阶段放弃了使用递归?
    “TensorFlow 开发者出道计划”全攻略,玩转社区看这里!
    【推荐】开源项目ElasticAmbari助力 ElasticSearch、Kibana、ambari服务高效运维管理
    nginx反向代理配置去除前缀
    LNMP架构部署(附:部署Discuz社区论坛Web应用)
  • 原文地址:https://www.cnblogs.com/guoshiyu/p/9212706.html
Copyright © 2011-2022 走看看