鐵之狂傲

 取回密碼
 註冊
搜尋

名望的英雄

KUSO四格畫家

切換到指定樓層
1#
由於EIGRP的重要設定不能在模擬器上做

認證 ( Authendiation ) 則已另開主題解說

本教學主題只適用於實體路由器,不適用於模擬器

---------------------
建立的拓墣圖是這樣的:



各網段的介面IP設定如下:

R1192.168.1.2 255.255.255.252
R2192.168.1.6255.255.255.252
ISP192.168.1.10255.255.255.252
PC0192.168.1.1255.255.255.252
PC1192.168.1.5255.255.255.252
PC2192.168.1.9255.255.255.252
R1~R2(Serial)192.168.1.13~14255.255.255.252
R2~ISP(Serial)192.168.1.17~18255.255.255.252


基本設定部分不贅述,LAB主題都有詳解

直接從繞送開始:



R1(config)# router eigrp 1

此行中,1代表的是AS號碼,EIGRP與OSPF皆採用此種方式達到區域性分配

R1(router-config)# network 192.168.1.0  0.0.0.3

0.0.0.3 這是EIGRP必須設定的 Wildcard 號,每位元以255相減

遮罩的255.255.255.252各以255減掉就變成0.0.0.3

R1(router-config)# network 192.168.1.12  0.0.0.3

接著R2和ISP端也是同樣的設定:

R2(router-config)# network 192.168.1.4  0.0.0.3
R2(router-config)# network 192.168.1.12  0.0.0.3
R2(router-config)# exit

R2(config)# ip route 0.0.0.0 0.0.0.0 Serial 0/1
R2(router-config)# redistribute static

這行作用和 RIP各版本中的「deafult-infomation originate」是一樣的

由於R2屬於EIGRP網路中的邊界路由器

所以必須告訴對面ISP我要傳送R1的資料過去,也告訴R1我會傳ISP的資料來


接著,ISP端本身不跑EIGRP,因為不屬於企業內部網路

所以ISP端這裡我們用靜態路由或者預設路由來做傳遞

ISP(config)# ip route 0.0.0.0 0.0.0.0 Serial 0/1




最後我們來看看路由表:

R1的路由表 -

Gateway of last resort is not set
     192.168.1.0/30 is subnetted, 3 subnets
C       192.168.1.0 is directly connected, FastEthernet0/0
D       192.168.1.4 [90/2172416] via 192.168.1.14, 00:02:21, Serial0/0/0
C       192.168.1.12 is directly connected, Serial0/0/0
D*      192.168.1.0 [90/2172416] via 192.168.1.17, 00:01:40, Serial0/0/1

R2的路由表 -

Gateway of last resort is 0.0.0.0 to network 0.0.0.0
     192.168.1.0/30 is subnetted, 4 subnets
D       192.168.1.0 [90/2172416] via 192.168.1.13, 00:01:40, Serial0/0/0
C       192.168.1.4 is directly connected, FastEthernet0/0
C       192.168.1.12 is directly connected, Serial0/0/0
C       192.168.1.16 is directly connected, Serial0/0/1
S*   0.0.0.0/0 is directly connected, Serial0/0/1



做到這裡,主機應該互相可以PING通

請注意,這個LAB只能在實體設備環境下執行與測試

故本次不提供原始設定檔

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

LAB結束

[ 本文章最後由 墮夜 於 08-7-25 01:51 編輯 ]
 
轉播0 分享0 收藏0

回覆 使用道具 檢舉

全世界最先進的跳動筆
你需要登入後才可以回覆 登入 | 註冊

存檔|手機版|聯絡我們|新聞提供|鐵之狂傲

GMT+8, 24-4-25 04:24 , Processed in 3.124322 second(s), 15 queries , Gzip On.

回頂部