我是负载平衡流量的双重,相同大小的链接聚合到相同的VRF在PE路由器(Juniper MX5 JunOS 11.4)。来自CE (Cisco)的流量是很好的平衡,但我需要得到相反的权利。
我不是NATing内的多站点网络,唯一的NATing发生在边缘防火墙到互联网。
我在Juniper PE路由器上配置了如下VRF:
# show routing-instances {client}
instance-type vrf;
.
.
vrf-export {client}-load-balance;
.
.
routing-options {
static {
.
.
route 10.0.0.0/24 next-hop [ 196.33.144.11 196.33.144.3 ];
.
.
}
}
forwarding-options {
load-balance {
indexed-next-hop;
per-flow {
hash-seed;
}
}
}在主要配置中:
# show policy-options policy-statement {client}-load-balance
then {
load-balance per-packet;
}和
# show forwarding-options hash-key
family inet {
layer-3;
layer-4;
}路由器仍然只选择196.33.144.3跳来路由子网的(10.0.0.0/24)流量,而不是在两个链路上保持平衡。
以下是一些支票:
# run show route forwarding-table table {client}
Routing table: {client}.inet
Internet:
Destination Type RtRef Next hop Type Index NhRef Netif
default user 0 8:5b:e:84:4c:b0 ucst 561 3 ge-1/1/2.3017
default perm 0 rjct 961 1
0.0.0.0/32 perm 0 dscd 959 1
10.0.0.0/24 user 0 196.33.144.3 ucst 589 5 ge-1/1/5.2100
10.0.0.55/32 user 0 ucst 645 6 gr-1/1/10.1
10.0.0.210/32 user 0 ucst 645 6 gr-1/1/10.1
10.0.6.0/24 user 0 ucst 921 3 gr-1/1/10.16
.
.和
# run show route 10.0.0.0 table {client}.inet.0
{client}.inet.0: 19 destinations, 20 routes (19 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.0.0.0/24 *[Static/5] 3d 07:43:36
> to 196.33.144.3 via ge-1/1/5.2100
to 196.33.144.11 via gr-1/1/10.1和
# run show route table {client}.inet.0 detail
{client}.inet.0: 19 destinations, 20 routes (19 active, 0 holddown, 0 hidden)
.
.
10.0.0.0/24 (1 entry, 1 announced)
*Static Preference: 5
Next hop type: Router, Next hop index: 1048574
Address: 0xb6b407c
Next-hop reference count: 3
Next hop: 196.33.144.3 via ge-1/1/5.2100, selected
Next hop: 196.33.144.11 via gr-1/1/10.1
State: <Active Int Ext>
Age: 3d 7:46:23
Task: RT
Announcement bits (2): 0-RT 2-KRT
AS path: I
AS path: Recorded
10.0.0.55/32 (1 entry, 1 announced)
*Static Preference: 5
.
.有使用路由器的默认inet.0实例来解释这一点的指南,但是我找不到在VRF中这样做的例子。
我尝试使用VRF导出命令作为“禁止表导出负载平衡策略名称”的替代方法,因为VRF没有转发表选项。
有什么我可以尝试的吗?
发布于 2015-06-10 20:53:32
您似乎正在将负载平衡策略应用于routing-instance。它需要应用于forwarding-table,以便在转发平面上执行ECMP。
routing-options {
forwarding-table {
export load-balancing-policy;
}
}要确认它是有效的,您应该看到类似的东西。请注意转发表中的附加条目,以便输入10.0.0.0/24。
# run show route forwarding-table table {client}
Routing table: {client}.inet
Internet:
Destination Type RtRef Next hop Type Index NhRef Netif
default user 0 8:5b:e:84:4c:b0 ucst 561 3 ge-1/1/2.3017
default perm 0 rjct 961 1
0.0.0.0/32 perm 0 dscd 959 1
10.0.0.0/24 user 0 196.33.144.3 ucst 589 5 ge-1/1/5.2100 *
10.0.0.0/24 user 0 196.33.144.11 ucst 645 6 gr-1/1/10.1 *
10.0.0.55/32 user 0 ucst 645 6 gr-1/1/10.1
10.0.0.210/32 user 0 ucst 645 6 gr-1/1/10.1
10.0.6.0/24 user 0 ucst 921 3 gr-1/1/10.16
.
.https://networkengineering.stackexchange.com/questions/19109
复制相似问题