xStack® DES-3528/DES-3552 Series Layer 2 Managed Stackable Fast Ethernet Switch CLI Reference Guide
322
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 1-65535>} {[primary | backup]}
delete iproute
[default | <network_address>] <ipaddr>
show iproute
{<network_address> | <ipaddr>} {static}
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 | <network_address>] <ipaddr> {<metric 1-65535>} {[primary |
backup]}
Description
This command is used to create a default static IP route entry to the Switch’s IP routing table.
Parameters
default
– Specifies to create a default IP route entry.
<network_address>
- Enter the network address used here.
<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
– Specifies that this route will be set as the primary route.
backup
- Specifies that this route will be set as the backup route.
Restrictions
Only Administrator and Operator and Power-User-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:
DES-3528:admin# create iproute default 10.48.74.121 1
Command: create iproute default 10.48.74.121 1
Success.
DES-3528:admin#
delete iproute
Purpose
Used to delete an IP route entry from the Switch’s IP routing table.
Syntax
delete iproute [default | <network_address>] <ipaddr>
Description
This command will delete an existing IP route entry from the Switch’s IP routing table.
Parameters
default
– Specifies to delete a default IP route entry.
<network_address>
- Enter the network address used here.
<ipaddr>
- Enter the IP address used here.
Restrictions
Only Administrator and Operator and Power-User-level users can issue this command.
Example usage:
To delete the default Gateway from the routing table:
DES-3528:admin# delete iproute default 10.48.74.121
Command: delete iproute default 10.48.74.121
Success.