Lab 3-4: EIGRP TRONG MÔI TRƯỜNG NBMA


Mô tả
Bài thực hành này chú trọng đến vấn đề split-horizon khi chạy EIGRP trong môi trường mạng NBMA như Frame Relay. Xét cấu hình mạng đơn giản hub-và-spoke như trên hình, RouterB hoạt động như là hub, có các PVC nối với mỗi spoke. Tất cả các router trên cùng một mạng. Vấn đề ở đây là quy luật split-horizone ngăn RouterB quảng cáo thông tin định tuyến ra cùng một cổng vật lý mà nó nhận được. Nghĩa là khi các PVC từ RouterA và RouterC kết nối trên cùng một cổng của RouterB, split-horizon ngăn RouterA nhận thông tin cập nhật định tuyến từ RouterC và ngược lại.
Bài thực hành này sẽ hướng dẫn cấu hình EIGRP trên Frame Relay. RouterA, RouterB và RouterC kết nối serial tới một router làm Frame Relay Switch, như trên sơ đồ.
Cấu hình ban đầu
FrameSwitch
!
hostname FrameSwitch
!
frame-relay switching
!
!
interface Serial0
no ip address
encapsulation frame-relay IETF
clockrate 64000
frame-relay lmi-type ansi
frame-relay intf-type dce
frame-relay route 100 interface Serial1 100
!
interface Serial1
no ip address
encapsulation frame-relay IETF
clockrate 500000
frame-relay lmi-type ansi
frame-relay intf-type dce
frame-relay route 100 interface Serial0 100
frame-relay route 200 interface Serial2 200
!
interface Serial2
no ip address
encapsulation frame-relay IETF
clockrate 64000
frame-relay lmi-type ansi
frame-relay intf-type dce
frame-relay route 200 interface Serial1 200
!
no ip classless
!
!
line con 0
line aux 0
line vty 0 4
!
end
RouterA
!
hostname RouterA
!
!
interface Loopback0 định nghĩa cổng ảo
ip address 1.1.1.1 255.255.255.255
!
interface Serial0/0
ip address 192.1.1.1 255.255.255.0
encapsulation frame-relay IETF
frame-relay map ip 192.1.1.2 100 broadcast
frame-relay map ip 192.1.1.3 100 broadcast
frame-relay lmi-type ansi
!
router eigrp 64
network 1.0.0.0
network 192.1.1.0
!
no ip classless
!
!
line con 0
line aux 0
line vty 0 4
!
end
RouterB
!
hostname RouterB
!
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface Serial0/0
ip address 192.1.1.2 255.255.255.0
encapsulation frame-relay IETF
frame-relay map ip 192.1.1.1 100 broadcast
frame-relay map ip 192.1.1.3 200 broadcast
frame-relay lmi-type ansi
!
!
router eigrp 64
network 2.0.0.0
network 192.1.1.0
!
no ip classless
!
line con 0
line aux 0
line vty 0 4
!
end
RouterC
!
hostname RouterC
!
!
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface Serial0/0
ip address 192.1.1.3 255.255.255.0
encapsulation frame-relay IETF
frame-relay map ip 192.1.1.1 200 broadcast
frame-relay map ip 192.1.1.2 200 broadcast
frame-relay lmi-type ansi
!
router eigrp 64
network 3.0.0.0
network 192.1.1.0
!
no ip classless
!
line con 0
line aux 0
line vty 0 4
!
end
Kiểm tra
Xem bảng định tuyến trên RouterA bằng lệnh show ip route. Chú ý rằng RouterA không nhận được thông tin về mạng 3.0.0.0. Điều này là do RouterB không quảng cáo thông tin định tuyến ra cùng cổng giao tiếp của router mà nó nhận được.
RouterA#sh ip route
...
Gateway of last resort is not set
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.1.1.1/32 is directly connected, Loopback0
D 1.0.0.0/8 is a summary, 00:00:32, Null0
D 2.0.0.0/8 [90/2297856] via 192.1.1.2, 00:00:32, Serial0/0
C 192.1.1.0/24 is directly connected, Serial0/0
Vô hiệu hóa split horizone trên RouterB bằng lệnh no ip split-horizon eigrp 64
RouterB#conf t
RouterB(config)#int s0/0
RouterB(config-if)#no ip split-horizon eigrp 64
Bây giờ xem lại bảng định tuyến trên RouterA, lúc này đã có route tới mạng 3.0.0.0
RouterA#sh ip route
...
Gateway of last resort is not set
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.1.1.1/32 is directly connected, Loopback0
D 1.0.0.0/8 is a summary, 00:02:27, Null0
D 2.0.0.0/8 [90/2297856] via 192.1.1.2, 00:02:32, Serial0/0
D 3.0.0.0/8 [90/2809856] via 192.1.1.2, 00:02:30, Serial0/0
C 192.1.1.0/24 is directly connected, Serial0/0
Một số lệnh kiểm lỗi trong EIGRP
Cisco IOS cung cấp một số công cụ kiểm lỗi các giao thức định tuyến. Sau đây là một số lệnh chính, kèm theo là ví dụ trên RouterB.
{show ip eigrp neighbor} lệnh này liệt kê các thông tin tất cả các láng giềng EIGRP.
RouterB#sh ip eigrp neighbors
IP-EIGRP neighbors for process 64
H Address Interface Hold Uptime SRTT RTO Q Seq Type
(sec) (ms) Cnt Num
1 192.1.1.1 Se0/0 0:00:29 1 5000 1 0
0 192.1.1.3 Se0/0 169 00:01:03 24 200 0 4
{show ip protocol} lệnh này hiển thị các thông số và trạng thái hoạt động hiện tại của các giao thức định tuyến. Thông tin hiển thị: giao thức định tuyến sử dụng, thời gian, các giao thức được redistribute, và mạng mà giao thức định tuyến quảng cáo,...
RouterB#sh ip protocols
Routing Protocol is "eigrp 64"
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 64
Automatic network summarization is in effect
Automatic address summarization:
192.1.1.0/24 for Loopback0
2.0.0.0/8 for Serial0/0
Summarizing with metric 128256
Maximum path: 4
Routing for Networks:
2.0.0.0
192.1.1.0
Routing Information Sources:
Gateway Distance Last Update
(this router) 90 00:27:43
192.1.1.1 90 00:01:32
192.1.1.3 90 00:00:44
Distance: internal 90 external 170
{show ip eigrp topology} hiển thị bảng cấu hình mạng EIGRP, xem trạng thái của thuật toán DUAL.
RouterB#sh ip eigrp topology
IP-EIGRP Topology Table for AS(64)/ID(2.2.2.2)
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - reply Status, s - sia Status
P 2.2.2.2/32, 1 successors, FD is 128256
via Connected, Loopback0
P 2.0.0.0/8, 1 successors, FD is 128256
via Summary (128256/0), Null0
P 3.0.0.0/8, 1 successors, FD is 2297856
via 192.1.1.3 (2297856/128256), Serial0/0
P 192.1.1.0/24, 1 successors, FD is 2169856
via Connected, Serial0/0
{show ip eigrp intefaces} hiển thị tất cả các cổng giao tiếp của router chạy EIGRP. Câu lệnh dùng để xem nhanh EIGRP đã được cấu hình trên inteface nào, thuộc AS nào.
RouterB#sh ip eigrp interfaces
IP-EIGRP interfaces for process 64
Xmit Queue Mean Pacing Time Multicast Pending
Interface Peers Un/Reliable SRTT Un/Reliable Flow Timer Routes
Se0/0 2 0/0 37 0/15 78 0
Lo0 0 0/0 0 0/10 0 0
{debug eigrp packet} xem thông tin tất cả các gói EIGRP vào hoặc ra router. Lệnh này cần thiết trong phân tích các bản tin giữa các router láng giềng.
RouterB#debug eigrp packets
EIGRP Packets debugging is on
(UPDATE, REQUEST, QUERY, REPLY, HELLO, IPXSAP, PROBE, ACK, STUB, SIAQUERY, SIAREPLY)
RouterB#
01:00:29: EIGRP: Sending HELLO on Loopback0
01:00:29: AS 64, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0
01:00:29: EIGRP: Received HELLO on Loopback0 nbr 2.2.2.2
01:00:29: AS 64, Flags 0x0, Seq 0/0 idbQ 0/0
01:00:29: EIGRP: Packet from ourselves ignored
{show ip eigrp traffic} xem loại và số lượng các gói EIGRP gởi nhận bởi router.
RouterB#sh ip eigrp traffic
IP-EIGRP Traffic Statistics for process 64
Hellos sent/received: 551/558
Updates sent/received: 36/13
Queries sent/received: 0/0
Replies sent/received: 0/0
Acks sent/received: 6/9
Input queue high water mark 2, 0 drops
Mô tả
Bài thực hành này chú trọng đến vấn đề split-horizon khi chạy EIGRP trong môi trường mạng NBMA như Frame Relay. Xét cấu hình mạng đơn giản hub-và-spoke như trên hình, RouterB hoạt động như là hub, có các PVC nối với mỗi spoke. Tất cả các router trên cùng một mạng. Vấn đề ở đây là quy luật split-horizone ngăn RouterB quảng cáo thông tin định tuyến ra cùng một cổng vật lý mà nó nhận được. Nghĩa là khi các PVC từ RouterA và RouterC kết nối trên cùng một cổng của RouterB, split-horizon ngăn RouterA nhận thông tin cập nhật định tuyến từ RouterC và ngược lại.
Bài thực hành này sẽ hướng dẫn cấu hình EIGRP trên Frame Relay. RouterA, RouterB và RouterC kết nối serial tới một router làm Frame Relay Switch, như trên sơ đồ.
Cấu hình ban đầu
FrameSwitch
!
hostname FrameSwitch
!
frame-relay switching
!
!
interface Serial0
no ip address
encapsulation frame-relay IETF
clockrate 64000
frame-relay lmi-type ansi
frame-relay intf-type dce
frame-relay route 100 interface Serial1 100
!
interface Serial1
no ip address
encapsulation frame-relay IETF
clockrate 500000
frame-relay lmi-type ansi
frame-relay intf-type dce
frame-relay route 100 interface Serial0 100
frame-relay route 200 interface Serial2 200
!
interface Serial2
no ip address
encapsulation frame-relay IETF
clockrate 64000
frame-relay lmi-type ansi
frame-relay intf-type dce
frame-relay route 200 interface Serial1 200
!
no ip classless
!
!
line con 0
line aux 0
line vty 0 4
!
end
RouterA
!
hostname RouterA
!
!
interface Loopback0 định nghĩa cổng ảo
ip address 1.1.1.1 255.255.255.255
!
interface Serial0/0
ip address 192.1.1.1 255.255.255.0
encapsulation frame-relay IETF
frame-relay map ip 192.1.1.2 100 broadcast
frame-relay map ip 192.1.1.3 100 broadcast
frame-relay lmi-type ansi
!
router eigrp 64
network 1.0.0.0
network 192.1.1.0
!
no ip classless
!
!
line con 0
line aux 0
line vty 0 4
!
end
RouterB
!
hostname RouterB
!
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface Serial0/0
ip address 192.1.1.2 255.255.255.0
encapsulation frame-relay IETF
frame-relay map ip 192.1.1.1 100 broadcast
frame-relay map ip 192.1.1.3 200 broadcast
frame-relay lmi-type ansi
!
!
router eigrp 64
network 2.0.0.0
network 192.1.1.0
!
no ip classless
!
line con 0
line aux 0
line vty 0 4
!
end
RouterC
!
hostname RouterC
!
!
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface Serial0/0
ip address 192.1.1.3 255.255.255.0
encapsulation frame-relay IETF
frame-relay map ip 192.1.1.1 200 broadcast
frame-relay map ip 192.1.1.2 200 broadcast
frame-relay lmi-type ansi
!
router eigrp 64
network 3.0.0.0
network 192.1.1.0
!
no ip classless
!
line con 0
line aux 0
line vty 0 4
!
end
Kiểm tra
Xem bảng định tuyến trên RouterA bằng lệnh show ip route. Chú ý rằng RouterA không nhận được thông tin về mạng 3.0.0.0. Điều này là do RouterB không quảng cáo thông tin định tuyến ra cùng cổng giao tiếp của router mà nó nhận được.
RouterA#sh ip route
...
Gateway of last resort is not set
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.1.1.1/32 is directly connected, Loopback0
D 1.0.0.0/8 is a summary, 00:00:32, Null0
D 2.0.0.0/8 [90/2297856] via 192.1.1.2, 00:00:32, Serial0/0
C 192.1.1.0/24 is directly connected, Serial0/0
Vô hiệu hóa split horizone trên RouterB bằng lệnh no ip split-horizon eigrp 64
RouterB#conf t
RouterB(config)#int s0/0
RouterB(config-if)#no ip split-horizon eigrp 64
Bây giờ xem lại bảng định tuyến trên RouterA, lúc này đã có route tới mạng 3.0.0.0
RouterA#sh ip route
...
Gateway of last resort is not set
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.1.1.1/32 is directly connected, Loopback0
D 1.0.0.0/8 is a summary, 00:02:27, Null0
D 2.0.0.0/8 [90/2297856] via 192.1.1.2, 00:02:32, Serial0/0
D 3.0.0.0/8 [90/2809856] via 192.1.1.2, 00:02:30, Serial0/0
C 192.1.1.0/24 is directly connected, Serial0/0
Một số lệnh kiểm lỗi trong EIGRP
Cisco IOS cung cấp một số công cụ kiểm lỗi các giao thức định tuyến. Sau đây là một số lệnh chính, kèm theo là ví dụ trên RouterB.
{show ip eigrp neighbor} lệnh này liệt kê các thông tin tất cả các láng giềng EIGRP.
RouterB#sh ip eigrp neighbors
IP-EIGRP neighbors for process 64
H Address Interface Hold Uptime SRTT RTO Q Seq Type
(sec) (ms) Cnt Num
1 192.1.1.1 Se0/0 0:00:29 1 5000 1 0
0 192.1.1.3 Se0/0 169 00:01:03 24 200 0 4
{show ip protocol} lệnh này hiển thị các thông số và trạng thái hoạt động hiện tại của các giao thức định tuyến. Thông tin hiển thị: giao thức định tuyến sử dụng, thời gian, các giao thức được redistribute, và mạng mà giao thức định tuyến quảng cáo,...
RouterB#sh ip protocols
Routing Protocol is "eigrp 64"
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 64
Automatic network summarization is in effect
Automatic address summarization:
192.1.1.0/24 for Loopback0
2.0.0.0/8 for Serial0/0
Summarizing with metric 128256
Maximum path: 4
Routing for Networks:
2.0.0.0
192.1.1.0
Routing Information Sources:
Gateway Distance Last Update
(this router) 90 00:27:43
192.1.1.1 90 00:01:32
192.1.1.3 90 00:00:44
Distance: internal 90 external 170
{show ip eigrp topology} hiển thị bảng cấu hình mạng EIGRP, xem trạng thái của thuật toán DUAL.
RouterB#sh ip eigrp topology
IP-EIGRP Topology Table for AS(64)/ID(2.2.2.2)
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - reply Status, s - sia Status
P 2.2.2.2/32, 1 successors, FD is 128256
via Connected, Loopback0
P 2.0.0.0/8, 1 successors, FD is 128256
via Summary (128256/0), Null0
P 3.0.0.0/8, 1 successors, FD is 2297856
via 192.1.1.3 (2297856/128256), Serial0/0
P 192.1.1.0/24, 1 successors, FD is 2169856
via Connected, Serial0/0
{show ip eigrp intefaces} hiển thị tất cả các cổng giao tiếp của router chạy EIGRP. Câu lệnh dùng để xem nhanh EIGRP đã được cấu hình trên inteface nào, thuộc AS nào.
RouterB#sh ip eigrp interfaces
IP-EIGRP interfaces for process 64
Xmit Queue Mean Pacing Time Multicast Pending
Interface Peers Un/Reliable SRTT Un/Reliable Flow Timer Routes
Se0/0 2 0/0 37 0/15 78 0
Lo0 0 0/0 0 0/10 0 0
{debug eigrp packet} xem thông tin tất cả các gói EIGRP vào hoặc ra router. Lệnh này cần thiết trong phân tích các bản tin giữa các router láng giềng.
RouterB#debug eigrp packets
EIGRP Packets debugging is on
(UPDATE, REQUEST, QUERY, REPLY, HELLO, IPXSAP, PROBE, ACK, STUB, SIAQUERY, SIAREPLY)
RouterB#
01:00:29: EIGRP: Sending HELLO on Loopback0
01:00:29: AS 64, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0
01:00:29: EIGRP: Received HELLO on Loopback0 nbr 2.2.2.2
01:00:29: AS 64, Flags 0x0, Seq 0/0 idbQ 0/0
01:00:29: EIGRP: Packet from ourselves ignored
{show ip eigrp traffic} xem loại và số lượng các gói EIGRP gởi nhận bởi router.
RouterB#sh ip eigrp traffic
IP-EIGRP Traffic Statistics for process 64
Hellos sent/received: 551/558
Updates sent/received: 36/13
Queries sent/received: 0/0
Replies sent/received: 0/0
Acks sent/received: 6/9
Input queue high water mark 2, 0 drops