IPv6 Configuration Guide K/KA/KB.15.15
7 IPv6 Static Routing
NOTE: All commands previously in the Summary of commands table are indexed under the entry
Command syntax.
Adding static and null routes to IPv6 table
This feature enables you to create static routes (including null routes with or without ICMP notification
to the sender) by adding such routes directly to the route table in the routing switch.
Syntax:
[no] ipv6 route dest-ipv6-addr/prefix-length [ next-hop-gateway-addr |
vlan vid | tunnel tunnel-id | blackhole | reject ] [ distance 1 - 255 ]
dest-ipv6-addr/prefix-length
Network prefix for the destination on IPv6 address.
[ next-hop-gateway-addr | vlan vid | tunnel tunnel-id ]
The gateway for reaching the destination.
The next-hop address option (link-local or global unicast) is not required to be
directly reachable on a local subnet. (If it is not directly reachable, the route is
added to the routing table when a path to this address is learned.)
If the next-hop address is link-local, it must include both the address and the
applicable VLAN VID.
For example: FE80::127%vlan10,where VLAN 10 is the interface where
FE80::127 exists. For a tunnel, it would be FE80::127%tun3.
blackhole
Specifies a null route where IP traffic for the specified destination is discarded
and no ICMP error notification is returned to the sender.
reject
Specifies a null route where IP traffic for the specified destination is discarded
and an ICMP error notification is returned to the sender.
distance 1 - 255
Specifies the administrative distance to associate with a static route.
Default: 1; Range: 1 - 255
The no form of the command deletes the specified route from the routing table for
the specified destination next-hop pair.
Example 118 (page 181) configures two static routes for traffic delivery and identifies two other
null routes for which traffic should be discarded instead of forwarded.
180 IPv6 Static Routing










