D-Link DGS-3600 Switch User Manual


 
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
717
config route redistribute dst ospf
Purpose Used to update the metric to be associated with the redistributed routes from a specific
protocol to OSPF protocol.
Syntax
config route redistribute dst ospf src [static | rip | bgp | local] {mettype [1 | 2] | metric
<value 0-16777214>}(1)
Description This command updates the metric to be associated with the redistributed routes from a
specific protocol to OSPF protocol.
Parameters
dst - Specify the target protocol.
src - Specify the source protocol.
static - To redistribute the static routes to OSPF.
rip - To redistribute RIP routes to OSPF
bgp - To redistribute BGP routes to OSPF
local - To redistribute the local routes to OSPF
mettype - Allows the selection of one of two methods for calculating the metric value. 1
calculates the metric (for other routing protocols to OSPF) by adding the destination’s
interface cost to the metric entered in the Metric field. 2 uses the metric entered in the Metric
field without change. This field applies only when the destination field is OSPF. If the metric
type is not specified, it will be type 2.
metric - Specifies the metric for the redistributed routes. The range is 0 to 16777214.
If it is not specified or specified as 0, the redistributed routes will be associated with the
default metric 20.
Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
To configure route redistributions:
DGS-3627:admin# config route redistribute dst ospf src rip mettype 1 metric 2
Command: config route redistribute dst ospf src rip mettype 1 metric 2
Succuss.
DGS-3627:admin#
config route redistribute dst rip
Purpose Used to update the metric to be associated with the redistributed routes from a specific
protocol to RIP protocol.
Syntax
config route redistribute dst rip src [local | static | bgp | ospf [all | internal | external |
type_1 | type_2 | inter+e1 | inter+e2]] {metric <value 0-16>}
Description This command is used to update the metric to be associated with the redistributed routes
from a specific protocol to RIP protocol.
Parameters
dst - Specify the target protocol.
src - Specify the source protocol.
static - To redistribute static routes to RIP.
local - To redistribute local routes to RIP.
bgp - To redistribute BGP routes to RIP.
ospf - See below:
all - To redistribute both OSPF AS-internal and OSPF AS-external routes to RIP.
internal - To redistribute only the OSPF AS-internal routes.
external - To redistribute only the OSPF AS-external routes, including type-1 and
type-2 routes.