D-Link dgs-3420 Work Light User Manual


 
xStack® DGS-3420 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide
392
Chapter 38
IP Routing
Commands
create iproute [default | <network_address>] [<ipaddr> {<metric 1-65535>} {[primary | backup]} |
null0 | ip_tunnel <tunnel_name 12>]
delete iproute [default | <network_address>] [<ipaddr> | null0 | ip_tunnel <tunnel_name 12>]
show iproute {[<network_address> | <ipaddr>]} {[static | rip | hardware]}
create ipv6route [default | <ipv6networkaddr>] [[<ipif_name 12> <ipv6addr> | <ipv6addr>]
{<metric 1-65535>} {[primary | backup]} | ip_tunnel <tunnel_name 12>]
delete ipv6route [[default | <ipv6networkaddr>] [<ipif_name 12> <ipv6addr> | <ipv6addr> |
ip_tunnel <tunnel_name 12>] | all]
show ipv6route {[<ipv6networkaddr> | <ipv6addr>]} {[static | ripng | hardware]}
38-1 create iproute
Description
This command is used to create an IP route entry in the switch’s IP routing table. This command
creates an IP route entry in the switch’s IP routing table. “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 and not set this route
to be a multipath route.
Format
create iproute [default | <network_address>] [<ipaddr> {<metric 1-65535>} {[primary |
backup]} | null0 | ip_tunnel <tunnel_name 12>]
Parameters
default - Create a default IP route entry.
<network_address> - The IP address and netmask of the IP interface that is the destination of
the route. 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> - Specify the IP address for the next hop router.
<metric 1-65535> - (Optional) The default setting is 1.That is, the default hop cost is 1.
primary - (Optional) Specifies the route as the primary route to the destination.
backup - (Optional) Specifies 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.
null0 - Specifies the null interface as the next hop.
ip_tunnel - Specifies the IP tunnel used.
<tunnel_name 12> - Enter the IP tunnel name used here. This name can be up to 12
characters long.
Restrictions
Only Administrator, Operator and Power-User level users can issue this command.