ipv6 route
Syntax
ipv6 route <DEST-IPV6-ADDR>/<PREFIX> [<NEXT-HOP-IP-ADDR>|<INTERFACE>|reject|blackhole]
no ipv6 route <DEST-IPV6-ADDR>/<PREFIX> [<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>/<PREFIX>
Specifies the IPv6 route destination. For example, X:X::X:X/M as
120::/124
<NEXT-HOP-IP-ADDR>
Specifies the next hop IPv6 address for reaching the destination. Format: X:X::X:X
<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
Examples
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