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. 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>
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. |
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. |
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 for OSPF instance ID 1.
admin@XorPlus# set protocols ospf instance-id 1 vrf BLUE redistribute bgp route-map map1 admin@Xorplus# commit
Copyright © 2024 Pica8 Inc. All Rights Reserved.