无法向 ebgp 对等体发布路由并修改下一跳地址。在接收路由器上,这可以通过配置匹配社区并将下一跳设置为正确地址的导入策略来解决;然而,好奇我在忽视什么。
root@juniper.mx5# show logical-systems arouter protocols bgp
accept-remote-nexthop;
local-address 10.10.200.46;
group external-65534 {
traceoptions {
file arouter-bgp-update;
flag update;
flag route;
flag packets;
}
description root-ls;
export internal-rtbh;
peer-as 65534;
neighbor 10.10.200.45;
}
group external-65422 {
description arouter-ls;
accept-remote-nexthop;
local-address 10.10.200.45;
peer-as 65422;
neighbor 10.10.200.46;
}
root@juniper.mx5# show logical-systems arouter routing-options static | find 172.16.22.100
route 172.16.22.100/32 {
discard;
tag 65422;
}
root@juniper.mx5# show logical-systems arouter policy-options policy-statement internal-rtbh
from {
protocol static;
tag 65422;
}
then {
local-preference 400;
origin igp;
community add no-export;
next-hop 192.0.2.13;
accept;
}
root@juniper.mx5# run show route logical-system arouter advertising-protocol bgp 10.10.200.45 extensive
inet.0: 26 destinations, 26 routes (26 active, 0 holddown, 0 hidden)
* 172.16.22.100/32 (1 entry, 1 announced)
BGP group external-65534 type External
Nexthop: Self
Flags: Nexthop Change
AS path: [65422] I
Communities: no-export
root@juniper.mx5# run show route logical-system brouter receive-protocol bgp 10.10.200.46 extensive
inet.0: 40 destinations, 40 routes (40 active, 0 holddown, 0 hidden)
* 172.16.22.100/32 (1 entry, 1 announced)
Accepted
Nexthop: 10.10.200.46
AS path: 65422 I
Communities: no-export