I'm trying to set a blackhole route through route-policy following this article (BlackHole parameter ausency on "apply ip-address next-hop (Route-policy view)" command- Huawei) but it's not working:
Setting static-route:
ip route-static vpn-instance vpn_internal 192.0.2.1 255.255.255.255 NULL0 description BLACKHOLE
Route-policy:
route-policy rp_bgp_dw_as65001_fastnetmon_import permit node 10
apply ip-address next-hop 192.0.2.1
apply local-preference 1000
#
Prefixes received:
<NE40E-M2K>dis bgp vpnv4 vpn-instance vpn_internal routing-table peer AAA.BB.CC.53 received-routes
BGP Local router ID is 10.29.0.237
Status codes: * - valid, > - best, d - damped, x - best external, a - add path,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V - valid, I - invalid, N - not-found
VPN-Instance vpn_internal, Router ID 10.29.0.237:
Total Number of Routes: 2
Network NextHop MED LocPrf PrefVal Path/Ogn
XXX.YYY.ZZZ.101/32 192.0.2.1 1000 0 65001i
XXX.YYY.ZZZ.50/32 192.0.2.1 1000 0 65001i
BGP Route:
<NE40E-M2K>dis bgp vpnv4 vpn-instance vpn_internal routing-table peer AAA.BB.CC.53 received-routes XXX.YYY.ZZZ.50 32
BGP local router ID : 10.29.0.237
Local AS number : 28171
VPN-Instance vpn_internal, Router ID 10.29.0.237:
BGP routing table entry information of XXX.YYY.ZZZ.50/32:
From: AAA.BB.CC.53 (AAA.BB.CC.53)
Route Duration: 2d13h05m13s
Direct Out-interface:
Original nexthop: 192.0.2.1
Qos information : 0x0
Community: <65001:666>
AS-path 65001, origin igp, localpref 1000, pref-val 0, external, pre 255, invalid for nexthop route unreachable
Not advertised to any peer yet
<NE40E-M2K>
AS-path 65001, origin igp, localpref 1000, pref-val 0, external, pre 255, invalid for nexthop route unreachable
<NE40E-M2K>dis version
Huawei Versatile Routing Platform Software
VRP (R) software, Version 8.180 (NE40E V800R010C10SPC500)
Copyright (C) 2012-2018 Huawei Technologies Co., Ltd.
HUAWEI NE40E-M2K uptime is 845 days, 23 hours, 33 minutes
Patch Version: V800R010SPH035