• 思科设备配置路由重发布


    在这里插入图片描述

    1.配置IP地址
    R1#conf t
    R1(config)#int f0/0
    R1(config-if)#ip add 12.1.1.1 255.255.255.0
    R1(config-if)#no shutdown
    R1(config)#int loopback 1
    R1(config-if)#ip add 1.1.1.1 255.255.255.0
    R1(config-if)#no shutdown
    R2#conf t
    R2(config)#int f0/0
    R2(config-if)#ip add 12.1.1.2 255.255.255.0
    R2(config-if)#no shutdown
    R2(config-if)#int f0/1
    R2(config-if)#ip add 23.1.1.2 255.255.255.0
    R2(config-if)#no shutdown
    R2(config)#int loopback 1
    R2(config-if)#ip add 2.2.2.2 255.255.255.0
    R2(config-if)#no shutdown
    R3#conf t
    R3(config)#int f0/0
    R3(config-if)#ip add 23.1.1.3 255.255.255.0
    R3(config-if)#no shut
    R3(config)#int loopback 1
    R3(config-if)#ip add 3.3.3.3 255.255.255.0
    R3(config-if)#no shutdown
    2.配置ospf
    R2(config)#router ospf 110
    R2(config-router)#router-id 2.2.2.2
    R2(config-router)#network 23.1.1.0 0.0.0.255 area 0
    R2(config-router)#int f0/1
    R2(config-if)#ip ospf network point-to-point
    R3(config)#router ospf 110
    R3(config-router)#router-id 3.3.3.3
    R3(config-router)#network 23.1.1.0 0.0.0.255 area 0
    R3(config-router)#passive-interface loopback 1
    R3(config-router)#network 3.3.3.0 0.0.0.255 area 0
    R3(config-router)#int f0/0
    R3(config-if)#ip ospf network point-to-point
    R3(config)#int lo 1
    R3(config-if)#ip ospf network point-to-point
    3.配置eigrp
    R1(config)#router eigrp 90
    R1(config-router)#no auto-summary
    R1(config-router)#network 12.1.1.0 0.0.0.255
    R1(config-router)#network 1.1.1.0 0.0.0.255
    R1(config-router)#passive-interface loopback 1
    R2(config)#router eigrp 90
    R2(config-router)#no auto-summary
    R2(config-router)#network 12.1.1.0 0.0.0.255
    4.将ospf重发布到eigrp
    R2(config)#router eigrp 90
    R2(config-router)#redistribute ospf 110 metric 100000 1000 255 1 1500
    5. 将eigrp重发布到ospf
    R2(config)#router ospf 110
    R2(config-router)#redistribute eigrp 90 subnets metric-type 1 metric 30

  • 相关阅读:
    链表OJ(2)
    Linux更新g++
    docker pull 拉取镜像报错
    基于SSM的家庭理财系统的设计与实现
    Java中的线程
    Lua 事件触发机制(注册,触发)
    英语连词总结
    Java:String、StringBuffer和StringBuilder的区别学习
    新外卖霸王餐小程序、H5、微信公众号版外卖系统源码
    101 本地存储
  • 原文地址:https://blog.csdn.net/Tony_long7483/article/details/126951155