思科Sisco GNS3配置RIP与OSPF路由重发布

来源:网友推荐     更新:2024-05-15

路由重分发是在大型的企业中,可能在同一网内使用到多种路由协议,为了实现多种路由协议的协同工作,路由器可以使用路由重分发(route redistribution)将其学习到的一种路由协议的路由通过另一种路由协议广播出去,这样网络的所有部分都可以连通了。 为了实现重分发,路由器必须同时运行多种路由协议,这样,每种路由协议才可以取路由表中的所有或部分其他协议的路由来进行广播。那么思科Sisco路由器如何配置RIP与OSPF路由重发布?下面是具体步骤。

配置RIP与OSPF路由重发布的步骤:

1::给R1 0/1 R2 0/1 0/0 look 0 R3 0/0 配置OSPF 放入aren1

2:给R3 0/0 look 0  R4 0/1 配置OSPF 放入aren0

3: 给R4 0/0 look 0 R5 0/0 look 0 放入 aren 2

4:给R1 0/0 look 0 R6 0/0 look 0 放入version 3

5:给R6 R1 配rip

6:给R1 R2 R3 R4 R5 配OSPF

7:实现互通

复制代码

  

代码如下:

R1

  conf t

  int f0/1

  ip add 11.0.0.1 255.255.255.0

  no sh

  int f0/0

  ip add 16.0.0.1 255.255.255.0

  no sh

  exit

  int l0

  ip add 1.1.1.1 255.255.255.255

  no sh

  exit

  router ospf 1

  router-id 1.1.1.1

  network 11.0.0.0 0.0.0.255 area 1 放入area1network 1.1.1.0 0.0.0.0 area 1end

  write

  R2

  conf t

  int f0/1

  ip add 11.0.0.2 255.255.255.0

  no sh

  int f0/0

  ip add 12.0.0.1 255.255.255.0

  no sh

  exit

  int l0

  ip add 2.2.2.2 255.255.255.255

  no sh

  exit

  router ospf 1

  router-id 2.2.2.2

  network 0.0.0.0 255.255.255.255 area 1

  end

  write

  R3

  conf t

  int f0/0

  ip add 12.0.0.2 255.255.255.0

  no sh

  int f0/1

  ip add 13.0.0.1 255.255.255.0

  no sh

  exit

  int L0

  ip add 3.3.3.3 255.255.255.255

  no sh

  exit

  router ospf 1

  router-id 3.3.3.3

  network 12.0.0.0 0.0.0.255 area 1

  network 13.0.0.0 0.0.0.255 area 0

  network 3.3.3.3 0.0.0.0 area 0

  end

  write

  R4

  conf t

  int f0/1

  ip add 13.0.0.2 255.255.255.0

  no sh

  int f0/0

  ip add 14.0.0.1 255.255.255.0

  no sh

  exit

  int l0

  ip add 4.4.4.4 255.255.255.255

  no sh

  exit

  router ospf 1

  router-id 4.4.4.4

  network 13.0.0.0 0.0.0.255 area 0

  network 14.0.0.0 0.0.0.255 area 2

  network 4.4.4.4 0.0.0.0 area 2

  end

  write

  R5

  conf t

  int f0/0

  ip add 14.0.0.2 255.255.255.0

  no sh

  exit

  int l0

  ip add 5.5.5.5 255.255.255.255

  no sh

  exit

  router ospf 1

  router-id 5.5.5.5

  network 0.0.0.0 255.255.255.255 area 2

  end

  write

  R1

  conf t

  int f0/0

  ip add 16.0.0.1 255.255.255.0

  no sh

  exit

  router rip

  version 2 进V2版本

  no auto-summary

  network 1.1.1.0

  network 16.0.0.0

  end

  write

  R6

  conf t

  int f0/0

  ip add 16.0.0.2 255.255.255.0

  no sh

  int l0

  ip add 6.6.6.6 255.255.255.255

  no sh

  exit

  router rip

  version 2

  no auto-summary

  network 6.6.6.0

  network 16.0.0.0

  end

  write

  show ip ospf database router

  R1

  router ospf 1

  redistribute rip subnets metric 25 metric-type 1exitrouter ripredistribute ospf 1 metric 2

做优化

复制代码

  

代码如下:

R5#conf t

  R5(config)#router ospf 1

  R5(config-router)#area 2 stub no-summary

把3类 4类 5类 都去了以上就是思科 GNS3 配置 rip OSPF 路由重发布,在此感谢本文的原创分享“网络技术” 博客,请务必保留此出处http://funinghua.blog.51cto.com/9125449/1548456,谢谢阅读,希望能帮到大家,请继续关注脚本之家,我们会努力分享更多优秀的文章。



相关链接

  • hkc是什么牌子
  • 思科设备官网
  • 思科交换机配置命令
  • 思科交换机console连接
  • cisco思科官网售后电话
  • 来自于网友分享,若有事请联系
    © 好有爱分享网