5000 Series Layer 2/3 Managed Data Center Switch CLI Reference Guide
812
the
prefix_length
. The
next-hop-address
field indicates the IPv6 address of the next hop that can be
utilized to reach the specified network. Specifying
Null0
in the nexthop fields adds a static reject route.
The
preference
field indicates the value the router uses to compare the given route with other routes from
other route sources that have the same destination. The range of acceptable values for
preference
is 1-
255, with the default value being 1. The
slot/port
argument corresponds to a physical routing interface or
to a VLAN routing interface. The keyword
VLAN
is used to directly specify the VLAN ID of the routing
VLAN rather than by using a slot/port format. A
slot/ port
or
VLAN vlan-id
or
tunnel tunnel_id
interface
can be specified in order to identify direct static routes from point-to-point and from broadcast interfaces.
When using a link-local address as the next hop, the interface must be specified. A route with a
preference of 255 cannot be used to forward traffic.
The
no
command deletes an lPv6 static route. If used without the optional parameters, it deletes all the
static routes to the specified destination. If used with the preference parameter, it reverts the preference
of a route to the default preference.
ipv6 route ipv6-prefix/prefix_length {next-hop-address | Null0 | interface {slot/port | vlan vlan-id |
tunnel tunnel_id} next-hop-address} [preference]
no ipv6 route ipv6-prefix/prefix_length [{next-hop-address | Null0 | interface (slot/port | vlan vlan-id |
tunnel tunnel_id } next-hop-address | preference}]
Parameters
ipv6-prefix/prefix_length
Enter the IPv6 prefix and prefix length.
next-hop-address
Enter the Global IPv6 Address of Next-Hop.
Null0
Indicates the Null Interface.
slot/port
Indicates the slot or port to be identified.
vlan vlan-id
Indicates the VLAN ID.
tunnel tunnel_id
Indicates the IPv6 Tunnel ID.
Preference
Indicates the route preference (1-255).
Default
The default is Disabled.
Command Mode
Global Config
8-15
ipv6 route distance
Sets the default distance (i.e., preference) for IPv6 static routes. When determining the best route, lower
route distance values are preferred. The
ipv6 route
command allows the user the option to set the
distance (i.e., preference) for an individual static route. When no distance is specified in this command,
the default distance is used.
Altering the default distance does not cause the distance of existing static routes to be updated, even if
those routes were assigned the original default distance. Rather, the newly set default distance will only
apply to those static routes created after invoking the
ipv6 route distance
command.