25.2.7 Configuring Static Routes Across VRF [SL-L3A]
Set a static route between VRFs to configure an extranet between specific hosts.
- Points to note
-
Specifies the partner VRF by using the vrf parameter of the ipv6 route command (after the next hop address).
Command examples
-
(config)# ipv6 route vrf 2 2001:db8:ffff:31::1/128 2001:db8:30:1::2 vrf 3 noresolve
Generates a static route 2001:db8:ffff:31::1/128 in VRF 2. Specifies VRF 3 neighboring gateway 2001:db8:30:1::2 as the next hop.
-
(config)# ipv6 route vrf 3 2001:db8:ffff:21::1/128 2001:db8:20:1::2 vrf 2 noresolve
Generates a static route 2001:db8:ffff:21::1/128 in VRF 3. For the next hop, specifies neighboring gateway 2001:db8:20:1::2 for VRF 2.