set protocols ospf redistribute
Run the command set protocol ospf redistribute to redistribute routes of a specified type or protocol 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. 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 [vrf <vrf-name>] redistribute {bgp|connected|kernel|static|table <1-65535>} [metric <0-16777214>]
delete protocols ospf [vrf <vrf-name>] redistribute {bgp|connected|kernel|static|table|table <1-65535>} [metric <0-16777214>]
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. |
metric <0-16777214> | Optional. Specifies the route metric. The value is an integer that ranges from 0 to16777214. |
Example
- Configure OSPF to redistribute BGP routes into OSPF.
admin@XorPlus# set protocols ospf vrf BLUE redistribute bgp admin@Xorplus# commit
Copyright © 2025 Pica8 Inc. All Rights Reserved.