zoukankan      html  css  js  c++  java
  • 神州数码路由重分布配置

    实验要求:掌握路由重分布的配置

    拓扑如下

    R1

    enable  进入特权模式

    config  进入全局模式

    hostname R1  修改名称

    interface l0  进入端口

    ip address 192.168.3.254 255.255.255.0  设置IP地址

    interface s0/1  进入端口

    ip address 192.168.1.1 255.255.255.0  设置IP地址

    physical-layer speed 64000  设置同步时钟

    exit  返回上一级

    router rip  启动RIP协议

    version 2  选择版本

    network 192.168.1.0  添加直连网段到RIP

    network 192.168.3.0  添加直连网段到RIP

     

    R2

    enable  进入特权模式

    config  进入全局模式

    hostname R2  修改名称

    interface s0/1  进入端口

    ip address 192.168.2.1 255.255.255.0  设置IP地址

    physical-layer speed 64000  设置同步时钟

    interface s0/2  进入端口

    ip address 192.168.1.2 255.255.255.0  设置IP地址

    physical-layer speed 64000  设置同步时钟

    exit  返回上一级

    router ospf 1  启动OSFP协议

    network 192.168.2.0 255.255.255.0 area 0  添加直连网段到OSPF

    redistribute rip  将RIP协议重分布到OSPF

    redistribute connect    将直连网段重分布到OSPF

    exit  返回上一级

    router rip  启动RIP协议

    version 2  选择版本

    network 192.168.1.0  将直连网段添加到RIP

    redistribute ospf 1  将OSPF重分布到RIP

    redistribute connect  将直连网段重分布到RIP

     

    R3

    enable  进入特权模式

    config  进入全局模式

    hostname R3  修改名称

    interface l0  进入端口

    ip address 192.168.4.254 255.255.255.0  设置IP地址

    interface s0/2  进入端口

    ip address 192.168.2.2 255.255.255.0    设置IP地址

    physical-layer speed 64000  设置同步时钟

    exit  返回上一级

    router ospf 1  启动OSPF协议

    network 192.168.2.0 255.255.255.0 area 0  添加直连网段到OSPF

    network 192.168.4.0 255.255.255.0 area 0  添加直连网段到OSPF

     

    相关命令

    redistribute connect     将直连网段重分布到协议中

    redistribute rip        RIP重分布到协议中

    redistribute ospf [进程号]     OSPF重分布到协议中

  • 相关阅读:
    std::sort运行出core(segment fault)
    C++编译报错:重复定义
    《改变世界的九大算法》读书笔记
    简单排序实现
    Django 常见错误总结
    python 进行机器学习
    python中matplotlib 的简单使用
    十四:生成器函数和迭代器函数
    十三:装饰器函数
    十二:重要的内置函数
  • 原文地址:https://www.cnblogs.com/guoshiyu/p/9324231.html
Copyright © 2011-2022 走看看