如果您喜歡這裡的內容,記得分享到您的Facebook和Twitter上面所有的朋友們吧!

2009年1月19日 星期一

觀察和解決 "分等級(Classful)定址" 的問題, 使用EIGRP (CNA-02-006)

CCNA Exploration 4.0 第二學期上課檔案 (CNA-02-006), 觀察和解決 "分等級(Classful)定址" 的問題, 使用 EIGRP.




這個例子的網路圖, 和前面的這個例子一模一樣, 但是改用 EIGRP 練習. 應該會有很多朋友認為, 只要放棄  RIP 改使用比較新的 EIGRP 協定, 就可以立刻解決本圖問題, 但是常常就是忘了, EIGRP 的預設行為, 還是 "Classful". 以致於網路就會像這個 (Backup Link)一樣, 還是有問題.

R2>show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - 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

D    10.0.0.0/8 [90/2172416] via 172.30.2.1, 00:00:10, Serial0/0/0
                [90/2172416] via 192.168.4.1, 00:00:10, Serial0/0/1
     172.30.0.0/16 is variably subnetted, 4 subnets, 2 masks
D       172.30.0.0/16 is a summary, 00:00:10, Null0
D       172.30.1.0/24 [90/2172416] via 172.30.2.1, 00:00:10, Serial0/0/0
C       172.30.2.0/24 is directly connected, Serial0/0/0
C       172.30.3.0/24 is directly connected, FastEthernet0/0
C    192.168.4.0/24 is directly connected, Serial0/0/1
D    192.168.5.0/24 [90/2172416] via 192.168.4.1, 00:00:10, Serial0/0/1
R2>

關鍵在於,  關掉 "Classful"  行為的 "no auto-summary" 命令!

router eigrp 1
 network 172.30.0.0
 network 192.168.4.0
 no auto-summary

所以正確的 (Backup Link)結果如下:

R2>show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - 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

     10.0.0.0/24 is subnetted, 2 subnets
D       10.1.1.0 [90/2172416] via 172.30.2.1, 00:00:35, Serial0/0/0
D       10.2.2.0 [90/2172416] via 192.168.4.1, 00:00:34, Serial0/0/1
     172.30.0.0/24 is subnetted, 3 subnets
D       172.30.1.0 [90/2172416] via 172.30.2.1, 00:00:35, Serial0/0/0
C       172.30.2.0 is directly connected, Serial0/0/0
C       172.30.3.0 is directly connected, FastEthernet0/0
C    192.168.4.0/24 is directly connected, Serial0/0/1
D    192.168.5.0/24 [90/2172416] via 192.168.4.1, 00:00:34, Serial0/0/1
R2>


如果您喜歡這篇文章,不考慮試試Email訂閱嗎?


Related Posts with Thumbnails

5 則留言:

  1. 您好,我想請教一下eigrp的設定,在設定遶送網段的時候,後面可以再加wildcard mask,例如我在R1裡面設定network 10.1.1.0 0.0.0.255,我原本以為會跟OSPF一樣直接採classless的方式將這個路由轉發出去,不過我在R2上面觀察到的還是10.0.0.0這個匯總路由,那請問這邊後面加wildcard的用意在哪裡呢??謝謝

    回覆刪除
  2. 我先澄清一下: "network 10.1.1.0 0.0.0.255" 命令的意思是, 網路卡 IP 位址如果落在 "10.1.1.0 0.0.0.255" Wildcard所罩住範圍, 該網路卡就啟動 "EIGRP".

    "network" 命令只有選取網路卡啟動協定的功能, 跟所要交換的"路由資訊"完全無關喔!

    "To specify a list of networks for the Enhanced Interior Gateway Routing Protocol (EIGRP) routing process, use the network command in router configuration mode. "

    http://www.cisco.com/en/US/docs/ios/12_2/iproute/command/reference/1rfeigrp.html#wp1031063

    回覆刪除
  3. 原來如此!經過您的解說才有恍然大悟的感覺....非常感謝您!!

    回覆刪除
  4. 您好,我想請問一下路由表輸出的結果172.30.0.0/16 is variably subnetted, 請問其中的"variably subnetted"是什麼意思呢??跟172.30.0.0/24 is subnetted這種訊息的差異又在哪邊呢??謝謝。

    回覆刪除
  5. "Variably subnetted" 是提醒你這個 Class A/B/C 的主網段, 使用了不同長度的子網路遮罩, 也就是說 VLSM 使用於這個網段.

    以本例還沒加 "no auto-summary" 的畫面來說, "172.30.0.0/16" 這個 Class B 之內, 有 /16, /24 等路由表內容出現, 所以稱為 Variably subnetted.

    如果所有的子網段遮罩都等長, 那就不會出現 "Variably Subnetted". 例如後半段加入 "no auto-summary" 後的畫面, 172.30.1.0/24 等三個網段都是 /24, 所以從路由表資訊來看沒有 VLSM 的效果. 所以只有標示 subnetted.

    因為大家都習慣於 VLSM, 可能會好奇 IOS 為何特別提醒是否啟用 VLSM? 其實最早的 Internet 的子網段分割, 都必須是固定長度! 後來才放寬規定, 可以 VLSM. 在 固定長度 轉換到 VLSM 的時期, IOS 利用這個標示提醒, 某網段已經是用新的 VLSM 方式來分割了!

    回覆刪除

小技巧:也可以 匿名 留言!

經典熱門文章