ipv6 route
Syntax
ipv6 route <DEST-IPV6-ADDR>/<MASK> [<NEXT-HOP-IP-ADDR>|<INTERFACE>|reject|blackhole]
no ipv6 route <DEST-IPV6-ADDR>/<MASK> [<NEXT-HOP-IP-ADDR>|<INTERFACE>|reject|blackhole]
Description
Adds an IPv6 static route.
The
no
form of this command deletes an IPv6 static route.
Command context
config
Parameters
<DEST-IPV6-ADDR>
Specifies the route destination in IPv6 format (
xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx
), wherex
is a hexadecimal number from 0 to F.<MASK>
Specifies the number of bits in the address mask in CIDR format (
x
), wherex
is a decimal number from 0 to 128.<NEXT-HOP-IP-ADDR>
Specifies the next hop in IPv6 format (
xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx
), wherex
is a hexadecimal number from 0 to F.<INTERFACE>
Specifies the next hop as an outgoing interface.
blackhole
Specifies that packets matching the destination route are silently discarded and no ICMP error notification is sent to the sender.
reject
Specifies that packets matching the destination route are discarded and an ICMP error notification is sent to the sender.
Authority
Administrators or local user group members with execution rights for this command.
Usage
Access platforms for IPv6 routes above /64 are not supported.
IPv6 addresses with prefixes 65-127 will not be configured in the ASIC route table.
Examples
On the 6400 Switch Series, interface identification differs.
switch(config)# ipv6 route 120::/124 blackhole switch(config)# ipv6 route 121::/124 reject switch(config)# ipv6 route 122::/124 1/1/1 switch(config)# ipv6 route 123::/124 120::1
switch(config)# no ipv6 route 122::/124 1/1/1