Page 716 / 757 Scroll up to view Page 711 - 715
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
712
DGS-3627:admin# show iproute
Command: show iproute
Routing Table
IP Address/Netmask
Gateway
Interface
Cost
Protocol
------------------
---------------
------------
--------
--------
10.1.1.0/24
0.0.0.0
System
1
Local
192.168.1.0/24
0.0.0.0
ip1
1
Local
Total Entries : 2
DGS-3627:admin# show iproute static
Command: show iproute static
Routing Table
IP Address/Netmask
Gateway
Cost
Protocol
Backup
Weight
Status
------------------
-------------
-----
--------
--------
------
--------
0.0.0.0/0
10.1.1.11
1
Default
Primary
None
Active
100.1.1.0/24
10.1.1.11
1
Static
Primary
None
Active
101.1.1.0/24
10.1.1.12
1
Static
Primary
None
Inactive
Total Entries : 3
DGS-3627:admin# show iproute hardware
Command: show iproute hardware
Routing Table
IP Address/Netmask
Gateway
Interface
------------------
---------------
------------
0.0.0.0/0
10.1.1.11
ip1
10.1.1.0/24
0.0.0.0
System
100.1.1.0/24
10.1.1.11
ip1
192.168.1.0/24
10.1.1.11
ip1
Total Entries : 4
DGS-3627:admin#
config route preference
Purpose
Used to configure route type preference.
Syntax
config route preference [static | default | rip | ospfIntra | ospfInter | ospfExt1 | ospfExt2
| ebgp | ibgp] <value 1-999>
Description
Use this command to configure route preference. The route with smaller preference has
higher priority. The preference for local routes is fixed to 0.
Parameters
static
- Configure the preference of static route. The default value is 60.
default
- Configure the preference of default route. The default value is 1.
rip
- Configure the preference of RIP route. The default value is 100.
ospfIntra
- Configure the preference of OSPF intra-area route. The default value is 80.
ospfInter
- Configure the preference of OSPF inter-area route. The default value is 90.
ospfExt1
- Configure the preference of OSPF external type-1 route. The default value is 110.
Page 717 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
713
config route preference
ospfExt2
- Configure the preference of OSPF external type-2 route. The default value is 115.
ebgp
- Configure the preference of BGP AS-external route. The default value is 70.
ibgp
- Configure the preference of BGP AS-internal route. The default value is 130.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To configure the route preference for static routes to 70:
DGS-3627:admin# config route preference static 70
Command: config route preference static 70
Success.
DGS-3627:admin#
show route preference
Purpose
Used to display the route preference of each route type.
Syntax
show route preference {[ local | static | default | rip | ospf | ospfIntra | ospfInter |
ospfExt1 | ospfExt2 | ebgp | ibgp]
Description
This command is used to display route preference setting.
Parameters
local
- Display the preference of local route.
static
- Display the preference of static route.
default
- Display the preference of default route.
rip
- Display the preference of RIP route.
ospf
- Display the preference of all types of OSPF route.
ospfIntra
- Display the preference of OSPF intra-area route.
ospfInter
- Display the preference of OSPF inter-area route.
ospfExt1
- Display the preference of OSPF external type-1 route.
ospfExt2
- Display the preference of OSPF external type-2 route.
ebgp
- Display the preference of BGP AS-external route.
ibgp
- Display the preference of BGP AS-internal route.
Restrictions
None.
Example usage:
To display the route preference for all route types:
Page 718 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
714
DGS-3627:admin# show route preference
Command: show route preference
Route Preference Settings
Protocol
Preference
----------
----------
RIP
100
Static
60
Default
1
Local
0
OSPF Intra
80
OSPF Inter
90
OSPF ExtT1
110
OSPF ExtT2
115
EBGP
70
IBGP
130
DGS-3627:admin#
create route redistribute dst ospf
Purpose
Used to redistribute routing information from other routing protocols to OSPF.
Syntax
create route redistribute dst ospf src [static | rip | local | bgp] {mettype [1 | 2] | metric
<value 0-16777214>}
Description
This command is used to redistribute routing information from other routing protocols to
OSPF.
Parameters
dst
- Specify the target protocol.
src
- Specify the source protocol.
static
- To redistribute static routes to OSPF.
local
- To redistribute the local routes to OSPF.
rip
- To redistribute the RIP routes to OSPF.
bgp
- To redistribute the BGP 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 add route redistribution to OSPF:
DGS-3627:admin# create route redistribute dst ospf src rip
Command: create route redistribute dst ospf src rip
Success.
DGS-3627:admin#
Page 719 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
715
create route redistribute dst rip
Purpose
Used to redistribute routing information from other routing protocols to RIP.
Syntax
create 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 redistribute routing information from other routing protocols to RIP.
When the metric is specified as 0, the metric in the original route will become the metric of
the redistributing RIP routes transparently. If the metric of the original routes is greater than
16, the route will be not redistributed.
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
- To redistribute OSPF routes to RIP.
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 RIP route metric value for the redistributed routes. The valid value is 0
to 16. The default value is 0.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To add route redistribution settings:
DGS-3627:admin# create route redistribute dst rip src ospf all metric 2
Command: create route redistribute dst rip src ospf all metric 2
Success.
DGS-3627:admin#
create route redistribute dst bgp
Purpose
Used to redistribute routing information from other routing protocols to BGP.
Syntax
create 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>}
Description
This command is used to redistribute routing information from other routing protocols to BGP.
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.
Page 720 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
716
create route redistribute dst bgp
ospf
- To redistribute OSPF routes to BGP.
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
- Specify the BGP metric value for the redistributed routes. The range is 0 to
4294967295. The default value is 0.
route_map
- Specify a route map which will be used as the criteria to determine whether to
redistribute specific routes.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To add route redistribution settings:
DGS-3627:admin# create route redistribute dst bgp src ospf all metric 2
Command: create route redistribute dst bgp src ospf all metric 2
Success.
DGS-3627:admin#
delete route redistribute
Purpose
Used to delete route redistribute configuration on the switch.
Syntax
delete route redistribute [dst [rip | ospf | bgp] src [rip | static | local | ospf | bgp]]
Description
This command is used to stop redistribution of routes from one source protocol to another
destination protocol.
Parameters
dst
- Specify the target protocol.
src
- Specify the source protocol.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To delete route redistribution settings:
DGS-3627:admin# delete route redistribute dst rip src ospf
Command: delete route redistribute dst rip src ospf
Success.
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