Cho sơ đồ mạng như hình vẽ sau:
Hình 12: EIGRP lab network
Cấu hình EIGRP ban đầu.
Các router đều được thiết lập cấu hình ban đầu trên tất cả các cổng kết nối.
Chẳng hạn trên Router R1 được thiết lập hoạt động trên 3 dải địa chỉ mạng 10.0.0.0/24, 11.0.0.0/24 và 12.0.0.0/24. Câu lệnh được dùng để thiết lập ban đầu là
configuration terminal
Router1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. Router1(config)#Router eigrp 100
Router1(config-Router)#network 11.0.0.0 Router1(config-Router)#network 12.0.0.0 Router1(config-Router)#network 13.0.0.0
Router1(config-Router)#^Z
%SYS-5-CONFIG_I: Configured from console by console Router1#
Các router khác cấu hình tương tự.
Khi tất cả các router đã cấu hình xong, sử dụng các lệnh show để kiểm tra hoạt động của router.
Lệnh show ip protoco: hiển thị các thông số của quá trình định tuyến EIGRP. Dưới đây là danh sách thông số của Router R1.
Router1#show ip protocols
Routing Protocol is "eigrp 100 "
Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Default networks flagged in outgoing updates
Default networks accepted from incoming updates EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0 EIGRP maximum hopcount 100
EIGRP maximum metric variance 1 Redistributing: eigrp 100
Automatic network summarization is in effect Automatic address summarization:
11.0.0.0/8 for FastEthernet0/0, Serial0/1/0, Serial0/0/0 Summarizing with metric 2169856
12.0.0.0/8 for FastEthernet0/0, Serial0/0/1, Serial0/0/0 Summarizing with metric 2169856
10.0.0.0/8 for FastEthernet0/0, Serial0/0/1, Serial0/1/0 Summarizing with metric 2169856
Maximum path: 4 Routing for Networks:
10.0.0.0
11.0.0.0
192.168.10.0
Routing Information Sources:
Gateway Distance Last Update 10.0.0.2 90 6977 11.0.0.2 90 9912 Distance: internal 90 external 170
Lệnh show ip route là lệnh hiển thị các kết nối tới các router khác. Xác định đó là dạng kết nối gì. Đây cũng là bảng định tuyến của Router R1, hiển thị rõ hơn cho câu lệnh cấu hình ban đầu.
Router#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/8 is variably subnetted, 2 subnets, 2 masks D 10.0.0.0/8 is a summary, 00:00:57, Null0 C 10.0.0.0/24 is directly connected, Serial0/0/0 11.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
D 11.0.0.0/8 is a summary, 00:01:04, Null0 C 11.0.0.0/24 is directly connected, Serial0/0/1 12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
D 12.0.0.0/8 is a summary, 00:01:04, Null0 C 12.0.0.0/24 is directly connected, Serial0/1/0
D 13.0.0.0/8 [90/2681856] via 10.0.0.2, 00:00:57, Serial0/0/0 D 14.0.0.0/8 [90/2681856] via 10.0.0.2, 00:00:55, Serial0/0/0 D 15.0.0.0/8 [90/2681856] via 11.0.0.2, 00:00:54, Serial0/0/1
D 16.0.0.0/8 [90/3193856] via 10.0.0.2, 00:00:55, Serial0/0/0 D 17.0.0.0/8 [90/3193856] via 10.0.0.2, 00:00:57, Serial0/0/0 D 18.0.0.0/8 [90/3193856] via 11.0.0.2, 00:00:54, Serial0/0/1 D 19.0.0.0/8 [90/3193856] via 10.0.0.2, 00:00:55, Serial0/0/0 D 172.16.0.0/16 [90/3196416] via 10.0.0.2, 00:00:57, Serial0/0/0 [90/3196416] via 11.0.0.2, 00:00:54, Serial0/0/1
C 192.168.10.0/24 is directly connected, FastEthernet0/0
Và bảng cấu trúc mạng của Router bằng lệnh show ip eigrp topology.
Router1#show ip eigrp topology IP-EIGRP Topology Table for AS 100
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply, r - Reply status
P 192.168.10.0/24, 1 successors, FD is 28160 via Connected, FastEthernet0/0
P 11.0.0.0/24, 1 successors, FD is 2169856 via Connected, Serial0/0/1
P 11.0.0.0/8, 1 successors, FD is 2169856 via Summary (2169856/0), Null0 P 12.0.0.0/24, 1 successors, FD is 2169856 via Connected, Serial0/1/0
P 12.0.0.0/8, 1 successors, FD is 2169856 via Summary (2169856/0), Null0 P 10.0.0.0/24, 1 successors, FD is 2169856 via Connected, Serial0/0/0
P 10.0.0.0/8, 1 successors, FD is 2169856 via Summary (2169856/0), Null0 P 13.0.0.0/8, 1 successors, FD is 2681856
via 10.0.0.2 (2681856/2169856), Serial0/0/0 P 172.16.0.0/16, 2 successors, FD is 3196416 via 10.0.0.2 (3196416/2684416), Serial0/0/0
via 11.0.0.2 (3196416/2684416), Serial0/0/1 P 19.0.0.0/8, 1 successors, FD is 3193856 via 10.0.0.2 (3193856/2681856), Serial0/0/0 P 14.0.0.0/8, 1 successors, FD is 2681856 via 10.0.0.2 (2681856/2169856), Serial0/0/0 P 17.0.0.0/8, 1 successors, FD is 3193856 via 10.0.0.2 (3193856/2681856), Serial0/0/0 P 18.0.0.0/8, 1 successors, FD is 3193856 via 11.0.0.2 (3193856/2681856), Serial0/0/1 P 15.0.0.0/8, 1 successors, FD is 2681856 via 11.0.0.2 (2681856/2169856), Serial0/0/1 P 16.0.0.0/8, 1 successors, FD is 3193856 via 10.0.0.2 (3193856/2681856), Serial0/0/0