Protocol Independent Commands - D-Link DGS-510 Reference Manual

Gigabit ethernet smartpro switch
Table of Contents

Advertisement

DGS-1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide

55. Protocol Independent Commands

55-1
ip route
This command is used to create a static route entry. Use the no form of this command to remove a
static route entry.
ip route NETWORK-PREFIX NETWORK-MASK IP-ADDRESS [primary | backup]
no ip route NETWORK-PREFIX NETWORK-MASK IP-ADDRESS
Parameters
NETWORK-PREFIX
NETWORK-MASK
IP-ADDRESS
primary
backup
Default
None.
Command Mode
Global Configuration Mode.
Command Default Level
Level: 12.
Usage Guideline
Use this command to create an IP static route. Floating static route is supported. This means that
there could be two routes with the same destination network address and different next hop. If
primary or backup is not specified, the static route will be automatically determined to be a primary
route or a backup route. Primary route has higher priority than backup route, and is always be used
for forwarding when it is active. When primary is down, the backup route will be used.
Example
This example shows how to add a static route entry for 20.0.0.0/8 with the next-hop 10.1.1.254.
Switch# configure terminal
Switch(config)# ip route 20.0.0.0 255.0.0.0 10.1.1.254
Switch(config)#
55-2
ipv6 route
This command is used to create an IPv6 static route entry. Use the no form of this command to
remove an IPv6 static route entry.
ipv6 route {default | NETWORK-PREFIX/PREFIX-LENGTH} [INTERFACE-ID] NEXT-HOP-
ADDRESS [primary | backup]
no ipv6 route {default | NETWORK-PREFIX/PREFIX-LENGTH} [INTERFACE-ID] NEXT-HOP-
ADDRESS
Specifies the network address.
Specifies the network mask.
Specifies the IP address of the next hop that can be used to reach
destination network.
(Optional) Specifies the route as the primary route to the
destination.
(Optional) Specifies the route as the backup route to the
destination.
491

Advertisement

Table of Contents
loading

Table of Contents