Configure an import routing policy, agg_route, that enables a single-hop external BGP peer to accept the remote next-hop 1.1.10.10. At the [edit protocols bgp] hierarchy level, include the import agg_route statement to apply the policy to the external BGP peer and include the accept-remote-nexthop statement to enable the single-hop EBGP peer to accept the remote next hop.
- [edit]
- policy-options {
-
- policy-statement agg_route {
-
- term 1 {
-
- from {
- protocol bgp;
- route-filter 1.1.230.0/23 exact;
- }
-
- then {
- next-hop 1.1.10.10;
- accept;
- }
- }
- }
- }
- protocols {
-
- bgp {
- accept-remote-nexthop;
-
- group ext {
- type external;
- import agg_route;
- peer-as 65001;
- multipath;
- neighbor 1.1.0.1;
- neighbor 1.1.1.1;
- }
-
- group int {
- type internal;
- local-address 10.255.71.24;
- neighbor 10.255.14.177;
- }
- }
- }