DGS-1210 Metro Ethernet Managed Switch CLI Reference Guide
336
42
IPV4/IPV6 ROUTING COMMANDS
The IPv4/IPv6 Routing commands in the Command Line Interface (CLI) are listed (along with the appropriate
parameters) in the following table.
create iproute
[<network_address> | default] <ipaddr> {metric <int 1-65535>} {[primary |
backup]}
delete iproute [<network_address> | default] <ipaddr>
show iproute {static}
create ipv6route
[<ipv6networkaddr> | default] <ipv6addr> [metric <int 1-65535>] {[primary |
backup]}
delete ipv6route [<ipv6networkaddr> | default] <ipv6addr>
show ipv6route {static}
Each command is listed in detail, as follows:
create iproute
Purpose To create an IP route entry on the Switch.
Syntax
create iproute [<network_address> | default] <ipaddr> {metric
<int 1-65535>} {[primary | backup]}
Description
The create iproute command is used to create an IP route entry on
the Switch. “Primary” and “
backup” are mutually exclusive. Users
can select only one when creating one new route. If a user sets
neither of these, the system will try to set the new route first by
primary and second by backup.
Parameters
<network_address> − To specify the IPv4 address and netmask of
the IP interface that is the destination of the route. The format is
10.1.2.3/255.0.0.0 or 10.1.2.3/16.
default – To create a default IPv4 route entry.
<ipaddr> – To specify the IPv4 address for the next hop route.
metric <int 1-65535> – To specify the hop cost, and the default
is 1. The value ranges between 1 and 65535.
primary –
To specify the route as the primary route to the
destination.
backup –
To specify the route as the backup route to the
destination. If the route is not specified as the primary route or
the backup route, then it will be auto-assigned by the system.
The first created is the primary, the second created is the
backup.
Restrictions Only administrator, operator or power user-level users can issue this
command.
Example usage: