
- 559 -
<gateway-address> - Gateway address in IPv6 global or link-local address format.
no – Use this command remove IPv6 gateways on the network port interface.
Command Mode
Interface vlan
10.3.2.7 ipv6 route
Use this command to configure an IPv6 static route. The <ipv6-prefix> is the IPv6 network that is the
destination of the static route. The <prefix_length> is the length of the IPv6 prefix — a decimal value
(usually 0-64) that shows how many of the high-order contigu ous bits of the address comprise the prefix
(the network portion of the address). A slash mark must precede the <prefix_length>. The
<next-hop-address> is the IPv6 addre ss of the next ho p that can b e used to rea ch the specifie d netwo rk.
The <preference> param eter is a value the router uses to compare this route with routes from other route
sources that have the same destination. The range for <prefere nce> is 1 - 255, and the default value is 1.
The interface <slot/port> identifies direct static routes from point-to-point and broadcast interfaces, and
must be specified when using a link-local address as the next hop. A route with a preferen ce of 255
cannot be used to forward traffic.
Syntax
ipv6 route <ipv6-prefix>/<prefix_length> {<n ext-hop-a ddre ss> [<preference>] | interface <slot/port>
<next-hop-address> [<preference>]}
no ipv6 route <ipv6-prefix>/<prefix_length> [{<next-hopaddress> | interface
<slot/port> <next-hop-add ress> | <preference>}]
no – Use this command to delete an IPv6 static route. Use the command with out the optional
parameters to delete all static routes to the specified destination. Use the <preference> para meter to
revert preference of a route to default preference.
Default Setting
Disabled
Command Mode
Global Config
10.3.2.8 ipv6 route distance
This command sets the default distan ce (preference) for IPv6 static routes. Lower route distance values
are preferred when determining the best route. The ipv6 route command allows you to optionally set the
distance (preference) of an individual static route. The default distan ce is u se d when no distance is
specified in this command.