IT貓撲網(wǎng):您身邊最放心的安全下載站! 最新更新|軟件分類|軟件專題|手機版|論壇轉(zhuǎn)貼|軟件發(fā)布

您當前所在位置:首頁系統(tǒng)集成網(wǎng)絡(luò)管理 → OSPF多區(qū)域+虛鏈路+默認路由或靜態(tài)路由

OSPF多區(qū)域+虛鏈路+默認路由或靜態(tài)路由

時間:2015/6/28來源:IT貓撲網(wǎng)作者:網(wǎng)管聯(lián)盟我要評論(0)

  topo:

  

 

  實驗說明:

  1.在上面拓撲圖中,R1\R2\R3\R4四臺router分別設(shè)置三個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

  實驗?zāi)康?

  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全網(wǎng)可以通就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

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

  二、動態(tài)路由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

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

  三、配通網(wǎng)絡(luò)的三種方法:

  ***************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

關(guān)鍵詞標簽:OSPF多區(qū)域,虛鏈路,默

相關(guān)閱讀

文章評論
發(fā)表評論

熱門文章 路由器地址大全-各品牌路由設(shè)置地址路由器地址大全-各品牌路由設(shè)置地址各品牌的ADSL與路由器出廠默認IP、帳號、密各品牌的ADSL與路由器出廠默認IP、帳號、密Nslookup命令詳解-域名DNS診斷Nslookup命令詳解-域名DNS診斷站長裝備:十大網(wǎng)站管理員服務(wù)器工具軟件站長裝備:十大網(wǎng)站管理員服務(wù)器工具軟件

相關(guān)下載

人氣排行 各品牌的ADSL與路由器出廠默認IP、帳號、密碼路由器地址大全-各品牌路由設(shè)置地址騰達路由器怎么設(shè)置?騰達路由器設(shè)置教程ADSL雙線負載均衡設(shè)置詳細圖文教程路由表說明(詳解route print)網(wǎng)管員實際工作的一天用此方法讓2M帶寬下載速度達到250K/S左右網(wǎng)管必會!了解交換機控制端口流量