set protocols ospf redistribute
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>]
Parameter
Parameter | Description |
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. |
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 <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. |
Example
- Â 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
Copyright © 2024 Pica8 Inc. All Rights Reserved.