![D-Link xStack DGS-3324SRi Скачать руководство пользователя страница 281](http://html1.mh-extra.com/html/d-link/xstack-dgs-3324sri/xstack-dgs-3324sri_command-line-interface-reference-manual_3147971281.webp)
xStack Gigabit Layer 3 Switch Command Line Interface Manual
32
R
OUTING
T
ABLE
C
OMMANDS
The routing table commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the
following table.
Command Parameters
create iproute
<network_address> <ipaddr> {<metric 1-65535>} {[primary |
backup]}
<ipaddr> {<metric 1-65535>}
<ipaddr>
delete iproute
<network_address> <ipaddr> {[primary | backup]}
{<network_address>} {[static | rip | ospf]}
create iproute default
delete iproute default
show iproute
Each command is listed, in detail, in the following sections.
create iproute
Purpose
Used to create IP route entries to the Switch’s IP routing table.
create iproute <network_address> <ipaddr> {<metric 1-
65535>} {[primary | backup]}
Description
This command is used to create a primary and backup IP route
entry to the Switch’s IP routing table.
Parameters
<network_address>
−
IP address and netmask of the IP interface
that is the destination of the route. The address and mask
information can be specified using the traditional format (for
example, 10.1.2.3/255.0.0.0 or in CIDR format, 10.1.2.3/8).
<ipaddr>
−
The gateway IP address for the next hop router.
<metric 1-65535>
−
Allows the entry of a routing protocol metric
entry, representing the number of routers between the Switch and
the IP address above. The default setting is 1.
[primary | backup]
- The user may choose between Primary and
Backup. If the Primary Static/Default Route fails, the Backup
Route will support the entry. Please take note that the Primary
and Backup entries cannot have the same Gateway.
Restrictions
Syntax
Only
administrator-level users can issue this command.
Example Usage:
To add a single static address 10.48.74.121, mask 255.0.0.0 and gateway 10.1.1.254 to the routing table:
273