Specifications
DGS-3224TGR Gigabit Ethernet Switch CLI Reference Manual
20
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 Parameters
create iproute default
<network_address>
<ipaddr>
<metric>
delete iproute default
<network_address>
show iproute <network_address>
static
rip
ospf
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>] <ipaddr> {<metric>}
Description
This command is used to create an IP route entry to the switch’s IP routing table.
Parameters
default − creates a default IP route entry.
<network_address> − IP address and netmask of the IP interface that is the destination of
the route. You can specify the address and mask information using the traditional format (for
example, 10.1.2.3/255.0.0.0 or in CIDR format, 10.1.2.3/16).
<ipaddr> − The IP address for the next hop router.
<metric> − The default setting is 1.
Restrictions
Only administrator-level users can issue this command.
Example Usage:
To add a static address 10.48.74.121, mask 255.0.0.0, and gateway 10.1.1.254 to the routing table:
98