OSPF多区域+虚链路+默认路由或静态路由_绿色软件之家

绿色软件之家:您身边最放心的安全下载站! 最新更新|软件分类|软件专题|手机版|系统之家|纯净系统

您当前所在位置:首页系统集成网络管理 → OSPF多区域+虚链路+默认路由或静态路由

OSPF多区域+虚链路+默认路由或静态路由

时间:2015/6/28来源:绿色软件之家作者:网管联盟我要评论(0)

  topo:

  

 

  实验说明:

  1.在上面拓扑图中,R1\R2\R3\R4四台router分别设置三个loopback口(图上画不出来滴-_-|).

  R1:171.16.1.1/24、171.16.2.1/24、171.16.3.1/24

  R2: 172.16.1.1/24、172.16.2.1/24、172.16.3.1/24

  R3: 173.16.1.1/24、173.16.2.1/24、173.16.3.1/24

  R4: 174.16.1.1/24、174.16.2.1/24、174.16.3.1/24

  2.在整个拓扑中,使用OSPF划分成3个area:

  area 0 : 171.16.0.0/22、10.10.10.0/24

  area 1 : 172.16.0.0/22、20.20.20.0/24、173.16.0.0/22

  area 2 : 174.16.0.0/22、192.168.1.0/24 30.30.30.0/24

  实验目的:

  multiarea ospf + ospf route summrization + virtual link + ospf default route/static default route

  (涉及到的知识点超级多滴!!嘿嘿~~~)

  配置思路:

  1.用multiarea OSPF把路由搞定先!!!

  2.配置route summrization,将所有router上总共4个loopback汇总一下子。

  3.分别使用三个方法将area 2的路由配通一遍:

  a.   OSPF virtual link

  b.   OSPF default route

  c.   ststic default route

  4.最终验证时在PC上ping全网可以通就OK...   ^oo^

 

  一、基本配置:

  R1:

  ena

  conf t

  host R1

  no ip domain-lookup

  ena sec cisco

  line con 0

  exec-timeout 0 0

  logging syn

  pass cisco

  login

  exit

  line vty 0 4

  exec-timeout 0 0

  logging syn

  pass cisco

  login

  end

  conf t

  int s1/1

  ip add 10.10.10.1 255.255.255.0

  no shu

  int lo 1

  ip add 171.16.1.1 255.255.255.0

  int lo 2

  ip add 171.16.2.1 255.255.255.0

  int lo 3

  ip add 171.16.3.1 255.255.255.0

  int lo 4

  ip add 171.16.4.1 255.255.255.0

  end

#p#副标题#e#

  R2:

  ena

  conf t

  host R2

  no ip domain-lookup

  ena sec cisco

  line con 0

  exec-timeout 0 0

  logging syn

  pass cisco

  login

  exit

  line vty 0 4

  exec-timeout 0 0

  logging syn

  pass cisco

  login

  end

  conf t

  int s1/0

  ip add 10.10.10.2 255.255.255.0

  no shu

  int s1/1

  ip add 20.20.20.1 255.255.255.0

  no shu

  int lo 1

  ip add 172.16.1.1 255.255.255.0

  int lo 2

  ip add 172.16.2.1 255.255.255.0

  int lo 3

  ip add 172.16.3.1 255.255.255.0

  int lo 4

  ip add 172.16.4.1 255.255.255.0

  end

  R3:

  ena

  conf t

  host R2

  no ip domain-lookup

  ena sec cisco

  line con 0

  exec-timeout 0 0

  logging syn

  pass cisco

  login

  exit

  line vty 0 4

  exec-timeout 0 0

  logging syn

  pass cisco

  login

  end

  conf t

  int s1/0

  ip add 20.20.20.2 255.255.255.0

  no shu

  int s1/2

  ip add 30.30.30.1 255.255.255.0

  no shu

  int lo 1

  ip add 173.16.1.1 255.255.255.0

  int lo 2

  ip add 173.16.2.1 255.255.255.0

  int lo 3

  ip add 173.16.3.1 255.255.255.0

  int lo 4

  ip add 173.16.4.1 255.255.255.0

  end

#p#副标题#e#

  R4:

  ena

  conf t

  host R2

  no ip domain-lookup

  ena sec cisco

  line con 0

  exec-timeout 0 0

  logging syn

  pass cisco

  login

  exit

  line vty 0 4

  exec-timeout 0 0

  logging syn

  pass cisco

  login

  end

  conf t

  int s1/2

  ip add 30.30.30.2 255.255.255.0

  no shu

  int fa0/0

  ip add 192.168.1.1 255.255.255.0

  no shu

  int lo 1

  ip add 174.16.1.1 255.255.255.0

  int lo 2

  ip add 174.16.2.1 255.255.255.0

  int lo 3

  ip add 174.16.3.1 255.255.255.0

  int lo 4

  ip add 174.16.4.1 255.255.255.0

  end

  ************************************************************************

  二、动态路由OSPF配置:

  R1:

  conf t

  router ospf 1

  network 10.10.10.0 0.0.0.255 area 0

  network 171.16.1.0 0.0.0.255 area 0

  network 171.16.2.0 0.0.0.255 area 0

  network 171.16.3.0 0.0.0.255 area 0

  network 171.16.4.0 0.0.0.255 area 0

  end

  R2:

  conf t

  router ospf 1

  network 10.10.10.0 0.0.0.255 area 0

  network 172.16.1.0 0.0.0.255 area 1

  network 172.16.2.0 0.0.0.255 area 1

  network 172.16.3.0 0.0.0.255 area 1

  network 172.16.4.0 0.0.0.255 area 1

  network 20.20.20.0 0.0.0.255 area 1

  end

  R3:

  conf t

  router ospf 1

  network 20.20.20.0 0.0.0.255 area 1

  network 173.16.1.0 0.0.0.255 area 1

  network 173.16.2.0 0.0.0.255 area 1

  network 173.16.3.0 0.0.0.255 area 1

  network 173.16.4.0 0.0.0.255 area 1

  network 30.30.30.0 0.0.0.255 area 2

  end

#p#副标题#e#

  R4:

  conf t

  router ospf 1

  network 30.30.30.0 0.0.0.255 area 2

  network 174.16.1.0 0.0.0.255 area 2

  network 174.16.2.0 0.0.0.255 area 2

  network 174.16.3.0 0.0.0.255 area 2

  network 174.16.4.0 0.0.0.255 area 2

  network 192.168.1.0 0.0.0.255 area 2

  end

  *********************************************************************

  三、配通网络的三种方法:

  ***************ospf virtual-link:***************

  r2(ABR):

  conf t

  router ospf 1

  area 1 virtual-link 173.16.4.1

  r3(ABR):

  conf t

  router ospf 1

  area 1 virtual-link 172.16.4.1

  检验:

  #sh ip ospf virtual-link

  --------------------------------------------------------------------------------------------

  ***************ospf default route:***************

  r3:

  conf t

  router ospf 3

  default-information originate always

  检验:

  #sh ip route

  #ping

  --------------------------------------------------------------------------------------------

  ***************static default route:***************

  r1:

  conf t

  ip route 0.0.0.0 0.0.0.0 10.10.10.2

  r2:

  conf t

  ip route 0.0.0.0 0.0.0.0 20.20.20.2

  r4:

  conf t

  ip route 0.0.0.0 0.0.0.0 30.30.30.1

  =====================================================================

  四、ospf route summarization

  r2:(ABR)

  conf t

  router ospf 1

  area 0 range 171.16.0.0 255.255.252.0

  area 1 range 172.16.0.0 255.255.252.0

  r3:(ASBR)

  conf t

  router ospf 1

  summary-address 173.16.0.0 255.255.252.0

  summary-ad

关键词标签:OSPF多区域,虚链路,默

相关阅读

文章评论
发表评论

热门文章 路由器地址大全-各品牌路由设置地址路由器地址大全-各品牌路由设置地址各品牌的ADSL与路由器出厂默认IP、帐号、密各品牌的ADSL与路由器出厂默认IP、帐号、密Nslookup命令详解-域名DNS诊断Nslookup命令详解-域名DNS诊断站长装备:十大网站管理员服务器工具软件站长装备:十大网站管理员服务器工具软件

相关下载

人气排行 各品牌的ADSL与路由器出厂默认IP、帐号、密码路由器地址大全-各品牌路由设置地址腾达路由器怎么设置?腾达路由器设置教程ADSL双线负载均衡设置详细图文教程路由表说明(详解route print)网管员实际工作的一天用此方法让2M带宽下载速度达到250K/S左右网管必会!了解交换机控制端口流量