set routing pbr map sequence action nexthop-group
The set routing pbr map sequence action nexthop-group command configures an action to redirect packets to a next-hop group IP addresses for policy-based routing. The next-hop group addresses must be directly connected and reachable without supporting recursion.
The delete routing pbr map sequence action nexthop-group command deletes the configuration.
Â
Command Syntax
set routing pbr map <map-name> sequence <sequence-number> action nexthop-group <group-name>
delete routing pbr map <map-name> sequence <sequence-number> match action nexthop-group
Â
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-group <group-name> | Specifies next-hop group name. The value is a string defined in the command set routing nexthop-group <group-name> nexthop-vrf <vrf-name> nexthop <ip address>. |
Â
Example
Configure an action to redirect packets to a next-hop group for policy-based routing.
admin@PICOS# set routing nexthop-group group1 nexthop-vrf default nexthop 10.30.1.10
admin@PICOS# set routing nexthop-group group1 nexthop-vrf default nexthop 10.30.2.20
admin@PICOS# set routing pbr map PBR_map1 sequence 100 action nexthop-group group1
admin@PICOS# commit
Â
Copyright © 2024 Pica8 Inc. All Rights Reserved.