Programmable Internetworking & Communication Operating System Docs ... Click Spaces -> Space Directory to see docs for all releases ...
Page tree
Skip to end of metadata
Go to start of metadata

Run the command set protocols ospf redistribute route-map to specify a route map to filter routes of different sources for redistribution into OSPF. Optional parameter instance-id can be included to specify the OSPFv2 multi-instance ID. 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.

Multiple instances of OSPF are only allowed in the default VRF. A maximum of 8 instance can be configured in the default VRF. In non-default VRFs, only single instance OSPF can be configured.

Run the command delete protocols ospf redistribute route-map to remove this configuration.

Command Syntax

set protocols ospf [instance-id <instance-id> vrf <vrf-name>] redistribute {bgp|connected|kernel|static|table <table-id>} route-map <route-map>

delete protocols ospf [instance-id <instance-id> vrf <vrf-name>] redistribute {bgp|connected|kernel|static|table <table-id>} route-map <route-map>




instance-id <instance-id>Optional, specifies the OSPF instance ID. The value is an integer that ranges from 1 to 8.

vrf <vrf-name>

Optional. Specifies the name of the VRF for the OSPF instance.

bgpSpecify BGP routes for redistribution into OSPF.
connectedSpecifies the directly connected routes for redistribution.
kernelSpecifies the kernel routes for redistribution.
staticSpecifies the static routes for redistribution.
table <table-id>Specify a table for route redistribution. The value is an integer that ranges from 0 to 65535.
route-map <route-map>Specifies the route map to filter routes before redistributing them into OSPF.


  •  Configure OSPF to redistribute BGP routes into OSPF and filter routes using route map map1 for OSPF instance ID 1.
admin@XorPlus# set protocols ospf instance-id 1 vrf BLUE redistribute bgp route-map map1
admin@Xorplus# commit

  • No labels