
C613-50186-01 Rev B
Command Reference for AR2050V
1486
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
VRF-
LITE
C
OMMANDS
REDISTRIBUTE
(
INTO
BGP
OR
BGP4+)
redistribute (into BGP or BGP4+)
Overview
Use this command to inject routes from one routing process into a BGP or BGP4+
routing table.
Use the
no
variant of this command to disable this function.
Syntax
redistribute {ospf|rip|connected|static} [route-map
<
route-map-entry-pointer
>]
no redistribute {ospf|rip|connected|static} [route-map
<
route-map-entry-pointer
>]
Mode [BGP]
Router Configuration or IPv4 Address Family Configuration
Mode [BGP4+]
Router Configuration or IPv6 Address Family Configuration
Usage
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.
Examples [BGP/
BGP+]
The following example shows the configuration of a route-map named
rmap1
,
which is then applied using the
redistribute route-map
command.
awplus#
configure terminal
awplus(config)#
route-map rmap1 permit 1
awplus(config-route-map)#
match origin incomplete
awplus(config-route-map)#
set metric 100
awplus(config-route-map)#
exit
awplus(config)#
router bgp 12
awplus(config-router)#
redistribute ospf route-map rmap1
Parameter
Description
connected
Specifies the redistribution of connected routes
for both BGP and BGP4+.
ospf
Specifies the redistribution of OSPF information
for BGP or OSPFv3 information for BGP4+.
rip
Specifies the redistribution of RIP information for
BGP or RIPng information for BGP4+.
static
Specifies the redistribution of Static routes for
both BGP and BGP4+.
route-map
Route map reference for both BGP and BGP4+.
<
route-map-entry-pointer
>
Pointer to route-map entries.