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

  • 相关阅读:
    yum提示Another app is currently holding the yum lock
    函数参数返回值作用域笔记
    递归内置函数笔记
    装饰器笔记
    函数笔记扩展
    集合笔记
    线程和进程
    函数笔记
    线程与进程的区别
    Ubuntu操作及各种命令笔记.txt
  • 原文地址:https://www.cnblogs.com/guoshiyu/p/9212706.html
Copyright © 2011-2022 走看看