policy route pbr <name> rule <rule-number> source mac-address <address>
Defines the source MAC address to match for a routing policy rule.
- name
- Name of a PBR group. The PBR group must be unique and must not be used with other PBR policy commands.
- rule-number
-
The numeric identifier of the rule. Rule numbers determine the order in which rules are executed. Each rule must have a unique rule number. The numbers range from 1 through 9999.
You can define multiple rules by creating more than one rule configuration node.
- source
- Specifies matching based on a source address.
- address
- Media access control (MAC) address. The address format is six 8-bit numbers, separated by colons, in hexadecimal; for example, 00:0a:59:9a:f2:ba.
Configuration mode
policy {
route {
pbr name {
rule rule-number {
source {
mac-address address
}
}
}
}
}
You must specify the address-family, action, and table leaf nodes to configure a routing policy. It is recommended to use the delete policy route pbr name rule number command to delete a routing policy.
Use the set form of this command to define a source MAC address for a routing-policy rule set.
Use the delete form of this command to delete the source MAC address for the routing-policy rule set.
Use the show form of this command to display the source MAC address for the routing-policy rule set.