set protocols ospf redistribute route-map
Run the command set protocols ospf redistribute route-map to specify a route map to filter routes of different sources for redistribution into OSPF. The optional parameter vrf can be used to specify OSFPv2 instance for a particular VRF. If VRF is not defined then OSPFv2 instance takes effect for the default VRF.
Run the command delete protocols ospf redistribute route-map to remove this configuration.
Command Syntax
set protocols ospf [vrf <text>] redistribute {bgp|connected|kernel|static|table <1-65535>} route-map <route-map>
delete protocols ospf [vrf <text>] redistribute {bgp|connected|kernel|static|table <1-65535>} route-map <route-map>
Parameter
Parameter | Description |
vrf <vrf-name> | Optional. Specifies the name of the VRF for the OSPF instance. |
bgp | Specify BGP routes for redistribution into OSPF. |
connected | Specifies the directly connected routes for redistribution. |
kernel | Specifies the kernel routes for redistribution. |
static | Specifies the static routes for redistribution. |
table <1-65535> | Specify a table for route redistribution. The value is an integer that ranges from 1 to 65535. |
route-map <route-map> | Specifies the route map to filter routes before redistributing them into OSPF. |
Example
- Configure OSPF to redistribute BGP routes into OSPF and filter routes using route map map1.
admin@XorPlus# set protocols ospf vrf BLUE redistribute bgp route-map map1 admin@Xorplus# commit
Related content
Copyright © 2025 Pica8 Inc. All Rights Reserved.