![Cisco Nexus 3548 series Command Reference Manual Download Page 317](http://html.mh-extra.com/html/cisco/nexus-3548-series/nexus-3548-series_command-reference-manual_2609162317.webp)
297
Cisco Nexus 3548 Switch NX-OS Unicast Routing Command Reference
OL-27852-01
Chapter Unicast Routing Commands
redistribute (OSPF)
redistribute (OSPF)
To inject routes from one routing domain into Open Shortest Path First (OSPF), use the
redistribute
command. To remove the
redistribute
command from the configuration file and restore the system to
its default condition in which the software does not redistribute routes, use the
no
form of this command.
redistribute
{
bgp
as-number
|
direct
|
eigrp
id
|
ospf
instance-tag
|
rip
instance-tag
|
static
}
[
route-map
map-name
]
no redistribute
{
bgp
as-number
|
direct
|
eigrp
id
|
ospf
instance-tag
|
rip
instance-tag
|
static
}
Syntax Description
Command Default
Route redistribution is disabled.
Command Modes
Router configuration mode
Router VRF configuration mode
Command History
Usage Guidelines
You should always use a route map to filter these routes to ensure that OSPF redistributes only the routes
that you intend.
You must configure a default metric to redistribute routes from another protocol into OSPF. You can
configure the default metric with the
default-metric
command or with the route map configured with
the
redistribute
command.
bgp
as-number
(Optional) Distributes routes from Border Gateway Protocol (BGP).
The
as-number
is a 2-byte or 4-byte autonomous system number. The
range for 2-byte numbers is from 1 to 65535. The range for 4-byte
numbers is from 1 to 4294967295.
direct
Distributes routes that are directly connected on an interface.
eigrp
id
Distributes routes from EIGRP. The
id
argument can be any
case-sensitive, alphanumeric string.
ospf
instance-tag
Distributes routes from the OSPF protocol. This protocol is
supported in the IPv4 address family. The
instance-tag
argument can
be any case-sensitive, alphanumeric string of up to 20 characters.
rip
instance-tag
Distributes routes from the RIP protocol. The
instance-tag
can be a
maximum of 20 alphanumeric characters.
static
Redistributes IP static routes, including the default static route.
route-map
map-name
(Optional) Specifies the identifier of a configured route map. Use a
route map to filter which routes are redistributed into EIGRP. The
map-name
argument can be a maximum of 63 alphanumeric
characters.
Release
Modification
5.0(3)A1(1)
This command was introduced.