79
apply ip-address next-hop
Syntax
View
Parameters
Description
Related commands:
Examples
display ip ip-prefix
Syntax
View
Parameters
IP
4 R
V
OUTING
C
ONFIGURATION
apply ip-address next-hop ip-address
undo apply ip-address next-hop
Routing policy view
ip-address: IP address of the next hop.
Use the
apply ip-address next-hop
information.
Use the
undo apply ip-address next-hop
configuration.
No next hop address is set for IPv4 routing information by default.
It is invalid to use the apply ip-address next-hop command to set a next hop
when redistributing routes.
if-match interface, if-match acl, if-match ip-prefix, if-match ip next-hop,
if-match cost, if-match tag, route-policy, apply local-preference, apply cost,
apply origin and apply tag.
# Create routing policy policy1 with node 10, matching mode permit. If passing
AS path ACL 1, a route's next hop is set to 193.1.1.8.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match as-path 1
[Sysname-route-policy] apply ip-address next-hop 193.1.1.8
display ip ip-prefix [ ip-prefix-name ]
Any view
ip-prefix-name: IP prefix list name, a string of 1 to 19 characters.
P
OLICY
C
OMMANDS
command to set a next hop for IPv4 routing
command to remove the clause