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

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

使用 RIP協(xié)認處理不連續(xù)的子網和VLSM(1)

2019-11-04 10:58:48
字體:
來源:轉載
供稿:網友

  在本實驗中演示使用Rip協(xié)議處理不連續(xù)的子網和VLSM的情況。
  
  1.實驗目的
  
  通過本實驗,讀者可以把握以下技能:
  使用RIP協(xié)議處理不連續(xù)的子網;
  使用RIP協(xié)議處理VLSM;
  查看RIP協(xié)議配置信息;
  使用Debug命令。
  
  2. 設備需求
  
  本實驗的設備需求與實驗1相同。
  
  3. 拓撲結構及配置說明
  
  本實驗拓撲結構如圖5-2所示,大都與5-1相同,所不同的是IP地址分配。
  IP地址分配如下:
  R1:E0 172.18.1.1,s0 172.16.12.1,S1 172.16.]3.1;
  R2:E0 172.18.2.2,S0 172.16.12.2,S1 172.16.23.2;
  R3:E0 172.18.3.3,S0 172.16.13.3,S1 172.16.23.3。
  子網掩碼均為255.255.255.0。
  
 使用 RIP協(xié)認處理不連續(xù)的子網和VLSM(1)(圖一)

  這是一個典型的不連續(xù)子網的情況,實驗要求通過對RIP協(xié)議的配置,實現(xiàn)全網的連通性。
  在完成上述實驗的基礎上,我們還將對可變長子網掩碼 (VLSM)的情況進行配置。
  
  4.實驗配置及監(jiān)測結果
  
  我們首先在完成實驗1的基礎上,配置3臺路由器的E0接口,更改其IP地址。實驗記錄是從這個操作完成之后開始的,見配置清單5-3。
  
  配置清單5-3使用RIP協(xié)議處理不連續(xù)的子網
  
  R3#cle ip route *
  R3#sh ip route
  Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
     D - EIGRP, EX - EIGRP external, 0 - OSPF, IA - OSPF inter area
     N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
     E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
     i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
     * - candidate default, U - per-user static route, o - ODR
     P - periodic downloaded static route
  
  Gateway of last resort is not set
  
    172.16.0.0/24 is subnetted, 3 subnets
  R   172.16.23.0 is directly connected. Serial 1
  C   172.16.12.0 [120/1] via 172.16.13.1, 00:00:01, Serial0
  C   172.16.13.0 is directly connected, Serial0
    172.18.0,0/24 is subnetted, 1 subnets
  C   172.18.3.0 is directly connected, Ethemet0
  R3#conft
  Enter configuration commands, one per line. End with CNTL/Z.
  R3(config)#router rip
  R3(config-router)#version 2
  R3(config-router)#
  Term_Server>2
  [Resuming connection 2 to R2 ... ]
  R2(config-router)#router rip
  R2(config-router)#version 2
  R2(config-router)#
  Term_Server>1
  [Resuming connection 1 to R1 ...]
  R1(config-router)#router rip
  R1(config-router)#version 2
  R1(config-router)#
  R1(config-router)#^Z
  R1#cle lp route *
  R1#debug ip rip
  RIP PRotocol debugging is on
  R1#
  01:38:59: RIP: received v2 update from 172.16.12.2 on Serial0
  01:38:59:   172.16.23.0/24 via 0.0.0.0 in 1 hops
  01:38:59:   172.18.0.0/16 Via 0.0.0.0 in 1 hops
  01:39:10: RIP: received v2 update from 172.16.13.3 on Serial1
  01:39:10:   172.16.23.0/24 via 0.0.0.0 in 1 hops
  01:39:10:   172.18.0/16 via 0.0.0.0 in 1 hops
  01:39:12: RIP: sending v2 update to 224.0.0.9 Via Serial0 (172.16.12.1)
  01:39:12: RIP: build update entries
  01:39:12: 172.16.13.0/24 via0.0.0.0,metric 1,tag 0
  01:39:12: RIP: rending v2 update to 224.0.0.9 via Serial1 (172.16.13.1)
  01:39:12: RIP: build update eyries
  01:39:12: 172.16.12.0/24 via 0.0.0.0, metric 1, tag.0
  R1#undebug all
  All possible debugging has been turned off
  R1#sh ip route
  Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
     D - EIGRP, EX - EIGRP external, 0 - OSPF, IA - OSPF inter area
     N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
     E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
     i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
     * - candidate default, U - per-user static route, o - ODR
     P - periodic downloaded static route
  
  Gateway of last resort is not set
  
    172.16.0.0/24 is subnetted, 3 subnets
  R   172.16.23.0 [120/1] via 172.16.12.2, 00:00:07, Serial0
  [120/1] via 172.16.13.3, 00:00:23, Serial1
  C   172.16.12.0 is directly connected, Serial0
  C   172.16.13.0 is directly connected, Serial1
    172.18.0.0/16 is variably subnetted, 2 subnets, 2 masks
  C   172.18.1.0/24 is directly connected, Ethernet0
  R1#ping 172.18.2.2
  
  Type escape sequence to abort.
  Sending 5,100-byte ICMP Echos to 172.18.2.2,timeout is 2 seconds:
  !!!!!
  SUCcess rate is 100 percent(5/5),round-trip min/avg/max=8/23/48 ms
  
  (1)使用clear ip route,命令清除路由表,目的是重新生成路由表,以便反映最新的變化,而不必等待原有路由表項的超時。
  (2)當3臺路由器的E0接口都配置了172.18.0.0網絡的不同網段的時候。實際上就意味著172.18.0.0的網絡被172.16.0.0的網絡所隔開,從而形成不連續(xù)的于網。
  show ip route命令顯示了R3路由器沒有學習到172.18.2.0和172.18.3.0網段存在的信息,因為路由表中沒有通過RIP協(xié)議得到的172.18.0.0相關項。
  產生上述結果的原因是RIP v1沒有傳送于網掩碼的能力,同時在類的邊界進行自動匯總操作,這樣會把由S0和S1接口收到的關于]72.18.0.0的路由表項濾掉,不進入路由表,因為從R3的角度來看,對于172.18.0.0網絡它有更好的路由通過E0接口直接相連的路由。
  (3)通過在RIP協(xié)議配置模式下使用version2命令指定其版本號為3后,可以解決上面碰到的問題。因為RIPv2支持不連續(xù)的于網。
  (4)同樣使用clear ip route本命令以便反映最新的變化。
  (5)使用debug ip rip命令監(jiān)測RIP更新操作,結果表明RIPv2使用組播地址(224.0.0.9)進行路由更新,同時在路由更新中包含了于網掩碼的信息,這樣RIPv2便可以處理存在不連續(xù)的子網的拓撲。
  (6)ship route顯示RIP版本2的使用解決了不連續(xù)子網的問題。
  接下來我們演示使用RIP處理VLSM的情形。
  為3臺路由器的不同接口分配相應的吧地址和于網掩碼如下
  R1 E0 172.18.1.1 255.255.255.240
  R1 S0 172.16.123.1 255.255.255.252
  R1: S1 172.16.123.5 255.255.255.252
  R2, E0 172.18.2.2 255.255.255.240
  R2, S0 172.16.123.2 255.255.255.252
  R2: S1 172.16.123.9 255.255.255.252
  R3: E0 172.18.3.3 255.255.255.0
  R3: S0 172.16.123.6 255.255.255.252
  R3: S1 172.16.123.10 255.255.255.252
  網段劃分和拓撲結構如圖5-3所示。
  
使用 RIP協(xié)認處理不連續(xù)的子網和VLSM(1)(圖二)
  
  首先把IP地址按要求配置到各接口上,并且啟動RIP路由協(xié)議并聲明網絡,接下來的實驗操作見監(jiān)測清單5-2。
  
  (未完...待續(xù))


發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 措勤县| 临颍县| 布尔津县| 睢宁县| 涞水县| 九龙坡区| 东源县| 陆河县| 虹口区| 昭觉县| 贵德县| 皋兰县| 岐山县| 武胜县| 巴彦淖尔市| 疏附县| 太白县| 九江市| 伊宁市| 孟津县| 广汉市| 屯留县| 芷江| 多伦县| 孝昌县| 砚山县| 天柱县| 县级市| 万载县| 武宣县| 乌鲁木齐县| 惠州市| 靖西县| 资溪县| 新晃| 金门县| 江孜县| 隆林| 伽师县| 哈密市| 宁城县|