Configuring Route Maps for OSPF Routes
Configure route maps to associate a redistributed metric or metric-type for OSPFv3. You can define a route map to prevent OSPF routes from getting added to the routing table. This filtering happens at the time when OSPF installs the route in the routing table.
Before you configure route maps, configure a list of prefixes using the following command:
CLI (network-admin@switch) > vrouter-prefix-list-add
Use the following set of commands to configure route maps for OSPF:
CLI (network-admin@switch) > vrouter-route-map-add
vrouter-name name-string |
Specify the name of the vRouter service. |
name name-string |
Specify the name for the route map. |
seq integer |
Specify the sequence number as an integer between 1 and 4294967295. |
action permit|deny |
Specify the route map action as permit or deny. |
match-prefix vrouter prefix-list name-string |
Specify the name of the prefix list used for the route map. |
community-attribute unset|none|no-export|no-advertise| |
Specify the community attribute for the route map. |
local-pref integer |
Specify the local preference as an integer between -1 and 4294967295. |
metric none |
Specify the metric as none. |
metric-type 1|2 |
Specify the metric type as 1 or 2. |
CLI (network-admin@switch) > vrouter-route-map-remove
vrouter-name name-string |
Specify the name of the vRouter service. |
name name-string |
Specify the name for the route map. |
seq integer |
Specify the sequence number as an integer between 1 and 4294967295. |
CLI (network-admin@switch) > vrouter-route-map-show
vrouter-name name-string |
Displays the name of the vRouter service. |
name name-string |
Displays the name for the route map. |
seq integer |
Displays the sequence number as an integer between 1 and 4294967295. |
action permit|deny |
Displays the route map action as permit or deny. |
match-prefix vrouter prefix-list name-string |
Displays the name of the prefix list used for the route map. |
community-attribute unset|none|no-export|no-advertise| |
Displays the community attribute for the route map. |
local-pref integer |
Displays the local preference as an integer between -1 and 4294967295. |
metric none |
Displays the metric as none. |
metric-type 1|2 |
Displays the metric type as 1 or 2. |