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 protocol ospf redistribute to redistribute routes of a specified type or protocol 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. You can optionally specify OSPF metric for the routes.

Run the command delete protocol ospf redistribute to remove this configuration.

Command Syntax

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

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




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. The value is a string.

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.
metric <metric>Optional. Specifies the route metric. The value is an integer that ranges from 0 to16777214.


  •  Configure OSPF to redistribute BGP routes into OSPF in instance ID 1 with metric 5.
admin@XorPlus# set protocols ospf instance-id 1 redistribute bgp metric 5
admin@Xorplus# commit
  • No labels