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重分布到协议中

  • 相关阅读:
    利用itextsharp.dll 导出pdf格式文件
    Oracle 连接失去联系、链接空闲例程
    Log4net用法
    oracle 用户锁定(ORA28000:the account is locked)的解锁方法:
    智能提示框设计 仿携程
    利用System.Net.Mail 的SmtpClient发送邮件
    CTE实现嵌套递归
    读入excel中的数据到数据库中
    项目发布遇见的问题的整理
    JavaScript substring() 方法
  • 原文地址:https://www.cnblogs.com/guoshiyu/p/9324231.html
Copyright © 2011-2022 走看看