EIGRP Unequal Load Balancing – Variance

Cấu hình EIGRP trên tất cả các router.

Cấu hình để EIGRP chỉ dùng delay làm metric –> trên tất cả router cấu hình:

R(config-router)#metric weight 0 0 0 1 0 0

Sửa giá trị delay trên các interface theo sơ đồ bên dưới, int lo 0 ==> Kết quả:

Đường qua R2 tổng delay là 3000us

Đường qua R3 tổng delay là 6000us

Đường qua R4 tổng delay là 4500us.

1.2.A2.EIGRP - DUAL.UnequalLB

Kiểm tra;

R1#show ip route 5.5.5.5
* 192.168.12.2, from 192.168.12.2, 00:00:14 ago, via Serial0/0
Route metric is 76800, traffic share count is 2
Total delay is 3000 microseconds, minimum bandwidth is 1544 Kbit
Reliability 255/255, minimum MTU 1500 bytes
Loading 1/255, Hops 2

Từ R1 tới Loop0 trên R5 thì đường đi tốt nhất đang là qua R2 với tổng delay = 3000us.

Để R1 có thể load-balancing qua các đường khá thì  có thể cấu hình điều chỉnh biến variance.

R1(config-router)#variance 2

When using the variance command, eigrp will add a feasible successor to the route table if the feasible successor has a feasible distance that is less than or equal to the product of the feasible distance of the successor times the variance setting and the feasibility condition is met. In math terms:

FD (of the FS) <= FD (of the S) * variance  

Dựa vào giải thích trên, bất kỳ route nào có nhỏ hơn 6000 (R1 FD=3000 x2) và thỏa mãn điều kiện FC thì sẽ được đưa vào bảng định tuyến ==> Với topo này thì sau khi điều chỉnh variance =2, đường qua R3 (FD = 6000) sẽ được đưa vào bảng định tuyến, đường qua R4 (FD = 4500) mặc dù thỏa mãn < 6000, tuy nhiên lại không thỏa mãn điều kiện FC (R4 RD = 3500 > R1 FD = 3000) nên không được đưa vào bảng định tuyến.

Xem bảng định tuyến trên R1 để thấy:

R1#show ip route

C 192.168.12.0/24 is directly connected, Serial0/0
C 192.168.12.0/24 is directly connected, Serial0/0
C 192.168.13.0/24 is directly connected, Serial0/1
C 192.168.14.0/24 is directly connected, Serial0/2
D 192.168.45.0/24 [90/102400] via 192.168.14.4, 00:16:57, Serial0/2
D 192.168.25.0/24 [90/64000] via 192.168.12.2, 00:16:57, Serial0/0
D 5.0.0.0/8 [90/153600] via 192.168.13.3, 00:07:48, Serial0/1
                       [90/76800] via 192.168.12.2, 00:07:48, Serial0/0
D 192.168.35.0/24 [90/140800] via 192.168.13.3, 00:16:57, Serial0/1
[90/115200] via 192.168.12.2, 00:16:59, Serial0/0

Chi tiết về tỉ lệ traffic phân chia trên các đường thì có thể đọc thêm tại link sau:

http://www.cisco.com/c/en/us/support/docs/ip/enhanced-interior-gateway-routing-protocol-eigrp/13677-19.html

 

 

EIGRP Summary Route with Leak-map

Trên R2 cấu hình để tạo manual summary route 172.16.0.0/22 tuy nhiên vẫn cho phép quảng bá 1 specific route là 172.16.1.0/24

1.2.A1.EIGRP - Summary

Cấu hình trên R2 như sau:

R2(config)#ip prefix-list 1 permit 172.16.1.0/24

R2(config)#route-map LEAK permit 10

#match ip prefix-list 1

R2(config)#int s0/0

ip summary-address eigrp 100 172.16.0.0 255.255.252.0 leak-map LEAK

Kết quả trên R1:

R1#show ip route eigrp

D       1.0.0.0/8 is a summary, 01:23:26, Null0
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
D       172.16.0.0/22 [90/2297856] via 192.168.12.2, 00:08:11, Serial0/0
D       172.16.1.0/24 [90/2297856] via 192.168.12.2, 00:08:16, Serial0/0

 

EIGRP Summary Route

EIGRP có 2 cơ chế thực hiện summary route:

  • Auto Summary
  • Manual Summary

Điểm chung của EIGRP khi thực hiện summary là luôn luôn tạo ra route trỏ đến Null0 Interface, mục đích là loại bỏ traffic tới các subnet không thuộc summary route, tránh hiện tượng loop packet.

AD của Summary Route = 5.

1.2.A1.EIGRP - Summary

1. Auto Summary

R2#show ip route

C    192.168.12.0/24 is directly connected, Serial0/0
D    1.0.0.0/8 [90/2297856] via 192.168.12.1, 00:08:36, Serial0/0
172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks
D       172.16.0.0/16 is a summary, 00:01:22, Null0
C       172.16.1.0/24 is directly connected, Loopback0
C       172.16.2.0/24 is directly connected, Loopback2
C       172.16.3.0/24 is directly connected, Loopback3

Kiểm tra giá trị AD của Summary Route đúng =5. Chú ý là giá trị AD chỉ có ý nghĩa local nên trên R1 sẽ vẫn nhìn thấy summary route có AD = 90.

R2#show ip route 172.16.4.0
Routing entry for 172.16.0.0/16
Known via “eigrp 100”, distance 5, metric 128256, type internal
Redistributing via eigrp 100
Routing Descriptor Blocks:
* directly connected, via Null0
Route metric is 128256, traffic share count is 1
Total delay is 5000 microseconds, minimum bandwidth is 10000000 Kbit
Reliability 255/255, minimum MTU 1514 bytes
Loading 1/255, Hops 0

2. Manual Summary

R2(config-if)#ip summary-address eigrp 100 172.16.0.0 255.255.252.0

C    192.168.12.0/24 is directly connected, Serial0/0
D    1.0.0.0/8 [90/2297856] via 192.168.12.1, 00:11:07, Serial0/0
172.16.0.0/16 is variably subnetted, 5 subnets, 3 masks
D       172.16.0.0/22 is a summary, 00:00:03, Null0
D       172.16.0.0/16 is a summary, 00:03:53, Null0
C       172.16.1.0/24 is directly connected, Loopback0
C       172.16.2.0/24 is directly connected, Loopback2
C       172.16.3.0/24 is directly connected, Loopback3

Tắt Auto-summary đi:

R2(config-router)#no auto-summary

R2#show ip route
C    192.168.12.0/24 is directly connected, Serial0/0
D    1.0.0.0/8 [90/2297856] via 192.168.12.1, 00:12:09, Serial0/0
172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks
D       172.16.0.0/22 is a summary, 00:01:05, Null0
C       172.16.1.0/24 is directly connected, Loopback0
C       172.16.2.0/24 is directly connected, Loopback2
C       172.16.3.0/24 is directly connected, Loopback3

R1 nhận được manual summary route do R2 gửi sang.

R1#show ip route

C 192.168.12.0/24 is directly connected, Serial0/0
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.1.1.0/24 is directly connected, Loopback0
D 1.0.0.0/8 is a summary, 00:42:40, Null0
172.16.0.0/22 is subnetted, 1 subnets
D 172.16.0.0 [90/2297856] via 192.168.12.2, 00:02:58, Serial0/0

3. Manual Summary without Null0 interface

Để bỏ Interface null0 thì mẹo sẽ là tạo Summary Route với AD = 255

R2(config-if)#ip summary addresss eigrp 100 172.16.0.0 255.255.252.0 255

Kết quả trên R2, không còn Null0 interface:

C 192.168.12.0/24 is directly connected, Serial0/0
D 1.0.0.0/8 [90/2297856] via 192.168.12.1, 00:16:44, Serial0/0
172.16.0.0/24 is subnetted, 3 subnets
C 172.16.1.0 is directly connected, Loopback0
C 172.16.2.0 is directly connected, Loopback2
C 172.16.3.0 is directly connected, Loopback3