Page 711 / 757 Scroll up to view Page 706 - 710
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
707
delete trusted_host
Parameters
ipaddr
- The IP address of the trusted host.
network
- The network address of the trusted network.
all
- All trusted hosts will be deleted.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To delete the trusted host:
DGS-3627:admin# delete trusted_host 10.48.74.121
Command: delete trusted_host 10.48.74.121
Success.
DGS-3627:admin#
show trusted_host
Purpose
Used to display a list of trusted hosts entered on the switch using the create trusted_host
command above.
Syntax
show trusted_host
Description
The show trusted host command displays the trusted hosts.
Parameters
None.
Restrictions
None.
Example usage:
To display a trusted host:
DGS-3627:admin# show trusted_host
Command: show trusted_host
Management Stations
IP Address
------------------------
10.48.93.100
10.51.17.1
10.50.95.90
Total Entries:3
DGS-3627:admin#
Page 712 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
708
101
UNICAST ROUTE COMMANDS
Route Preference is a way for routers to select the best path when there are two or more different routes to the same
destination from two different routing protocols. The majority of routing protocols are not compatible when used in
conjunction with each other. This Switch supports and may be configured for many routing protocols, as a stand alone
switch or more importantly, in utilizing the stacking function and Single IP Management of the Switch. Therefore the ability
to exchange route information and select the best path is essential to optimal use of the Switch and its capabilities.
The first decision the Switch will make in selecting the best path is to consult the Route Preference Settings table of the
Switch. This table can be viewed using the
show route preference
command, and it holds the list of possible routing
protocols currently implemented in the Switch, along with a reliability value which determines which routing protocol will
be the most dependable to route packets. Below is a list of the default route preferences set on the Switch.
Route Type
Validity Range
Default Value
Default
1-999
1
Local
0 – Permanently set on the Switch and not configurable.
0
Static
1 – 999
60
RIP
1 – 999
100
OSPF Intra
1 – 999
80
OSPF Inter
1 – 999
90
OSPF ExtT1
1 – 999
110
OSPF ExtT2
1 – 999
115
EBGP
1 – 999
70
IBGP
1 – 999
130
As shown above, Local will always be the first choice for routing purposes and the next most reliable path is Static due to
the fact that its has the next lowest value. To set a higher reliability for a route, change its value to a number less than the
value of a route preference that has a greater reliability value using the
config route preference
command. For example,
if
the user wishes to make RIP the most reliable route, the user can change its value to one that is less than the lowest
value (Static - 60) or the user could change the other route values to more than 100.
The user should be aware of three points before configuring the route preference.
No two route preference values can be the same. Entering the same route preference may cause the Switch to
crash due to indecision by the Switch.
If the user is not fully aware of all the features and functions of the routing protocols on the Switch, a change in
the default route preference value may cause routing loops or black holes.
After changing the route preference value for a specific routing protocol, that protocol needs to be restarted
because the previously learned routes have been dropped from the Switch. The Switch must learn the routes
again before the new settings can take affect.
Page 713 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
709
The Unicast Route commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in
the following table.
Command
Parameters
create iproute
[default | <network_address>] [null0 | <ipaddr> {<metric 1-65535>} {[primary |
backup | weight <value 1-4>]}]
delete iproute
[default | <network_address>] [null0 | <ipaddr>]
show iproute
{[<network_address> | <ipaddr>]} {[static | rip | ospf | bgp | hardware]}
config route preference
[static | default | rip | ospfIntra | ospfInter | ospfExt1 | ospfExt2 | ebgp | ibgp]
<value 1-999>
show route preference
{[ local | static | default | rip | ospf | ospfIntra | ospfInter | ospfExt1 | ospfExt2 |
ebgp | ibgp]}
create route redistribute dst ospf
src [static | rip | bgp | local] {mettype [1 | 2] | metric <value 0-16777214>}
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>}
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>}
delete route redistribute
[dst [rip | ospf | bgp] src [rip | static | local | ospf | bgp]]
config route redistribute dst ospf
src [static | rip | bgp | local] {mettype [1 | 2] | metric <value 0-16777214>}(1)
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>}
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]}
enable ecmp ospf
disable ecmp ospf
show route redistribute
{dst [rip | ospf | bgp] | src [rip | static | local | bgp | ospf]}
config ecmp algorithm
{ip_destination | [ip_source | crc_low | crc_high] | tcp_udp_port}(1)
show ecmp
Each command is listed, in detail, in the following sections.
create iproute
Purpose
Used to create an IP route entry to the switch’s IP routing table.
Syntax
create iproute [default | <network_address>] [null0 | <ipaddr> {<metric 1-65535>}
{[primary | backup | weight <value 1-4>]}]
Description
Use this command to create an IP static route.
Selecting “primary” or “backup” means the newly created route is a floating static route.
Selecting “weight” means the newly created route is a static multipath route.
Floating static route and static multipath route are mutually exclusive.
If none of the following, “primary”, “backup” or “weight,” is selected, the static route will:
be primary if there is no primary route that has the same destination;
be backup if there has been a primary route that has the same destination.
fail to create if there have been a primary route and a backup route that have the same
destination.
fail to create if there has been one static multipath route that has the same destination.
Page 714 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
710
create iproute
It will fail if a user wants to create a floating static route and there has been one static
multipath route with the same destination.
It will fail if a user wants to create a static multipath route and there has been a floating static
route, whether primary or backup.
Parameters
default
- Create an IP default route (0.0.0.0/0).
network_address
- The IP address and net mask of the destination of the route. The address
and the mask can be set by the traditional format (for example, 10.1.2.3/255.0.0.0 or in CIDR
format, 10.1.2.3/16).
null0
- Specify null interface as the next hop.
ipaddr
- The IP address for the next hop router.
metric
- The default setting is 1.
primary
- Specify the route as the primary route to the destination.
backup
- Specify the route as the backup route to the destination.
weight
- Specify the route as the static multipath route. The default setting is 1.
One route’s weight will determine its ratio when used by data packets forwarding to one
destination.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To add a floating static route and a static multipath route:
DGS-3627:admin# create iproute 10.48.74.121/255.0.0.0 10.1.1.254 primary
Command: create iproute 10.48.74.121/8 10.1.1.254 primary
Success.
DGS-3627:admin# create iproute 11.53.73.131/8 10.1.2.11 weight 2
Command: create iproute 11.53.73.131/8 10.1.2.11 weight 2
Success.
DGS-3627:admin#
delete iproute default
Purpose
Used to delete an IP route entry from the switch’s IP routing table.
Syntax
delete iproute [default | <network_address>] [null0 | <ipaddr>]
Description
Use this command to delete an IP static route.
Parameters
default
- Deletes an IP default route (0.0.0.0/0).
network_address
- The IP address and net mask of the destination of the route. The address
and the mask can be set by the traditional format (for example, 10.1.2.3/255.0.0.0 or in CIDR
format, 10.1.2.3/16).
null0
- Specify null interface as the next hop.
ipaddr
- Specify the next hop IP address of the route need to be deleted.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To delete an IP static route:
Page 715 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
711
DGS-3627:admin# delete iproute 10.48.74.121/255.0.0.0 10.1.1.254
Command: delete iproute 10.48.74.121/8 10.1.1.254
Success.
DGS-3627:admin#
show iproute
Purpose
Used to display the switch’s current IP routing table.
Syntax
show iproute {[<network_address> | <ipaddr>]} {[static | rip | ospf | bgp | hardware]}
Description
Use this command to display the switch’s IP routing table.
Parameters
network_address
- Specify the destination network address of the route to be displayed.
ipaddr
- Specify the destination IP address of the route to be displayed. The longest prefix
matched route will be displayed.
static
- Specify to display only static routes. One static route may be active or inactive.
rip
- Specify to display only RIP routes.
ospf
- Specify to display only OSPF routes.
bgp
- Specify to display only BGP routes.
hardware
- Specify to display only the routes that have been written into the chip.
Restrictions
None.
Example usage:
To display the contents of the IP routing table:

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

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

Share
Top