日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

PingingLab传世经典系列《CCNA完全配置宝典》-2.7 EIGRP基本配置

發布時間:2025/3/8 编程问答 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 PingingLab传世经典系列《CCNA完全配置宝典》-2.7 EIGRP基本配置 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

2.7 EIGRP基本配置


實驗目的:

1、掌握EIGRP的基本配置。

2.掌握EIGRP的鄰居表、拓撲表、路由表。

3.掌握EIGRP的無類特性。

實驗拓撲:


實驗步驟:

1、依據圖中拓撲配置各設備的IP地址,并保證直連連通性;

在R1上做如下配置:

R1(config)#int f0/0

R1(config-if)#no shutdown

R1(config-if)#ip address 12.1.1.1 255.255.255.0

R1(config-if)#exit

R1(config)#int f1/0

R1(config-if)#no shutdown

R1(config-if)#ip address 13.1.1.1 255.255.255.0

R1(config-if)#exit

R1(config)#int loopback 1

R1(config-if)#ip address 1.1.1.1 255.255.255.255

R1(config-if)#exit

在R2上做如下配置:

R2(config)#int f0/0

R2(config-if)#no shutdown

R2(config-if)#ip address 12.1.1.2 255.255.255.0

R2(config-if)#exit

R2(config)#int f1/0

R2(config-if)#no shutdown

R2(config-if)#ip address 23.1.1.2 255.255.255.0

R2(config-if)#exit

R2(config)#int loopback 1

R2(config-if)#ip address 2.2.2.2 255.255.255.255

R2(config-if)#exit

在R3上做如下配置

R3(config)#int f0/0

R3(config-if)#no shutdown

R3(config-if)#ip address 13.1.1.3 255.255.255.0

R3(config-if)#exit

R3(config-if)#int f1/0

R3(config-if)#no shutdown

R3(config-if)#ip address 23.1.1.3 255.255.255.0

R3(config-if)#exit

R3(config)#int loopback 1

R3(config-if)#ip address 3.3.3.3 255.255.255.255

R3(config-if)#exit

在其中一臺路由器上進行連通性測試:

R1#ping 12.1.1.2

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 12.1.1.2, timeout is 2 seconds:

.!!!!

Success rate is 80 percent (4/5), round-trip min/avg/max = 20/34/48 ms

R1#ping 13.1.1.3

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 13.1.1.3, timeout is 2 seconds:

.!!!!

Success rate is 80 percent (4/5), round-trip min/avg/max = 16/31/48 ms

此時說明直連連接沒有問題。

2.在每臺路由器開始進行EIGRP的配置,R1的配置如下:

R1(config)#router eigrp 100[PL1]

R1(config-router)#no auto-summary[PL2]

R1(config-router)#network 12.1.1.0 0.0.0.255[PL3]

R1(config-router)#network 13.1.1.0 0.0.0.255

R1(config-router)#network 1.1.1.1 0.0.0.0

R1(config-router)#exit

R2的配置如下:

R2(config)#router eigrp 100

R2(config-router)#no auto-summary

R2(config-router)#network 12.1.1.0 0.0.0.255

R2(config-router)#network 23.1.1.0 0.0.0.255

R2(config-router)#network 2.2.2.2 0.0.0.0

R2(config-router)#exit

R3的配置如下:

R3(config)#router eigrp 100

R3(config-router)#no auto-summary

R3(config-router)#network 13.1.1.0 0.0.0.255

R3(config-router)#network 23.1.1.0 0.0.0.255

R3(config-router)#network 3.3.3.3 0.0.0.0

R3(config-router)#exit

3、查看EIGRP的鄰居表、拓撲表和路由表,在R1上查看EIGRP鄰居表,

如下:

R1#show ip eigrp neighbors

IP-EIGRP neighbors for process 100

H Address Interface Hold Uptime SRTT RTO Q Seq

(sec) (ms) Cnt ?Num

1 13.1.1.3 Fa1/0 11 ?00:03:45 74 ?444 ?0 11

0 12.1.1.2 Fa0/0 14 ?00:04:10 65 390 ?0 10

其中H表示與其他路由器建立鄰居的順序,Address表示鄰居的IP地址,Interface表示本地接口,Hold表示holdtime,默認為15s。從這里可以看到R1與R2和R3依次建立了鄰居關系。

在R1上查看EIGRP拓撲表,如下:

R1#show ip eigrp topology

IP-EIGRP Topology Table for AS(100)/ID(1.1.1.1)

Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,

r - reply Status, s - sia Status

P 3.3.3.3/32, 1 successors, FD is 156160

via 13.1.1.3 (156160/128256), FastEthernet1/0

P 2.2.2.2/32, 1 successors, FD is 156160

via 12.1.1.2 (156160/128256), FastEthernet0/0

P 1.1.1.1/32, 1 successors, FD is 128256

via Connected, Loopback1

P 12.1.1.0/24, 1 successors, FD is 28160

via Connected, FastEthernet0/0

P 13.1.1.0/24, 1 successors, FD is 28160

via Connected, FastEthernet1/0

P 23.1.1.0/24, 2 successors, FD is 30720

via 13.1.1.3 (30720/28160), FastEthernet1/0

via 12.1.1.2 (30720/28160), FastEthernet0/0

此命令放置滿足FC<可行條件>的路由條目,若想查看所有EIGRP的路由條目,則需要加入all-links參數:

R1#show ip eigrp topology all-links

IP-EIGRP Topology Table for AS(100)/ID(1.1.1.1)

Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,

r - reply Status, s - sia Status

P 3.3.3.3/32, 1 successors, FD is 156160, serno 8

via 13.1.1.3 (156160/128256), FastEthernet1/0

via 12.1.1.2 (158720/156160), FastEthernet0/0

P 2.2.2.2/32, 1 successors, FD is 156160, serno 5

via 12.1.1.2 (156160/128256), FastEthernet0/0

via 13.1.1.3 (158720/156160), FastEthernet1/0

P 1.1.1.1/32, 1 successors, FD is 128256, serno 3

via Connected, Loopback1

P 12.1.1.0/24, 1 successors, FD is 28160, serno 1

via Connected, FastEthernet0/0

P 13.1.1.0/24, 1 successors, FD is 28160, serno 2

via Connected, FastEthernet1/0

P 23.1.1.0/24, 2 successors, FD is 30720, serno 7

via 13.1.1.3 (30720/28160), FastEthernet1/0

via 12.1.1.2 (30720/28160), FastEthernet0/0

此時在查看R1上的路由表,如下:

R1#show ip route eigrp

2.0.0.0/32 is subnetted, 1 subnets

D 2.2.2.2 [90/156160] via 12.1.1.2, 00:08:48, FastEthernet0/0[PL4]

3.0.0.0/32 is subnetted, 1 subnets

D 3.3.3.3 [90/156160] via 13.1.1.3, 00:08:47, FastEthernet1/0

23.0.0.0/24 is subnetted, 1 subnets

D 23.1.1.0 [90/30720] via 13.1.1.3, 00:08:50, FastEthernet1/0

[90/30720] via 12.1.1.2, 00:08:50, FastEthernet0/0

可以看到,R1已經通過EIGRP協議從其他路由器學習到EIGRP路由,此時可以進行測試,如下:

R1#ping 2.2.2.2 source 1.1.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:

Packet sent with a source address of 1.1.1.1

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 24/33/48 ms

R1#ping 3.3.3.3 source 1.1.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:

Packet sent with a source address of 1.1.1.1

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 32/37/48 ms

此時,R1可以與R2和R3的環回網段進行通信;同樣的方法在R2和R3上進行測試,此實驗完成。


[PL1]進入EIGRP進程,并且定義此路由器所在自治系統號為100;自治系統指的是由一個管理機構統一控制之下的路由器和網絡群組,例如不同的ISP處于不同的AS號,如中國電信的AS為4134,AS范圍從1到65535.不同AS的路由器無法建立鄰居關系!

[PL2]默認情況下,EIGRP開啟自動匯總,通過此命令關閉自動匯總。

[PL3]EIGRP宣告路由的方式有三種,如下:

network + 主類網絡號;

network + 網段 + 子網掩碼

network + 網段 + 反掩碼

在本例中,通告路由條目12.1.1.0/24則可以通過:network 12.0.0.0network 12.1.1.0 255.255.255.0或者network 12.1.1.0 0.0.0.255來實現

[PL4]EIGRP是一種無類路由協議,支持VLSMCIDR,路由更新夾帶掩碼信息。

==========================================

PingingLab·高品質IT教育提供商

CCIE 實驗室·IT項目實戰·高端人才定制

深圳拼客信息科技有限公司·廣州大學城外環西路站

新浪微博:@拼客科技PingingLab ?@PingingLab-陳鑫杰

PingingLab微信公眾號:pinginglab

PingingLab技術交流群:240920680



轉載于:https://blog.51cto.com/chenxinjie/1274512

總結

以上是生活随笔為你收集整理的PingingLab传世经典系列《CCNA完全配置宝典》-2.7 EIGRP基本配置的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。