ipv6 route vrf
Syntax
ipv6 route <DEST-IPV6-ADDR>/<PREFIX> [<NEXT-HOP-IP-ADDR>|<INTERFACE>|reject|blackhole] vrf <VRF-NAME>
no ipv6 route <DEST-IPV6-ADDR>/<PREFIX> [<NEXT-HOP-IP-ADDR>|<INTERFACE>|reject|blackhole] vrf <VRF-NAME>
Description
Adds an IPv6 static route in the specified VRF. If no
<VRF-NAME>
is specified it is added to the default VRF.
The
no
form of this command removes an IPv6 static route from the VRF.
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 prefix are silently discarded and no ICMP error notification is sent to the sender.
reject
Specifies that packets matching the destination prefix are discarded and an ICMP error notification is sent to the sender.
vrf <VRF-NAME>
Specifies the VRF name. If no
<VRF-NAME>
is specified, the route is applied to the default VRF. Length: Up to 32 alpha numeric characters.
Authority
Administrators
Examples
switch(config)# ipv6 route 120::/124 121::2 vrf test switch(config)# ipv6 route 121::/124 1/1/9 vrf test switch(config)# ipv6 route 122::/124 blackhole vrf test switch(config)# ipv6 route 123::/124 reject vrf test
switch# configure terminal switch(config)# no ipv6 route 120::/124 121::2 vrf test