policy-based-routing¶
Note
requires a Product License.
Configure the policy-based routing.
vsr running config# vrf <vrf> routing policy-based-routing
ipv4-rule¶
Configure an IPv4 rule.
vsr running config# vrf <vrf> routing policy-based-routing
vsr running policy-based-routing# ipv4-rule <0-99999> [not] \
... match inbound-interface INBOUND-INTERFACE mark MARK source SOURCE destination DESTINATION \
... action lookup LOOKUP
|
Priority of the rule. High number means lower priority. |
match¶
Configure the packet selector.
match inbound-interface INBOUND-INTERFACE mark MARK source SOURCE destination DESTINATION
inbound-interface¶
Match this incoming interface.
inbound-interface INBOUND-INTERFACE
|
An interface name. |
mark¶
Match this mark filter.
mark MARK
|
Description |
---|---|
|
Firewall mark. |
|
Firewall mark filter. |
source¶
Match this source address or prefix.
source SOURCE
|
Description |
---|---|
|
An IPv4 address. |
|
An IPv4 prefix: address and CIDR mask. |
destination¶
Match this destination address or prefix.
destination DESTINATION
|
Description |
---|---|
|
An IPv4 address. |
|
An IPv4 prefix: address and CIDR mask. |
outbound-interface (state only)¶
Match this outgoing interface.
vsr> show state vrf <vrf> routing policy-based-routing ipv4-rule <0-99999> match outbound-interface
tos (state only)¶
Match this tos.
vsr> show state vrf <vrf> routing policy-based-routing ipv4-rule <0-99999> match tos
l3vrf (state only)¶
Match any l3vrf.
vsr> show state vrf <vrf> routing policy-based-routing ipv4-rule <0-99999> match l3vrf
action¶
Configure the action for packets matching the selector.
action lookup LOOKUP
lookup (mandatory)¶
Lookup in this table.
lookup LOOKUP
|
Description |
---|---|
|
Table type. |
|
High priority control routes for local and broadcast addresses (table 255). |
|
Normal routing table, containing all non-policy routes (table 254). |
|
Reserved for some post-processing if no previous default rules selected the packet (table 253). |
|
Lookup in a l3vrf table (table 0 and l3vrf match). |
goto (state only)¶
Jump to the specified priority rule.
vsr> show state vrf <vrf> routing policy-based-routing ipv4-rule <0-99999> action goto
other (state only)¶
Other actions.
vsr> show state vrf <vrf> routing policy-based-routing ipv4-rule <0-99999> action other
ipv6-rule¶
Configure an IPv6 rule.
vsr running config# vrf <vrf> routing policy-based-routing
vsr running policy-based-routing# ipv6-rule <0-99999> [not] \
... match inbound-interface INBOUND-INTERFACE mark MARK source SOURCE destination DESTINATION \
... action lookup LOOKUP
|
Priority of the rule. High number means lower priority. |
match¶
Configure the packet selector.
match inbound-interface INBOUND-INTERFACE mark MARK source SOURCE destination DESTINATION
inbound-interface¶
Match this incoming interface.
inbound-interface INBOUND-INTERFACE
|
An interface name. |
mark¶
Match this mark filter.
mark MARK
|
Description |
---|---|
|
Firewall mark. |
|
Firewall mark filter. |
source¶
Match this source address or prefix.
source SOURCE
|
Description |
---|---|
|
An IPv6 address. |
|
An IPv6 prefix: address and CIDR mask. |
destination¶
Match this destination address or prefix.
destination DESTINATION
|
Description |
---|---|
|
An IPv6 address. |
|
An IPv6 prefix: address and CIDR mask. |
outbound-interface (state only)¶
Match this outgoing interface.
vsr> show state vrf <vrf> routing policy-based-routing ipv6-rule <0-99999> match outbound-interface
tos (state only)¶
Match this tos.
vsr> show state vrf <vrf> routing policy-based-routing ipv6-rule <0-99999> match tos
l3vrf (state only)¶
Match any l3vrf.
vsr> show state vrf <vrf> routing policy-based-routing ipv6-rule <0-99999> match l3vrf
action¶
Configure the action for packets matching the selector.
action lookup LOOKUP
lookup (mandatory)¶
Lookup in this table.
lookup LOOKUP
|
Description |
---|---|
|
Table type. |
|
High priority control routes for local and broadcast addresses (table 255). |
|
Normal routing table, containing all non-policy routes (table 254). |
|
Reserved for some post-processing if no previous default rules selected the packet (table 253). |
|
Lookup in a l3vrf table (table 0 and l3vrf match). |
goto (state only)¶
Goto to the specified priority rule.
vsr> show state vrf <vrf> routing policy-based-routing ipv6-rule <0-99999> action goto
other (state only)¶
Other actions.
vsr> show state vrf <vrf> routing policy-based-routing ipv6-rule <0-99999> action other