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

  • 相关阅读:
    《UNIX环境高级编程》笔记--UNIX标准化及实现
    SPOJ1811最长公共子串问题(后缀自动机)
    一个leetcode解题报告类目,代码很简洁
    字符压缩题目
    求最佳会议地点
    实现树的横向指针
    lower_bound与upper_bound
    求到所有房子距离和最小的新房子
    增加限制条件的矩阵求和
    切分数组来得到一定的和
  • 原文地址:https://www.cnblogs.com/guoshiyu/p/9212706.html
Copyright © 2011-2022 走看看