码迷,mamicode.com
首页 > 其他好文 > 详细

ospf引入外部路由

时间:2020-05-27 22:06:04      阅读:145      评论:0      收藏:0      [点我收藏+]

标签:span   round   work   ddr   style   link   rip   self   enc   

技术图片

 

 AR1配置

ospf 1 router-id 1.1.1.1 
 area 0.0.0.1 
  network 10.1.12.0 0.0.0.255 

AR2配置

ospf 1 router-id 2.2.2.2 
 area 0.0.0.0 
  network 10.1.23.0 0.0.0.255 
 area 0.0.0.1 
  network 10.1.12.0 0.0.0.255 

AR3配置

ospf 1 router-id 3.3.3.3 
 import-route static
 area 0.0.0.0 
  network 10.1.23.0 0.0.0.255 
#
ip route-static 10.4.1.0 255.255.255.0 10.1.34.4

AR4配置

ip route-static 0.0.0.0 0.0.0.0 10.1.34.3

测试

<AR1>ping 10.4.1.1
  PING 10.4.1.1: 56  data bytes, press CTRL_C to break
    Reply from 10.4.1.1: bytes=56 Sequence=1 ttl=253 time=30 ms
    Reply from 10.4.1.1: bytes=56 Sequence=2 ttl=253 time=40 ms
    Reply from 10.4.1.1: bytes=56 Sequence=3 ttl=253 time=30 ms
    Reply from 10.4.1.1: bytes=56 Sequence=4 ttl=253 time=30 ms
    Reply from 10.4.1.1: bytes=56 Sequence=5 ttl=253 time=20 ms

  --- 10.4.1.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/30/40 ms

<AR1>
<AR3>dis ospf lsdb ase self-originate

     OSPF Process 1 with Router ID 3.3.3.3
         Link State Database


  Type      : External
  Ls id     : 10.4.1.0
  Adv rtr   : 3.3.3.3  
  Ls age    : 1475 
  Len       : 36 
  Options   :  E  
  seq#      : 80000001 
  chksum    : 0xe6ce
  Net mask  : 255.255.255.0 
  TOS 0  Metric: 1 
  E type    : 2
  Forwarding Address : 0.0.0.0 
  Tag       : 1 
  Priority  : Low

 

ospf引入外部路由

标签:span   round   work   ddr   style   link   rip   self   enc   

原文地址:https://www.cnblogs.com/liujunjun/p/12976910.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!