Configuration Guide Vol. 3


25.2.8 Configuring a static route between VRF using a IPv6 link-local address as the next hop [SL-L3A]

Implement an extranet between specified hosts by configuring a static route across VRFs by using an IPv6 link-local address as the next hop.

Points to note

The example below shows how to specify the IPv6 link-local address as the next hop address in the ipv6 route command, and specify the interface in the subsequent interface parameter. If the VRF for the static route is different from the VRF for the interface, a static route between VRFs is created.

Command examples

  1. (config)# interface vlan 2

    (config-if)# vrf forwarding 2

    (config-if)# ipv6 enable

    (config-if)# ipv6 address 2001:db8:ffff:ffff::1/64

    Specifies VRF 2 and an IPv6 address for VLAN ID 2.

  2. (config)# interface vlan 3

    (config-if)# vrf forwarding 3

    (config-if)# ipv6 enable

    (config-if)# ipv6 address 2001:db8:ffff:fff0::1/64

    Specifies VRF 3 and an IPv6 address for VLAN ID 3.

  3. (config)# ipv6 route vrf 2 2001:db8:ffff:41::1/128 fe80::3 vlan 3 noresolve

    Generates a static route 2001:db8:ffff:41::1/128 in VRF 2. For the next hop, specifies the link-local address fe80::3 for the VLAN 3 interface for the neighboring gateway.

  4. (config)# ipv6 route vrf 3 2001:db8:ffff:51::1/128 fe80::4 vlan 2 noresolve

    Generates the static route 2001:db8:ffff:51::1/128 for VRF 3. For the next hop, specifies the link-local address fe80::4 for the VLAN 2 interface for the neighboring gateway.