Configuration Guide User guide

FastIron Configuration Guide 1391
53-1002494-02
Modifying redistribution parameters
Modifying redistribution parameters
By default, the Layer 3 Switch does not redistribute route information between BGP4 and the IP
IGPs (RIP and OSPF). You can configure the switch to redistribute OSPF routes, RIP routes, directly
connected routes, or static routes into BGP4 by using the following methods.
To enable redistribution of all OSPF routes and directly attached routes into BGP4, enter the
following commands.
Brocade(config)#router bgp
Brocade(config-bgp-router)#redistribute ospf
Brocade(config-bgp-router)#redistribute connected
Brocade(config-bgp-router)#write memory
Syntax: [no] redistribute connected | ospf | rip | static
The connected parameter indicates that you are redistributing routes to directly attached devices
into BGP.
The ospf parameter indicates that you are redistributing OSPF routes into BGP4.
NOTE
Entering redistribute ospf simply redistributes internal OSPF routes. If you want to redistribute
external OSPF routes also, you must use the redistribute ospf match external... command.
Refer to “Redistributing OSPF external routes” on page 1392.
The rip parameter indicates that you are redistributing RIP routes into BGP4.
The static parameter indicates that you are redistributing static routes into BGP.
Refer to the following sections for details on redistributing specific routes using the CLI:
“Redistributing connected routes” on page 1391
“Redistributing RIP routes” on page 1392
“Redistributing OSPF external routes” on page 1392
“Redistributing static routes” on page 1393
Redistributing connected routes
To configure BGP4 to redistribute directly connected routes, enter the following command.
Brocade(config-bgp-router)#redistribute connected
Syntax: redistribute connected [metric <num>] [route-map <map-name>]
The connected parameter indicates that you are redistributing routes to directly attached devices
into BGP4.
The metric <num> parameter changes the metric. You can specify a value from 0 through
4294967295. The default is 0.
The route-map <map-name> parameter specifies a route map to be consulted before adding the
RIP route to the BGP4 route table.
NOTE
The route map you specify must already be configured on the switch. Refer to “Defining route maps”
on page 1403 for information about defining route maps.