xStack DGS-3612G Layer 3 Gigabit Ethernet Managed Switch CLI Manual
34
R
OUTE
R
EDISTRIBUTION
C
OMMANDS
The route redistribution commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the
following table.
Command Parameters
create route redistribute dst ospf src [static | rip | local] {mettype [1 | 2] | metric <value 0-16777214>}
create route redistribute dst rip src
[local | static | ospf {all | internal | external | type_1 | type_2 |
inter+e1| inter+e2}] {metric <value 0-16>}
config route redistribute dst ospf src
[static | rip | local] {mettype [1 | 2] | metric <value 0-16777214>}
config route redistribute dst rip src
[local | static | ospf {all | internal | external | type_1 | type_2 |
inter+e1|
inter+e2}] {metric <value 0-16>}
delete route redistribute
[dst [rip | ospf] src [rip | static | local | ospf]]
{dst [rip | ospf] | src [rip | static | local | ospf]}
show route redistribute
Each command is listed, in detail, in the following sections.
create route redistribute dst ospf src
Used to add route redistribution settings for the exchange of RIP routes to
OSPF routes on the Switch.
create route redistribute dst ospf src [static | rip| local] {mettype [ 1 | 2] |
metric <value 0-16777214>}
This command will redistribute routing information between the OSPF and
RIP routing protocols to all routers on the network that are running OSPF or
RIP. Routing information entered into the Static Routing Table on the local
xStack switch is also redistributed.
src [static | rip | local]
−
Allows for the selection of the protocol for the source
device.
mettype [1 | 2]
−
Allows for the selection of one of two methods of calculating
the metric value.
metric <value
0-16777214
>
−
Allows the entry of an OSPF interface cost. This
is analogous to a Hop Count in the RIP routing protocol.
Restrictions
Purpose
Syntax
Description
Parameters
•
Type-1 calculates (for RIP to OSPF) by adding the destination’s
interface cost to the metric entered in the Metric field.
•
Type-2 uses the metric entered in the Metric field without change.
This field applies only when the destination field is OSPF.
Only
administrator-level users can issue this command.
Routing information source
−
RIP. the Static Route table, and the Local interface routing information. Routing information will be
redistributed to OSPF.
Route Source
Metric
Metric Type
RIP
0 to 16777214
mettype 1
mettype 2
Static
0 to 16777214
mettype 1
mettype 2
Local
0 to 16777214
mettype 1
mettype 2
227