20201104 cisco EIGRP (一)

課堂資料

Enhanced Interior Gateway Routing Protocol ( EIGRP ) 增強型內部網關路由協定:

EIGRP 設定:

CSICO EIGRP

Enhanced Interior Gateway Routing Protocol

  • 採用 DUAL Algorithmshow ip route

  • 高級 ( Advanced ) 的 DV ( Distance Vector ) or Mixed

  • IP header protocol:88

  • VLSM ( Variable Length Subnet Mask ) and CIDR ( Classless Inter Domain Routing )

  • AD ( 動態距離:Administration Distance ) = 90

  • metrics ( 指標 ):BW ( 帶寬:BandWidth )、Delay ( 延時 )、Load ( 加載 )、Reliabily ( 可靠性 )、MTU ( 最大傳輸單元:Maximum Transmission Unit )

  • trigger update:224.0.0.10 (增量更新,可靠更新:Reliabily update)

    • RIPv1:255.255.255.255

    • RIPv2:224.0.0.9

補充

EIGRP有三張表:

  1. 鄰居表 ( neighbor table )

  2. 拓樸表 ( protocol table )

  3. 路由表 ( routing table )

課堂練習

Neighbor

IP 設定

conf t
hostname R1
do writ
int e0/0
ip addr 192.168.12.1 255.255.255.0
no shut

Route 設定

使用router eigrp [AS No.]進入EIGRP設定,在同一個 AS內的EIGRP router,所有的AS Number必須相同。

router eigrp [AS No.]
auto-summary
network 192.168.12.0 0.0.0.255
do sh ip eigrp nei
do sh ip eigrp topology
do sh ip ro eigrp

預設情況下,Router 之間是利用 Multicast 溝通的。

如果網路不支援 Multicast 或因某些原因 Multicast 無法順利傳送,Router 就無法成為 Neighbor。

遇到這些情況,我們使用Neighbor指令利用Unicast去傳送EIGRP封包。

neighbor 192.168.12.2 e0/0

Holdtime

EIGRP 有兩個 Timer,分別是 Hello Timer 及 Hold Timer。

Hello 預設值為 5秒、Hold 預設值為 15秒,也就是說 EIGRP Router 會隔 5秒傳送 Hello Message,如果收到就會維持 Neighbor 關係,反之,一旦超過15秒未收到,則會中斷 Neighbor 關係。

所以Hold Timer會從15秒開始倒數,直到收到Hello後重新計數倒數15秒。

Hello Timer 及 Hold Timer 是可以在interface下更改。

int e0/0
ip hello-interval eigrp ?
ip hello-interval eigrp [AS No.] ?
ip hello-interval eigrp [AS No.] 10
ip hold-time eigrp ?
ip hold-time eigrp [AS No.] ?
ip hold-time eigrp [AS No.] 30
^z

切記,兩隻成為 Neighbor 也要更改。

clear ip eigrp [AS No.] nei
sh ip eigrp nei

Authentication

在 EIGRP Neighbor 的 interface 之間設定密碼,這樣可以避免有 Router 假扮成 Neighbor 來偷取 Router 資訊。

conf t
key chain MyChain
key 1
key-string MyPassword
exit
exit

在interface 設定 Key Chain 和 MD5 encryption

int e0/0
ip authentication key-chain eigrp [AS No.] MyChain
ip authentication mode eigrp [AS No.] md5

sh ip eigrp int detail 可以查看Authentication 資訊

do sh ip eigrp int detail

期中練習

題目:

結果:

R1

int e0/0
ip add 12.1.1.1 255.255.255.0
no shut
int e0/1
ip add 45.1.1.1 255.255.255.0
no shut
int e0/2
ip add 192.168.1.1 255.255.255.0
no shut
ip route 192.168.2.0 255.255.255.0 e0/0 12.1.1.2
ip route 192.168.2.0 255.255.255.0 e0/1 45.1.1.3 10

R2

int e0/0
ip add 12.1.1.2 255.255.255.0
no shut
int e0/1
ip add 23.1.1.2 255.255.255.0
no shut
int e0/2
ip add 192.168.2.1 255.255.255.0
no shut
ip route 192.168.1.0 255.255.255.0 e0/0 12.1.1.1 10
ip route 192.168.1.0 255.255.255.0 e0/1 23.1.1.4

R3

int e0/0
ip add 34.1.1.3 255.255.255.0
no shut
int e0/1
ip add 45.1.1.3 255.255.255.0
no shut
ip route 192.168.1.0 255.255.255.0 e0/1 45.1.1.1

R4

int e0/0
ip add 34.1.1.4 255.255.255.0
no shut
int e0/1
ip add 23.1.1.4 255.255.255.0
no shut
ip route 192.168.1.0 255.255.255.0 e0/0 34.1.1.3

VPC1

ip 192.168.1.2 255.255.0.0

VPC2

ip 192.168.2.2 255.255.0.0

Last updated