set routing route-map set-action src


The set routing route-map set-action src command sets the preferred source address for matching routes when installing in the kernel.
The delete routing route-map set-action src command restores the default behavior of not modifying the source address of the route entry.

Command Syntax

set routing route-map <route-map-name> order <NUMBERset-action src {ipv4-addr <ipv4-address>| ipv6-addr <ipv6-address>}

delete routing route-map <route-map-name> order <NUMBER> set-action src {ipv4-addr <ipv4-address>| ipv6-addr<ipv6-address>}


Parameter

Parameter

Description

route-map <route-map-name>

Specifies the name of the route map. Required.

order <NUMBER>

Specifies the sequence number of the entry. Required. The value is an integer that ranges from 1 to 65535.

 src {ipv4-addr <ipv4-address>| ipv6-addr <ipv6-address>}

Specifies the preferred source address to be set for a route.


Example

  •  Configure a action clause in the route map to modify the source address of the route:
admin@Xorplus# set routing route-map GlobalMap order 10 set-action src ipv4-addr 100.100.100.1
admin@Xorplus# commit

Copyright © 2024 Pica8 Inc. All Rights Reserved.