• 神州数码静态路由及直连网段引入到RIP协议配置(路由重定向)


    实验要求:掌握静态路由及直连网段引入协议当中的配置

    拓扑如下

    R1

    enable  进入特权模式

    config  进入全局模式

    hostname R1  修改名称

    interface g0/6  进入端口

    ip address 192.168.2.254 255.255.255.0  设置IP地址

    no shutdown  开启端口

    interface s0/1  进入端口

    ip address 192.168.1.1 255.255.255.0  设置IP地址

    physical-layer speed 64000  设置同步时钟

    no shutdown  开启端口

    exit  返回上一级

    ip route 0.0.0.0 0.0.0.0 192.168.1.2  添加静态路由

      

    R2

    enable  进入特权模式

    config  进入全局模式

    hostname R2  修改名称

    interface g0/6  进入端口

    ip address 192.168.3.1 255.255.255.0  设置IP地址

    no shutdown  开启端口

    interface s0/2  进入端口

    ip address 192.168.1.2 255.255.255.0  设置IP地址

    physical-layer speed 64000  设置同步时钟

    no shutdown  开启端口

    exit  返回上一级

    ip route 192.168.2.0 255.255.255.0 192.168.1.1  添加静态路由

    router rip  启动RIP协议

    version 2  选择版本

    network 192.168.3.0  添加直连网段到RIP

    redistribute static  引入静态路由

    redistribute connect  引入直连网段

    R3

    enable  进入特权模式

    config  进入全局模式

    hostname R3  修改名称

    interface g0/6  进入端口

    ip address 192.168.3.2 255.255.255.0  设置IP地址

    no shutdown  开启端口

    exit  返回上一级

    router rip  启动RIP协议

    version 2  选择版本

    network 192.168.3.0  添加直连网段到RIP

    相关命令

    ip route 0.0.0.0 0.0.0.0 [下一跳地址]   设置缺省路由

    redistribute [重定向路由的类型]     路由重定向

          --ospf

          --rip

          --static

          --connect

          --beigrp

          --bgp

          --Isis

  • 相关阅读:
    电源积累
    电感的分类及作用
    电容退耦原理分享
    电容选型
    上拉电阻
    LVTTL与LVCMOS区别
    可重入函数与不可重入函数
    永不改变的PCB设计黄金法则
    os_cpu_a.asm
    [原创]Getting Started with Skywalking
  • 原文地址:https://www.cnblogs.com/guoshiyu/p/9319790.html
Copyright © 2020-2023  润新知