Page 721 / 757 Scroll up to view Page 716 - 720
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.
Page 722 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
718
config route redistribute dst rip
type_1
- To redistribute only the OSPF AS-internal type-1 routes.
type_2
- To redistribute only the OSPF AS-internal type-2 routes.
inter+e1
- To redistribute only the OSPF AS-internal type-1 and OSPF AS-internal
routes.
inter+e2
- To redistribute only the OSPF AS-internal type-2 and OSPF AS-internal
routes.
metric
- Specifies the RIP metric value for the redistributed routes. The valid value is 0 to 16.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To configure route redistributions:
DGS-3627:admin# config route redistribute dst rip src ospf internal
Command: config route redistribute dst rip src ospf internal
Succuss.
DGS-3627:admin#
config route redistribute dst bgp
Purpose
This command updates the metric to be associated with the redistributed routes from a
specific protocol to BGP protocol.
Syntax
config route redistribute dst bgp src [static | rip | local | ospf [all | internal | external |
type_1 | type_2 | inter+e1 | inter+e2]] {metric <uint 0-4294967295> | [route_map
<map_name 16> | no_route_map]}
Description
This command is used to update the metric to be associated with the redistributed routes
from a specific protocol to BGP protocol. If a user does not specify any one of the parameters
of metric, route map and no route map, the configuration of metric and route map will be set
to be the default value.
Parameters
dst
- Specify the target protocol.
src
- Specify the source protocol.
static
- To redistribute static routes to BGP.
local
- To redistribute local routes to BGP.
rip
- To redistribute RIP routes to BGP.
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.
type_1
- To redistribute only the OSPF AS-internal type-1 routes.
type_2
- To redistribute only the OSPF AS-internal type-2 routes.
inter+e1
- To redistribute only the OSPF AS-internal type-1 and OSPF AS-internal
routes.
inter+e2
- To redistribute only the OSPF AS-internal type-2 and OSPF AS-internal
routes.
metric
- Specifies the BGP metric value for the redistributed routes. The range is 0 to
4294967295. The default value is 0.
route_map
- Specifies a route map which will be used as the criteria to determine whether to
redistribute specific routes. The default setting is null.
no_router_map
- Withdraw the route map setting.
Page 723 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
719
config route redistribute dst bgp
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To add route redistribution settings:
DGS-3627:admin# config route redistribute dst bgp src ospf all metric 2
Command: config route redistribute dst bgp src ospf all metric 2
Success.
DGS-3627:admin#
show route redistribute
Purpose
Used to display the route redistribution settings on the switch.
Syntax
show route redistribute {dst [rip | ospf | bgp] | src [rip | static | local | bgp | ospf]}
Description
This command is used to display the route redistributions settings.
Parameters
dst
- Specify the target protocol.
rip
- Display the redistribution with the target protocol RIP.
ospf
- Display the redistribution with the target protocol OSPF.
bgp
- Display the redistribution with the target protocol BGP.
src
- Specify the source protocol.
rip
- Display the redistribution with the source protocol RIP.
static
- Display the redistribution with the source static.
local
- Display the redistribution with the source local.
ospf
- Display the redistribution with the source protocol OSPF.
bgp
- Display the redistribution with the source protocol BGP.
If no parameter is specified, the system will display all route redistributions.
Restrictions
None.
Example usage:
To display route redistributions:
DGS-3627:admin# show route redistribute
Command: show route redistribute
Route Redistribution Settings
Source
Destination
Type
Metric
Routemap
Protocol
Protocol
Name
--------
------------
--------
------------ ----------------
RIP
OSPF
Type-2
20
N/A
OSPF
BGP
All
100
routemap1
Total Entries : 2
DGS-3627:admin#
Page 724 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
720
enable ecmp ospf
Purpose
This command is used to enable the ECMP route load-balancing algorithm.
Syntax
enable ecmp ospf
Description
This command is used to enable the ECMP route load-balancing algorithm.
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To enable the ECMP route load-balancing algorithm:
DGS-3627:admin# enable ecmp ospf
Command: enable ecmp ospf
Success.
DGS-3627:admin#
disable ecmp ospf
Purpose
Used to disable the OSPF ECMP function.
Syntax
disable ecmp ospf
Description
This command is used to disable the OSPF ECMP function.
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To disable OSPF ECMP function:
DGS-3627:admin# disable ecmp ospf
Command: disable ecmp ospf
Success.
DGS-3627:admin#
config ecmp algorithm
Purpose
Used to configure the ECMP route load-balancing algorithm.
Syntax
config ecmp algorithm {ip_destination | [ip_source | crc_low | crc_high] |
tcp_udp_port}(1)
Description
This command is used to configure the ECMP route load- balancing algorithm. Thus, it is
effective for ECMP routing. ECMP routing can be adopted either by OSPF dynamic routes or
by static routes which are configured with equal weight.
Parameters
ip_destination
- If set, the ecmp algorithm will include the destination IP. It is set by default.
ip_source
- If set, the ecmp algorithm will include the the lower 5 bits of the source IP. This
attribution is mutually exclusive with crc_low and crc_high. If it is set, crc_low and crc_high
will be excluded. It is not set by default.
crc_low
- If set, the ecmp algorithm will include the lower 5 bits of the CRC. This attribution is
mutually exclusive with crc_high and ip_source. If it is set, crc_high and ip_source will be
Page 725 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
721
config ecmp algorithm
excluded. It it set by default.
crc_high
- If set, the ecmp algorithm will include the upper 5 bits of the CRC. This attribution
is mutually exclusive with ip_source and crc_low. If it is set, crc_low and ip_source will be
excluded. It is not set by default.
tcp_udp_port
- If set, the ecmp algorithm will include the TCP or UDP port. It is not set by
default.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To set the ECMP hash algorithm:
DGS-3627:admin# config ecmp algorithm ip_destination ip_source
Command: config ecmp algorithm ip_destination ip_source
Success.
DGS-3627:admin#
show ecmp
Purpose
Used to display the ECMP route load-balancing algorithm.
Syntax
show ecmp
Description
This command is used to display the ECMP route load-balancing algorithm.
Parameters
None.
Restrictions
None.
Example usage:
To display the ECMP hash algorithm:
DGS-3627:admin# show ecmp
Command: show ecmp
ECMP For OSPF: Enabled
ECMP Load Balance Algorithm:
Destination IP: Used.
Source IP: Not Used.
CRC_Low: Used.
CRC_High: Not Used.
TCP_UDP_Port: Not Used.
DGS-3627:admin#

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top