xStack
®
DGS-3400 Series Layer 2 Gigabit Ethernet Managed Switch CLI Manual
597
89
U
NICAST
R
OUTE
C
OMMANDS
The Unicast Route 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 | rip | hardware]}
config route preference
[static | default | rip] <value 1-999>
show route preference
{[local | static | default | rip]}
create route redistribute dst rip
src [local | static] {metric <value 0-16>}
delete route redistribute
[dst rip src [static | local]]
config route redistribute dst rip
src [local | static]] {metric <value 0-16>}
show route redistribute
{dst rip | src [static | local]}
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 1-65535>} {[primary |
backup]}
Description
Use this command to create an IP static route.
Selecting “primary” or “backup” means the newly created route is a floating static route.
If none of the following, “primary”, or “backup” is selected, the static route will:
1. be primary if there is no primary route that has the same destination;
2. be backup if there has been a primary route that has the same destination.
3. fail to create if there have been a primary route and a backup route that have the
same destination.
Parameters
default
- Create an IP default route (0.0.0.0/0).
network_address
- The IP address and net mask of the destination of the route. The address
and the mask can be set by 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
- Specify the route as the primary route to the destination.
backup
- Specify the route as the backup route to the destination.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To add a floating static route: