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

  • 相关阅读:
    html 注释和特殊字符
    html 锚点链接
    html 链接标签
    spring 利用工厂模式解耦
    html 路径
    html 图像标签
    html div和span标签
    html 文本格式化标签
    P5358 [SDOI2019]快速查询
    luoguP2679 子串
  • 原文地址:https://www.cnblogs.com/guoshiyu/p/9324231.html
Copyright © 2011-2022 走看看