1. 程式人生 > >EIGRP路由協議的簡單理解及應用

EIGRP路由協議的簡單理解及應用

1.EIGRP 增強型內部閘道器路由協議

他是動態路由協議,是思科私有的路由協議(2013年已經公有化)

特點:     1)路由更新:閃速更新;觸發式更新;路由增量更新

      2)協議更新採用組播地址來維持EIGRP的路由資訊傳遞;具有固定的組播地址來提供EIGRP通訊

       (224.0.0.10  EIGRP的全球組播地址)

      3)EIGRP完成一次路由更新需要三張表來作為路由更新

               1*EIGRP鄰居表

               2*EIGRP拓撲表(EIGRP學習到的可行路徑)

               3*EIGRP路由表(EIGRP從可行路徑中選出最優路由)

      4)EIGRP為路由分配了度量值的計算方式,從而可以計算出每條路由的開銷值

       (即彌散更新演算法→Metric值→DUAL演算法)

      5)100%無環路由協議

      6)在EIGRP網路中可以存在255臺路由器,相當於和TTL數量持平(TTL=255為最大值)

 

2.EIGRP的報文型別

      1)  Hello            (你好)         幫助EIGRP協議建立鄰居

      2)  Update       (更新)         幫助EIGRP協議學習路由

      3)  Query          (查詢)         幫助EIGRP協議在失去下一跳是進行重新查詢路徑

      4)  Reply           (回覆)         幫助EIGRP協議回覆Query

      5)  Ack               (確認)         幫助EIGRP協議完成RTP機制(確認可靠的分組)

在正常情況下,EIGRP協議網路中只顯示三個報文(Hello,Update,Ack→ 你好,更新,確認)

 

3.EIGRP採用RTP來保證資訊的傳輸

RTP可靠性傳輸----------使用Ack來確認可靠分組

可靠分組(Update,Query,Reply)

舉例:R1→R2  Query

   R2→R1  Ack1

   R2→R1  Reply

   R1→R2  Ack2

 

4.EIGRP的特性

      1)  預設路由注入EIGRP域內(四種方法)

      2)  被動介面

      3)  非等價負載均衡

      4)  EIGRPstub

      5)  EIGRP路由手動彙總

      6)  EIGRP鏈路最大負載均衡

      7)  EIGRP鏈路認證(1.簡單密碼認證;2.MD5加密認證)

      8)  超網路由釋出

      9)  EIGRP度量值偏移

      10)  EIGRP度量值(開銷值)引數調整(頻寬,延遲,可靠,負載,MTU)

 

5.EIGRP的配置

標準指令

router eigrp x(x代表AS,AS:自治系統;自治系統號必須一致才可以路由互動)

  network 網路號

  no auto-summary

例:   12.1.1.1/24 主類號(A類地址):12.0.0.0 網路號:12.1.1.0

       192.168.1.1/24 主類號(C類地址):192.168.1.0 網路號:192.168.1.0

檢查路由:

1)檢視鄰居                   show ip eigrp neighbors

2)檢視路由                   show ip route eigrp

3)檢視EIGRP協議統計資訊         show ip route traffic

 

6.實驗拓撲

   

 

7.詳細配置

R1:

enable

conf t

hostname R1

no ip domain-lookup

interface Loopback1

ip address 1.1.1.1 255.255.255.0

no shu

exit

interface FastEthernet0/0

ip address 192.168.12.1 255.255.255.0

no shu

exit

router eigrp 1

network 1.0.0.0

network 192.168.12.0

no auto-summary

exit

 

R2:

enable

conf t

hostname R2

no ip domain-lookup

interface Loopback1

ip address 2.2.2.2 255.255.255.0

no shu

exit

interface FastEthernet0/0

ip address 192.168.12.2 255.255.255.0

no shu

exit

interface FastEthernet0/1

ip address 192.168.23.1 255.255.255.0

no shu

exit

router eigrp 1

network 192.168.12.0

network 2.0.0.0

network 192.168.23.0

no auto-summary

exit

 

R3:

enable

conf t

hostname R3

no ip domain-lookup

interface Loopback1

ip address 3.3.3.3 255.255.255.0

no shu

exit

interface FastEthernet0/0

ip address 192.168.23.2 255.255.255.0

no shu

exit

interface FastEthernet0/1

ip address 192.168.34.1 255.255.255.0

no shu

exit

router eigrp 1

network 3.0.0.0

network 192.168.23.0

network 192.168.34.0

no auto-summary

exit

 

R4:

enable

conf t

hostname R4

no ip domain-lookup

interface Loopback1

ip address 4.4.4.4 255.255.255.0

no shu

exit

interface FastEthernet0/0

ip address 192.168.34.2 255.255.255.0

no shu

exit

interface FastEthernet0/1

ip address 192.168.45.1 255.255.255.0

no shu

exit

router eigrp 1

network 4.0.0.0

network 192.168.34.0

network 192.168.45.0

no auto-summary

exit

 

R5:

enable

conf t

hostname R5

no ip domain-lookup

interface Loopback1

ip address 5.5.5.5 255.255.255.0

no shu

exit

interface FastEthernet0/0

ip address 192.168.45.2 255.255.255.0

no shu

exit

router eigrp 1

network 5.0.0.0

network 192.168.45.0

no auto-summary

exit