D-Link DGS-3100 Switch User Manual


 
DGS-3100 Series Gigabit Stackable Managed Switch CLI Manual
15
9
24
ROUTING TABLE COMMANDS
The Routing Table commands in the Command Line Interface (CLI) are listed (along with the appropriate
parameters) in the following table.
Command Parameter
create iproute [default] <ipaddr> {<metric 1-65535>}
delete iproute [default]
show iproute
Each command is listed in detail, as follows:
create iproute
Purpose To create IP route entries in the Switch’s IP routing table.
Syntax
create iproute [default] <ipaddr> {<metric 1-65535>}
Description The create iproute command creates a static IP route entry in the
Switch’s IP routing table.
Parameters default – The entry is the default IP route entry in the Switch’s
routing table.
<ipaddr> – The gateway IP address for the next hop router.
<metric 1-65535> – The 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 or operator-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 as the default route:
DGS3100# create iproute default 10.48.74.121 1
Success.
DGS3100#
delete iproute
Purpose To delete a default IP route entry from the Switch’s IP routing table.
Syntax
delete iproute [default]
Description The delete iproute command deletes an existing default entry from
the Switch’s IP routing table.
Parameters None.
Restrictions Only Administrator or operator-level users can issue this command.