亲宝软件园·资讯

展开

华为路由器 eNSP 配置 rip OSPF 路由重发布

软件云 人气:0

  1:给R1 g0/0/1 Loopback 0  R2 g0/0/1 g0/0/0 Loopback    R3 g0/0/0 配置 area1

  2:给R3 g0/0/1 Loopback 0  R4 g0/0/1                                   配置area0

  3: 给R4 g0/0/0 Loopback 0  R5 g0/0/0 Loopback                  配置area2

  4: 给R6 R1配rip

  5: 给R1 R2 R3 R4 R5 配 OSPF

  R1:
  sy
  int g0/0/1
  ip add 11.0.0.1 255.255.255.0
  int g0/0/0
  ip add 16.0.0.1 255.255.255.0
  int LoopBack 0                                          配置还回口
  ip add 1.1.1.1 255.255.255.255 
  q
  router id 1.1.1.1                                       配route id
  ospf 1                                                 进入ospf 1  (OSPF默认就是1可以直接输入OSPF)
  area 1                                                  进入area 1
  network 1.1.1.1 0.0.0.255                               说 1.1.1.1  
  network 11.0.0.0 0.0.0.255                              说 11.0.0.0
  q                                                       退回
  q 
 
  R2:
  sy
  int g0/0/1
  ip add 11.0.0.2 255.255.255.0
  int g0/0/0
  ip add 12.0.0.1 255.255.255.0
  q
  int LoopBack 0
  ip add 2.2.2.2 255.255.255.255
  q
  router id 2.2.2.2
  ospf 1
  area 1
  network 2.2.2.2 0.0.0.255
  network 0.0.0.0 255.255.255.255
  q
  q
 
  R3:
  sy
  int g0/0/0
  ip add 12.0.0.2 255.255.255.0
  int g0/0/1
  ip add 13.0.0.1 255.255.255.0
  int LoopBack 0
  ip add 3.3.3.3 255.255.255.255
  q
  router id 3.3.3.3
  ospf 1
  area 1
  network 12.0.0.0 0.0.0.255
  q
  area 0
  network 3.3.3.3 0.0.0.255
  network 13.0.0.0 0.0.0.255
  q
  q
 
  R4:
  sy
  int g0/0/1
  ip add 13.0.0.2 255.255.255.0
  int g0/0/0
  ip add 14.0.0.1 255.255.255.0
  int LoopBack 0
  ip add 4.4.4.4 255.255.255.255
  q
  router id 4.4.4.4
  ospf 1
  area 0
  network 13.0.0.0 0.0.0.255
  q
  area 2
  network 4.4.4.4  0.0.0.255
  network 14.0.0.0 0.0.0.255
  q
  q
 
  R5:
  sy
  int g0/0/0
  ip add 14.0.0.2 255.255.255.0
  int LoopBack 0
  ip add 5.5.5.5 255.255.255.255
  q
  router id  5.5.5.5
  ospf 1
  area 2
  network 5.5.5.5 0.0.0.255
  network 14.0.0.0 0.0.0.255
  q
  q
 
  R1  
  rip
  version 2
  un summary
  network 16.0.0.0
  import-route ospf cost 1         
  ospf 1
  import-route rip cost 2
 
  R6
  int g0/0/0
  ip add 16.0.0.2 255.255.255.0
  int LoopBack 0
  ip add 6.6.6.6 255.255.255.255
  q
  router id  6.6.6.6
  rip
  version 2
  un summary
  network 16.0.0.0
  network 6.0.0.0
  q

  末梢区域过滤掉 4 5 7  类

  R4 R5上设置 非纯末梢

  [Huawei]ospf 10

  [Huawei-ospf-10]area 2

  [Huawei-ospf-10-area-0.0.0.2]stub

  在R5查看

  4类 5类没了 3类还在

  以上就是给华为路由器eNSP 配置 rip OSPF 路由重发布的全部过程,这样就可以优化性能了,在此感谢本文的原创出处 “网络技术” 博客:http://funinghua.blog.51cto.com/9125449/1548455,谢谢阅读,希望能帮到大家,请继续关注软件云,我们会努力分享更多优秀的文章。

加载全部内容

相关教程
猜你喜欢
用户评论