set ip next-hop
set ip next-hop
{
peer-address
|
ip-address
[
no-ttl-decrement
|
vrf
vrf-name
]
}
no set ip next-hop
{
peer-address
|
ip-address
[
no-ttl-decrement
|
vrf
vrf-name
]
}
The next-hop IP address is not configured by default.
Route map configuration mode
By default, the TTL value in the packet header is decremented (decreased) for routed traffic and the packet will be discarded when the TTL is exhausted. TTL functions as a hop count limit and every routing hop decrements the TTL value by one. When the TTL value becomes zero, the packet is discarded to prevent routing loops. The no-ttl-decrement option disables the TTL decrement and the packets will be forwarded without decrementing TTL for the traffic matched by the policy.
Policy-based routing (PBR) does not support the
peer-address option while configuring the next-hop IP address using the
set ip next-hop command.
For PBR on an interface in a VRF, if the VRF is not specified in the next hop (that is, only the IP address is specified as the next hop), the default VRF of the interface is considered. The next hop in a route map will take effect only if the interface on which the route map is applied and the next hop in the route map are in the same VRF
The no-ttl-decrement option is supported only on ICX 7750 and ICX 7450 devices.
The
no form of the command removes the next-hop IP address configured for the traffic.
The following example configures a route map without decrementing the Time-to-Live (TTL) value.
device(config)# route-map test-route permit 99 device(config-routemap test-route)# match ip address 100 device(config-routemap test-route)# set ip next-hop 192.168.3.1 no-ttl-decrement device(config-routemap test-route)# exit
The following example configures a route map with the default VRF of the interface as the next hop.
device(config)# route-map test-route permit 99 device(config-routemap test-route)# match ip address 100 device(config-routemap test-route)# set ip next-hop 192.168.3.1 device(config-routemap test-route)# exit
The following example configures a route map which specifies the next hop is a VRF named as vrf_c.
device(config)# route-map test-route permit 99 device(config-routemap test-route)# match ip address 100 device(config-routemap test-route)# set ip next-hop 192.168.3.1 vrf vrf_c device(config-routemap test-route)# exit
| Release version | Command history |
|---|---|
| 08.0.10d | The no-ttl-decrement option was introduced. |
| 08.0.30 | The support for the no-ttl-decrement option was added in FastIron 08.0.30 and later releases. |
| 08.0.50 | The vrf option was introduced. |