Tải bản đầy đủ (.doc) (7 trang)

lab 3-1 cấu hình eigrp với các mạng không liên tục

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (57.64 KB, 7 trang )

Lab 3-1: CẤU HÌNH EIGRP VỚI CÁC MẠNG KHÔNG LIÊN TỤC
Mô tả
Bài thực hành này mô tả cách cấu hình EIGRP trên các router để giải quyết vấn đề mạng
không liên tục (discontiguous network)
Cấu hình
RouterA
!
version 12.1
!
hostname RouterA
!
!
ip subnet-zero
no ip domain-lookup
!
!
interface Serial0
ip address 170.170.1.1 255.255.255.0
clockrate 64000
!
interface Serial1
ip address 170.170.2.1 255.255.255.0
clockrate 64000
!
router eigrp 10
network 170.170.0.0
no eigrp log-neighbor-changes
!
ip classless
no ip http server
!


!
line con 0
transport input none
line aux 0
line vty 0 4
privilege level 15
no login
!
end
RouterB
!
version 12.0
!
hostname RouterB
!
ip subnet-zero
no ip domain-lookup
!
!
interface Ethernet0
ip address 180.180.3.2 255.255.255.0
no ip directed-broadcast
no keepalive
!
interface Serial0
ip address 170.170.1.2 255.255.255.0
no ip directed-broadcast
!
router eigrp 10
network 170.170.0.0

network 180.180.0.0
no auto-summary
!
ip classless
!
line con 0
transport input none
line aux 0
line vty 0 4
privilege level 15
no login
!
end
RouterC
!
version 12.0
!
hostname RouterC
!
!
ip subnet-zero
no ip domain-lookup
!
interface Ethernet0
ip address 180.180.5.3 255.255.255.0
no ip directed-broadcast
no keepalive
no shutdown
!
interface Serial1

ip address 170.170.2.3 255.255.255.0
no ip directed-broadcast
!
router eigrp 10
network 170.170.0.0
network 180.180.0.0
no auto-summary
!
ip classless
!
line con 0
transport input none
line vty 0 4
privilege level 15
no login
!
end
Các bước thực hiện
1. Các router sau khi đã cấu hình địa chỉ IP, bật định tuyến EIGRP trên các router :
RouterA(config)#router eirp 10
RouterA(config-router)#network 170.170.0.0
RouterB(config)#router eirp 10
RouterB(config-router)#network 170.170.0.0
RouterB(config-router)#network 180.180.0.0
RouterC(config)#router eirp 10
RouterC(config-router)#network 170.170.0.0
RouterC(config-router)#network 180.170.0.0
2. Trở về RouterA và kiểm tra kết nối bằng lệnh ping; từ RouterA ping E0 của RouterB
(180.180.3.2). "U" trong thông báo nghĩa là RouterA nhận được bản tin Internet Control
Message Protocol (ICMP) host unreachable, để trả lời cho các gói ICMP echo.

RouterA#ping 180.180.3.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 180.180.3.2, timeout is 2 seconds:
U!.!U
Success rate is 40 percent (2/5), round-trip min/avg/max = 32/32/32 ms
RouterA đã gởi đi các gói nhưng nó không nhận đủ các gói trả lời. Thêm nữa, dường như
không phải cùng một router trả lời cả bản tin ICMP echo reply và ICMP host
unreachable. Như vậy RouterA gởi gói đi đâu?
Để trả lời câu hỏi, phải dùng một số lệnh debug, hay kiểm tra bản định tuyến của
RouterA. Xem đích tới 180.180.3.2 trong bảng định tuyến của RouterA dùng lệnh
show ip route 180.180.3.2
RouterA#sh ip rout 180.180.3.2
Routing entry for 180.180.0.0/16
Known via "eigrp 10", distance 90, metric 2195456, type internal
Redistributing via eigrp 10
Last update from 170.170.1.2 on Serial0, 00:06:08 ago
Routing Descriptor Blocks:
170.170.2.3, from 170.170.2.3, 00:06:08 ago, via Serial1
Route metric is 2195456, traffic share count is 1
Total delay is 21000 microseconds, minimum bandwidth is 1544 Kbit
Reliability 249/255, minimum MTU 1500 bytes
Loading 1/255, Hops 1
* 170.170.1.2, from 170.170.1.2, 00:06:08 ago, via Serial0
Route metric is 2195456, traffic share count is 1
Total delay is 21000 microseconds, minimum bandwidth is 1544 Kbit
Reliability 255/255, minimum MTU 1500 bytes
Loading 1/255, Hops 1
RouterA có hai đường cùng chi phí tới đích, một qua 170.170.2.3 (RouterC) và một qua
170.170.1.2 (RouterB). Như vậy, RouterA gởi các gói tới 180.180.3.2, qua 170.170.2.3,
sau đó gói kế tiếp qua 170.170.1.2, cứ tiếp tục như vậy. Sau khi RouterA gởi gói, tuỳ

thuộc vào chặng kế để xử lý. Dùng lệnh show ip route 180.180.3.2 trên cả RouterB và
RouterC.
RouterB#sh ip ro 180.180.3.2
Routing entry for 180.180.3.0/24
Known via "connected", distance 0, metric 0 (connected, via interface)
Redistributing via eigrp 10
Routing Descriptor Blocks:
* directly connected, via Ethernet0
Route metric is 0, traffic share count is 1
RouterC#sh ip ro 180.180.3.2
Routing entry for 180.180.0.0/16
Known via "eigrp 10", distance 5, metric 281600, type internal
Redistributing via eigrp 10
Routing Descriptor Blocks:
* directly connected, via Null0
Route metric is 281600, traffic share count is 1
Total delay is 1000 microseconds, minimum bandwidth is 10000 Kbit
Reliability 249/255, minimum MTU 1500 bytes
Loading 1/255, Hops 0
Sau khi xem xong bảng định tuyến ở RouterB và RouterC dễ dàng nhận thấy rằng. Tuyến
đường duy nhất của RouterC tới 180.180.3.2 là router tới Null0. RouterB có route đúng
qua Ethernet0. Như vậy; RouterB trả lời RouterA bằng ICMP echo reply và RouterC trả
lời với bản tin ICMP host unreachable.
Mạng không liên tục (180.180.0.0) sẽ không được hỗ trợ nếu EIGRP tự động summary
(auto-summary), điều này thực hiện mặc định. Có hai cách để xem EIGRP tự động
summary hay không : xem bản định tuyến hay dùng lệnh show ip protocols
RouterC#sh ip ro
Gateway of last resort is not set
170.170.0.0/16 is variably subnetted, 3 subnets, 2 masks
D 170.170.0.0/16 is a summary, 00:09:51, Null0

D 170.170.1.0/24 [90/2681856] via 170.170.2.1, 00:09:48, Serial1
C 170.170.2.0/24 is directly connected, Serial1
180.180.0.0/16 is variably subnetted, 2 subnets, 2 masks
D 180.180.0.0/16 is a summary, 00:09:51, Null0
C 180.180.5.0/24 is directly connected, Ethernet0
RouterC#sh ip protocols
Routing Protocol is "eigrp 10"
Outgoing update filter list for all interfaces is
Incoming update filter list for all interfaces is
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 10
Automatic network summarization is in effect
Automatic address summarization:
180.180.0.0/16 for Serial1
Summarizing with metric 281600
170.170.0.0/16 for Ethernet0
Summarizing with metric 2169856
Routing for Networks:
170.170.0.0
180.180.0.0
Routing Information Sources:
Gateway Distance Last Update
(this router) 5 00:10:04
170.170.2.1 90 00:07:47
Distance: internal 90 external 170
3. Tại RouterC và B tắt auto-summay

RouterB(config)#router eigrp 10
RouterB(config-router)#no auto-summary
RouterB(config-router)#end
RouterB#
RouterC#configure terminal
RouterC(config)#router eigrp 10
RouterC(config-router)#no auto-summary
RouterC(config-router)#end
4. Xem lại bản định tuyến trên RouterA sẽ thấy thông tin subnet từ RouterB và RouterC
RouterA#
RouterA#sh ip route

Gateway of last resort is not set
170.170.0.0/24 is subnetted, 2 subnets
C 170.170.1.0 is directly connected, Serial0
C 170.170.2.0 is directly connected, Serial1
180.180.0.0/24 is subnetted, 2 subnets
D 180.180.3.0 [90/2195456] via 170.170.1.2, 00:01:27, Serial0
D 180.180.5.0 [90/2195456] via 170.170.2.3, 00:00:35, Serial1
RouterB#sh ip route

Gateway of last resort is not set
170.170.0.0/16 is variably subnetted, 3 subnets, 2 masks
D 170.170.0.0/16 is a summary, 00:08:25, Null0
C 170.170.1.0/24 is directly connected, Serial0
D 170.170.2.0/24 [90/2681856] via 170.170.1.1, 00:08:21, Serial0
180.180.0.0/16 is variably subnetted, 2 subnets, 2 masks
D 180.180.0.0/16 is a summary, 00:08:18, Null0
C 180.180.3.0/24 is directly connected, Ethernet0
Vây giờ có thể ping 180.180.3.2, như vậy với cấu hình EIGRP giải quyết được vấn đề

discontiguous network.
RouterA#ping 180.180.3.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 180.180.3.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/8 ms
RouterB#ping 180.180.5.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 180.180.5.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms
5. Xem xét quá trình gởi nhận thông tin của các router
Thực hiện lệnh debug eigrp packets terse trong enable mode để hiển thị các bản tin debug
cho các gói EIGRP packets ngoại trừ các gói hello. Shutdown cổng ethernet 0, để kiểm
tra.
Ro`uter_C#debug eigrp packets terse
EIGRP Packets debugging is on
(UPDATE, REQUEST, QUERY, REPLY, IPXSAP, PROBE, ACK)
RouterC#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
RouterC(config)#interface ethernet 0
RouterC(config-if)#no shutdown
RouterC(config-if)#
EIGRP: Enqueueing UPDATE on Serial1 iidbQ un/rely 0/1 serno 34-34
EIGRP: Enqueueing UPDATE on Serial1 nbr 170.170.2.1 iidbQ UN/rely 0/0
EIGRP: Sending UPDATE on Serial1 nbr 170.170.2.1
AS 10, Flags 0x0, Seq 31/83 idbQ 0/0 iidbQ UN/rely 0/0 peerQ UN/rely
EIGRP: Received ACK on Serial1 nbr 170.170.2.1
AS 10, Flags 0x0, Seq 0/31 idbQ 0/0 iidbQ UN/rely 0/0 peerQ UN/rely 0/1
EIGRP: Serial1 multicast flow blocking cleared

EIGRP: Received UPDATE on Serial1 nbr 170.170.2.1
AS 10, Flags 0x0, Seq 84/31 idbQ 0/0 iidbQ UN/rely 0/0 peerQ UN/rely 0/0
EIGRP: Enqueueing ACK on Serial1 nbr 170.170.2.1
Ack seq 84 iidbQ UN/rely 0/0 peerQ UN/rely 1/0
EIGRP: Sending ACK on Serial1 nbr 170.170.2.1
AS 10, Flags 0x0, Seq 0/84 idbQ 0/0 iidbQ UN/rely 0/0 peerQ UN/rely 1/0
%LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0, changed
%LINK-3-UPDOWN: Interface Ethernet0, changed state to up
Khi thực hiện lệnh no shutdown trên cổng ethernet của RouterC
1. RouterC tổng hợp thông tin định tuyến và gởi thông tin định tuyến ra cổng serial 1.
Lưu ý rằng trên giao tiếp serial point-to-point, thông tin định tuyến được gởi tới địa chỉ
unicast của router láng giềng.
2. RouterA nhận thông tin định tuyến từ RouterC và gởi trả lời acknowledgment (ACK).
3. RouterA tổng hợp thông tin định tuyến và gởi thông tin định tuyến ra Serial 0 và Serial
1. Mặc dù không hiển thị tron debug, thông tin định tuyến gởi ngược lại RouterC trên
Serial 1 là poison reversed thông tin định tuyến chứa unreachable metric.
4. cả RouterB và RouterC gởi ACKs tới RouterA.
5. RouterB tổng hợp thông tin định tuyến (poison reverse update) và gởi nó tới RouterA.
6. RouterA gởi ACK tới RouterB.
Lúc này mạng đã hội tụ.

×