D-Link DES-3326S Layer 3 Switch CLI Reference
create iproute
Purpose
Used to create IP route entries to the Switch’s
IP routing table.
Syntax
create iproute [default|<network_address>]
<ipaddr> {<metric>} {primary|backup}
Description
This command is used to create a primary and
backup 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.
primary – Designates the IP route as the
primary route. If a single IP route is being used
it is not necessary to specify primary or backup.
backup – Designates a secondary IP route that
is enabled if the primary IP route is unavailable.
Also known as “floating static route.”
Restrictions
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:
DES-3326S:4#create iproute 10.48.74.121|255.0.0.0 10.1.1.254 1
Command: create iproute 10.48.74.121|8 10.1.1.254 1
Success.
DES-3326S:4#
221