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

  • 相关阅读:
    2808 SCI中断发送
    头文件定义全局变量的几个问题
    关于多文件引用头文件变量重复定义的解决办法【BCB2010环境】
    程序中代码实现的图标,Marlett字体的对应关系
    C++ builder报错
    华硕A43系列笔记本卡解决办法
    磁盘对齐4k
    编译指令#pragma详解
    ASCII码表控制字符的确切含义
    win7无损分区轻松实现,不使用工具实现无损分区
  • 原文地址:https://www.cnblogs.com/guoshiyu/p/9212706.html
Copyright © 2011-2022 走看看