xStack DGS-3612G Layer 3 Gigabit Ethernet Managed Switch CLI Manual
To configure route redistributions:
DGS-3612G:4#config route redistribute dst ospf src all metric 2
Command: config route redistribute dst ospf src all metric 2
Success.
DGS-3612G:4#
config route redistribute dst rip src
Purpose
Used configure route redistribution settings for the exchange of RIP routes
to OSPF routes on the Switch.
Syntax
config route redistribute dst rip src [local | static | ospf {all | internal |
external | type_1 | type_2 | inter+e1 |
inter+e2}] {metric <value 0-16>}
Description
Route redistribution allows routers on the network that are running
different routing protocols to exchange routing information. This is
accomplished by comparing the routes stored in the various router’s
routing tables and assigning appropriate metrics. This information is then
exchanged among the various routers according to the individual routers
current routing protocol. The Switch can 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 switch is also redistributed.
Parameters
metric <value 0-16>
−
Allows the entry of an OSPF interface cost. This is
analogous to a Hop Count in the RIP routing protocol.
Restrictions Only
administrator-level users can issue this command.
src -
Allows the selection of the protocol of the source device, as being
either local, static or OSPF. After selecting the source device, the user
may set the following parameters for that source device from the following
options:
•
•
•
•
•
•
•
all
– Specifies both internal an external.
internal
– Specifies the internal protocol of the source device.
external
- Specifies the external protocol of the source device.
type_1
- Calculates the metric (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.
inter+e1
– Specifies the internal protocol AND type 1 of the
external protocol.
inter+e2
– Specifies the internal protocol AND type 2 of the
external protocol.
Example usage:
To configure route redistributions:
DGS-3612G:4#config route redistribute dst ospf src rip mettype type_1 metric 2
Command: config route redistribute dst ospf src rip mettype type_1 metric 2
Success.
DGS-3612G:4#
230