route

Sets up the route configuration.
Syntax
route

After the route command is entered to enter Route configuration mode, the following configuration syntax is available:

add { dst-network/dst-netmask next-hop | ip6 dst6-network/prefixlen next-hop6 }
del { dst-network/dst-netmask next-hop | ip6 dst6-network/prefixlen next-hop6 }
show { main | json | table-name | all } [ ip6 ]
Command Default

Only default route configuration exists.

Parameters
add
Adds configuration options.
dst-network
Destination IPv4 network address.
dst-netmask
Destination network mask.
next-hop
Next hop IPv4 address.
ip6
Adds IPv6 configuration options.
dst6-network
Destination IPv6 network address.
prefixlen
Destination IPv6 network prefix-length.
next-hop6
Next hop IPv6 address.
del
Deletes configuration options.
show
Displays route configuration.
main
Displays the main orute.
json
Displays the route configuration in JSON format ?
table-name
Displays the table name.
Need explanations for this parameter.
all
Displays all route configuration in all the formats.
ip6
Displays the IPv6 route configuration.
Modes

Privileged EXEC mode

Usage Guidelines

This command is supported on the SmartZone Data Plane controllers only.

Examples

The following example shows how to add an IPv4 route configuration with a destination network address and mask and the next hop addresss.

device# route
device(route)# add 10.254.32.0/24 10.10.2.1

The following example displays all the main route configuration.

device# route
device(route)# show main

--- main ---
default via 100.103.1.1 dev br0
10.254.32.0/24 dev br-tun proto kernel scope link src 10.254.32.15
100.103.1.0/24 dev br0 proto kernel scope link src 100.103.1.213