国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 網絡通信 > 正文

OSPF MULTI AREA 實驗

2019-11-04 20:42:35
字體:
來源:轉載
供稿:網友

  【實驗目的】
  了解和把握ospf的原理,熟悉ospf多域配置步驟。懂得如何配置Vitrul links,Transit area,
  Stub Area ,Totally Stubby Area, Not-so-stubby area(nssa)。
  
  【實驗原理】
  
  了解Internal router,Backbone router,Area Border Router (ABR), Autonomous System Boundary Router (ASBR) 以及各種類型鏈路通告的不同之處,優化ospf網絡。
  
  【實驗拓撲】
  OSPF MULTI AREA 實驗
  【實驗設備】
  
  路由器五臺,
  串行線,用于配置路由的主機
  
  【實驗內容】
  
  1、 按圖示配置端口,用ping檢查各端口間連通性
  (A/B用于virtul links實驗;
   C的lo地址在用于驗證external route summarization
  D的lo地址加入area 8,為驗證interarea summarization;
  A/E的lo地址在nssa時才加入)
  建議配置好各個neighber的vty,可以用一臺終端觀察整個拓撲。
  (config)#line vty 0 4
  (config-line)#Login
  (config-line)#PassWord cisco
  利用terminal monitor可在telnet上看到debug輸出
  
  2、 在各個路由器啟動ospf進程,注重area的分布
  Router(config)#router ospf *
  Router(config-router)#network *.*.*.* *.*.*.* area *
  
  查看ABR/ASBR/DR/BDR。
  show ip ospf
  show ip ospf interface
  show ip ospf neighbor
  show ip ospf neighbor detail
   雖然只是用交叉線互連e0口,但仍就有DR/BDR
  
  3、 show ip route查看各router路由表,注重area 10沒出現在別的router。
   (loopback地址當主機路由發布)
  
  4、配置Vitrul links,使area 10可以正常工作。
  
  觀察路由表項:
  (原來沒有連接到backbone area的area的具體情況:
  可觀察到:area運行和工作狀態正常, 但是就是沒有收到其他area的鏈路狀態通告)
  
  在A上的debug輸出沒有異常。
  
  C#show ip route
  
  配置在ABR上進行(B/C):
  B/C(config-router)#area 5 virtual-link (router-id)
  (router id可通過show ip ospf neighbor查看,互指對端)
  
   觀察配置前后不同之處:
  A#show ip route (show neighbor與debug的話輸出和以前一樣很正常) C#show ip route 
  B/C#show ip ospf virtual-links
  此時area 5為transit area。
  
  5、 在D配置interarea route summarization,觀察配置結果
  
   觀察未配置時的路由表:
  Router#show ip route
  
  配置summarization:
   D(config-router)#area 8 range 192.168.64.0 255.255.252.0
  觀察配置結果:
  D#show ip route C  192.168.64.0/24 is directly connected, Loopback0 C  192.168.65.0/24 is directly connected, Loopback1 C  192.168.66.0/24 is directly connected, Loopback4 C  192.168.67.0/24 is directly connected, Loopback8 O  192.168.64.0/22 is a summary, 00:00:02, Null0
  
  E#show ip route O IA 192.168.64.0/22 [110/129] via 192.168.1.9, 00:00:45, Serial1
  原為4項主機路由,變為一項。
   或者是用命令:
  Router#show ip route supernets-only
  
  6、在C添加外部路由,配置重分布并觀察
   配置:
   C(config)#ip route 172.17.16.0 255.255.255.0 null 0
  
  Router(config-router)#redistribute static subnets metric-type ?  1 Set OSPF External Type 1 metrics  2 Set OSPF External Type 2 metrics
   C(config-router)#redistribute static subsnets  (E2,static metrics)
  (不加上subnets只重發布classful路由:
   % Only classful networks will be redistributed)
  觀察配置結果:
  Router# show ip route
  更改配置:
  C(config-router)#redistribute static subnets metric-type 1 (E1)
  在各個router比較輸出的不同(metric值)
  router>show ip route
  7、驗證external route summarization
   配置:
   C(config)#ip route 172.17.17.0 255.255.255.0 null 0
  C(config)#ip route 172.17.18.0 255.255.255.0 null 0
  C(config)#ip route 172.17.19.0 255.255.255.0 null 0
   C(config-router)#summary-address 172.17.16.0 255.255.252.0
   觀察配置結果:
  C#show ip route S  172.17.0.0/16 is directly connected, Null0 S  172.16.0.0/16 is directly connected, Null0 S  172.19.0.0/16 is directly connected, Null0 S  172.18.0.0/16 is directly connected, Null0 O  172.16.0.0/14 is a summary, 00:00:02, Null0 或者可以使用命令:
   Router#show ip route supernets-only
  
  8、傳播默認路由
   C配置一個loopback端口,用于驗證默認路由起作用。
   C(config)#interface lo 0
  C(config-if)#ip address 172.16.0.1 255.255.255.0
  
  配置:
  C(config-router)#default-information originate always
   always使C強行通告默認路由,即使C本身沒有默認路由。
  觀察配置結果:
  Show發現本機路由表不發生變化,但對別的router起作用
  C#show ip route Gateway of last resort is not set router>show ip route Gateway of last resort is 192.168.1.* to network 0.0.0.0 
  ping C loopback端口(172.16.0.1),驗證默認路由起作用
  
  去掉C loopback端口,再ping
  
  假設C的loopback端口為internet地址,重新加入。A/E的loopback端口暫未要配置。
  去掉第8中配置的默認路由發布。loopback地址參考拓撲圖。
  
  9、配置Stub Area ,Totally Stubby Area
  router路由表原只有IA項,C做了靜態重分布后多了E*項。
  亦即有type-5的LSA到達
  C(config)#interface lo 0
  C(config-if)#ip address 172.16.0.1 255.255.255.0
  C(config)#interface lo 1
  C(config-if)#ip address 172.16.1.1 255.255.255.0
  C(config)#interface lo 2
  C(config-if)#ip address 172.16.2.1 255.255.255.0
  C(config)#interface lo 3
  C(config-if)#ip address 172.16.3.1 255.255.255.0
  
  C(config-router)#redistribute conneted subnets
  (無subnets時,% Only classful networks will be redistributed)
  
  觀察重分布結果:
  router#show ip route
  
  分別在A/B和D/E配置Stub Area:
  A(config-router)#area 10 stub
  B(config-router)#area 10 stub
  
  D(config-router)#area 1 stub
  E(config-router)#area 1 stub
   假如配置時間差較大,可觀察到鄰接關系斷開
  
  router#show ip ospf     (觀察area變化)
   …………
  It is a stub area
  …………
  router#show ip route     (觀察路由表)
  沒了E2項,多了默認路由
   (不接受Type 5 LSAs)
  
  配置Totally Stubby Area:
  B(config-router)#no area 10 stub
  B(config-router)#area 10 stub no-summary
  
  D(config-router)#no area 1 stub
  D(config-router)#area 1 stub no-summary
   假如同時配置stub和stub no-summary,no-summary起作用
  
  router#show ip route     (觀察default路由)
   只剩下C項和O*IA項
   (不接受Type 3/4 LSAs,只需在ABR上配置)
  
  10、配置Not-so-stubby area(nssa)
  配置A和E的loopback端口,模擬非ospf域,使A和E成為ASBR;
  清除第9步中router ospf stub area的配置。
  用于nssa配置前后比較路由表變化
  
   A(config)#interface lo 0
  A(config-if)#ip address 172.16.16.1 255.255.255.0
  
  E(config)#interface lo 0
  E(config-if)#ip address 10.0.0.1 255.255.255.0
  
  router#show ip route   (觀察路由表)
  此時還沒有重發布路由,見不到新添的Loopback路由。
  
  A(config-router)#redistribute connected subnets
  E(config-router)#redistribute connected subnets
  
  
   比較配置前后路由表變化
   router#show ip route    (觀察路由表)
  見到E2型路由條目
  
  此時不能在A/E執行 (config-router)#area 1 stub建立stub area,
  OSPF: Stub command is invalid when it is ASBR
  
  因為有type 5 LSA,show ip ospf database可看到。
  A/E#show ip ospf database
   Type-5 AS External Link States
  配置成為nssa,使得area 1和10里面只有類型7:
  A (config-router)#area 10 nssa
  B(config-router)#area 10 nssa
  
  D (config-router)#area 1 nssa
  E(config-router)#area 1 nssa
  
  觀察配置結果:
   A/E#show ip ospf database
  Type-7 AS External Link States (Area 1)
   (可觀察到type 5  type 7)
  
  B/D# show ip ospf da


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 盐津县| 瑞丽市| 民和| 乌拉特后旗| 乐都县| 莒南县| 阳东县| 聂荣县| 黔西县| 新绛县| 洛南县| 彭泽县| 珲春市| 扎鲁特旗| 尚志市| 通许县| 正定县| 梓潼县| 黄浦区| 托克逊县| 阳山县| 东源县| 天全县| 那曲县| 永登县| 泾源县| 襄垣县| 建湖县| 大城县| 泸水县| 怀远县| 汉寿县| 蛟河市| 隆德县| 额济纳旗| 新丰县| 筠连县| 米林县| 平凉市| 伊金霍洛旗| 灵璧县|