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

缺省静态路由发布进OSPF

时间:2020-06-01 23:35:35      阅读:93      评论:0      收藏:0      [点我收藏+]

标签:span   oop   network   ace   port   size   default   ddr   int   

技术图片

 

 AR2配置

interface GigabitEthernet0/0/0
 ip address 12.1.1.2 255.255.255.0 
#
interface GigabitEthernet0/0/1
 ip address 192.168.10.254 255.255.255.0 

interface LoopBack0
 ip address 2.2.2.2 255.255.255.255 
#
ospf 1 router-id 2.2.2.2 
 area 0.0.0.0 
  network 2.2.2.2 0.0.0.0 
  network 12.1.1.0 0.0.0.255 
  network 192.168.10.0 0.0.0.255 

AR1配置

interface GigabitEthernet0/0/0
 ip address 12.1.1.1 255.255.255.0 
#
interface GigabitEthernet0/0/1
 ip address 13.1.1.1 255.255.255.0 

interface LoopBack0
 ip address 1.1.1.1 255.255.255.255 
#
ospf 1 router-id 1.1.1.1 
 default-route-advertise
 import-route ospf 2
 area 0.0.0.0 
  network 1.1.1.0 0.0.0.255 
  network 12.1.1.0 0.0.0.255 
#
ospf 2 router-id 1.1.1.1 
 import-route ospf 1
 area 0.0.0.0 
  network 13.1.1.0 0.0.0.255 
#
ip route-static 0.0.0.0 0.0.0.0 13.1.1.3

AR3配置

interface GigabitEthernet0/0/0
 ip address 34.1.1.3 255.255.255.0 
#
interface GigabitEthernet0/0/1
 ip address 13.1.1.3 255.255.255.0 

interface LoopBack0
 ip address 3.3.3.3 255.255.255.255 
#
ospf 2 router-id 3.3.3.3 
 area 0.0.0.0 
  network 13.1.1.0 0.0.0.255 
#
ip route-static 0.0.0.0 0.0.0.0 34.1.1.4

AR4配置

interface GigabitEthernet0/0/0
 ip address 34.1.1.4 255.255.255.0 
#
interface GigabitEthernet0/0/1
 ip address 192.168.20.254 255.255.255.0 

interface LoopBack0
 ip address 4.4.4.4 255.255.255.255 
#
ip route-static 0.0.0.0 0.0.0.0 34.1.1.3

 

缺省静态路由发布进OSPF

标签:span   oop   network   ace   port   size   default   ddr   int   

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

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