set routing pbr map sequence action nexthop

The set routing pbr map sequence action nexthop command configures an action to redirect packets to a next-hop IP address for policy-based routing. The next-hop address must be directly connected and reachable without supporting recursion.

The delete routing pbr map sequence action nexthop command deletes the configuration.

 

Command Syntax

set routing pbr map <map-name> sequence <sequence-number> action nexthop <ip-address> [nexthop-vrf  <vrf-name>]

delete routing pbr map <map-name> sequence <sequence-number> match action nexthop <ip-address> [nexthop-vrf]

 

Parameter

Parameter

Description

map <map-name>

Specifies the map name of a PBR policy. The value is a string.

sequence <sequence-number>

Specifies sequence number. The value is an integer that ranges from 1 to 700.

nexthop <ip-address>

Specifies next-hop IP, it could be a specific IPv4/IPv6 address. For example, 192.168.1.10.

nexthop-vrf  <vrf-name>

Optional. Specifies the name of the VRF for the next-hop route.

  • When a VRF name is specified, find the next hop routing information from the specified VRF domain.

  • When no VRF is specified, find the next hop routing information from the default VRF.

 

Example

  • Configure an action to redirect packets to a next-hop IP address for policy-based routing.

admin@PICOS# set routing pbr map PBR_map1 sequence 100 action nexthop 10.30.1.10 admin@PICOS# commit

Copyright © 2024 Pica8 Inc. All Rights Reserved.