DXS-1210 Series Smart Managed Switch CLI Reference Guide
258
33.
Protocol Independent Commands
33-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-MASKIP-ADDRESS [primary | backup]
no ip route NETWORK-PREFIX NETWORK-MASKIP-ADDRESS
Parameters
NETWORK-PREFIX
Specifies the network address.
NETWORK-MASK
Specifies the network mask.
IP-ADDRESS
Specifies the IP address of the next hop that can be used to reach
destination network.
primary
(Optional) Specifies the route as the primary route to the destination.
backup
(Optional) Specifies the route as the backup route to the destination.
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)#
33-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