DGS-3024 Layer 2 Switch CLI Reference Manual
21
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
[default] <ipaddr> {<metric 1-65535>}
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.
Syntax
create iproute [default] <ipaddr> {<metric 1-65535>}
Description
This command is used to create a default static IP route entry to the
Switch’s IP routing table.
Parameters
<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.
Restrictions Only
administrator-level users can issue this command.
Example Usage:
To add the default static address 10.48.74.121, with a metric setting of 1, to the routing table:
DGS-3024:4#create iproute default 10.48.74.121 1
Command: create iproute default 10.48.74.121 1
Success.
DGS-3024:4#
delete iproute default
Purpose
Used to delete a default IP route entry from the Switch’s IP routing
table.
Syntax
delete iproute [default]
Description
This command will delete an existing default entry from the Switch’s
IP routing table.
Parameters None.
Restrictions Only
administrator-level users can issue this command.
126