IPv6 static route addition or deletion in a VRF
Prerequisites
You must be in the global configuration context, as indicated by the
config
prompt.
Procedure
To add an IPv6 static route to a VRF, enter the following command.
ipv6 route <dest-ipv6-addr>/<prefix> {<gateway-ip>|<interface>} vrf [<vrf-name>]
Where
<dest-ipv6-addr>/<prefix>
Specifies the route destination IPv6 address and the network prefix for the destination. For example,
120::/124
.<gateway-ip>|<interface>
Specifies either the gateway as either an IPv6 address or an interface.
<vrf-name>
Specifies the VRF name. The name can be up to 32 alpha numeric characters. If no
<vrf-name>
is specified the route is applied to the default VRF.
Use the
no
form of the command to delete an IPv6 static route from a VRF.
See the following examples:
switch(config)# ipv6 route 120::/124 121::2 vrf test switch(config)# ipv6 route 120::/124 1/1/9 vrf test
switch(config)# no ipv6 route 120::/124 121::2 vrf test
Related topics: ipv6 route vrf (command reference)