Configuring BGP4
December 2005 © Foundry Networks, Inc. 21 - 39
Redistributing OSPF External Routes
To configure the Layer 3 Switch to redistribute OSPF external type 1 routes, enter the following command:
FESX424 Router(config-bgp-router)# redistribute ospf match external1
Syntax: redistribute ospf [match internal | external1 | external2] [metric <num>] [route-map <map-name>]
The ospf parameter indicates that you are redistributing OSPF routes into BGP4.
The match internal | external1 | external2 parameter applies only to OSPF. This parameter specifies the types
of OSPF routes to be redistributed into BGP4. The default is internal.
NOTE: If you do not enter a value for the match parameter, (for example, you enter redistribute ospf only) then
only internal OSPF routes will be redistributed.
The metric <num> parameter changes the metric. You can specify a value from 0 – 4294967295. The default
is 0.
The route-map <map-name> parameter specifies a route map to be consulted before adding the OSPF route to
the BGP4 route table.
NOTE: The route map you specify must already be configured on the router. See “Defining Route Maps” on
page 21-48 for information about defining route maps.
NOTE: If you use both the redistribute ospf route-map <map-name> command and the redistribute ospf
match internal | external1 | external2 command, the software uses only the route map for filtering.
Redistributing Static Routes
To configure the Layer 3 Switch to redistribute static routes, enter the following command:
FESX424 Router(config-bgp-router)# redistribute static
Syntax: redistribute static [metric <num>] [route-map <map-name>]
The static parameter indicates that you are redistributing static routes into BGP4.
The metric <num> parameter changes the metric. You can specify a value from 0 – 4294967295. The default
is 0.
The route-map <map-name> parameter specifies a route map to be consulted before adding the static route to
the BGP4 route table.
NOTE: The route map you specify must already be configured on the router. See “Defining Route Maps” on
page 21-48 for information about defining route maps.
Disabling or Re-Enabling Re-Advertisement of All Learned
BGP4 Routes to All BGP4 Neighbors
By default, the Layer 3 Switch re-advertises all learned best BGP4 routes to BGP4 neighbors, unless the routes
are discarded or blocked by route maps or other filters.
If you want to prevent the Layer 3 Switch from re-advertising a learned best BGP4 route unless that route also is
installed in the IP route table, use the following CLI method.
To disable re-advertisement of BGP4 routes to BGP4 neighbors except for routes that the software also installs in
the route table, enter the following command:
FESX424 Router(config-bgp-router)# no readvertise
Syntax: [no] readvertise