redistribute
Use this command to inject routes from one routing process into another. Redistribution is used by routing protocols to advertise routes that are learned by some other means, such as by another routing protocol or by static routes. Since all internal routes are dumped into BGP, careful filtering is applied to make sure that only routes to be advertised reach the internet, not everything. This command allows redistribution by injecting prefixes from one routing protocol into another routing protocol.
Use the no parameter with this command to disable this function.
Command Syntax
redistribute [connected|isis|kernel|ospf|rip|static]
redistribute [connected|isis|kernel|ospf|rip|static] route-map WORD
no redistribute [connected|isis|kernel|ospf|rip|static]
no redistribute [connected|isis|kernel|ospf|rip|static] route-map
no redistribute [connected|isis|kernel|ospf|rip|static] route-map WORD
Parameters
connected
Redistribute connected routes
isis
Redistribute connected ISO IS-IS routes
kernel
Redistribute connected kernel routes
ospf
Redistribute OSPFv2 routes
rip
Redistribute RIP routes
static
Redistribute static routes
route-map
Route map reference
WORD
Route map entries
Default
By default, redistribute is disabled
Command Mode
Address Family mode and Address Family-vrf mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The following example shows the configuration of the route-map name rmap1 and then the use of this map name in the redistribute route-map command.
#configure terminal
(config)#route-map rmap1 permit 1
(config-route-map)#match origin incomplete
(config-route-map)#set metric 100
(config-route-map)#exit
(config)#router bgp 12
(config-router)#address-family ipv4 unicast
(config-router-af)#redistribute ospf route-map rmap1
(config)#router bgp 100
(config-router)#address-family ipv4 vrf VRF_A
(config-router-af)#redistribute static
(config)#router bgp 100
(config-router)#address-family ipv6 vrf VRF_A
(config-router-af)#redistribute static
Last modified date: 07-13-2023