IPv6 static route addition or deletion in a VRF


You must be in the global configuration context, as indicated by the config prompt.

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>]


Specifies the route destination IPv6 address and the network prefix for the destination. For example, 120::/124.


Specifies either the gateway as either an IPv6 address or an interface.


Specifies the VRF name. The name can be up to 32 alphanumeric 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)