Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

L3 VPN Interface Configuration Example

Read this topic to learn how to add a user pod with a virtio and kernel interfaces attached to an L3 VPN instance on the cloud-native router.

Overview

You can configure a user pod with a virtio and kernel interfaces to an L3 VPN instance on the cloud-native router. The Juniper Cloud-Native Router must have an L3 interface configured at the time of deployment. Your high-level tasks are:

  • Define and apply a network attachment definition (NAD)—The NAD file defines the required configuration for Multus to invoke the JCNR-CNI and create a network to attach the pod interface to.

  • Define and apply a pod YAML file to your cloud-native router cluster—The pod YAML contains the pod specifications and an annotation to the network created by the JCNR-CNI.

    Note:

    Please review the Cloud-Native Router Use-Cases and Configuration Overview topic for more information on NAD and pod YAML files.

Configuration Example

  1. Here is an example NAD to create a virtio interface attached to an L3 VPN instance: The NAD defines a virtual routing and forwarding (VRF) instance vrf100 to which the pod's virtio interface will be attached. You must use the vrf instance type for Layer 3 VPN implementations. The NAD also defines a static IP address to be assigned to the pod interface.
  2. Apply the NAD manifest to create the network.
  3. Here is an example NAD to create a kernel interface attached to an L3VPN instance:

    The NAD defines a virtual routing and forwarding (VRF) instance vrf200 with a veth interface type to which the pod's kernel interface will be attached.

    It also defines a static IP address to be assigned to the pod interface.
  4. Apply the NAD manifest to create the network.
  5. Verify the NADs are created.
  6. Here is an example yaml to create a pod attached to the vrf100 and vrf200 networks:

    The pod attaches to the router instance using the k8s.v1.cni.cncf.io/networks annotation.

  7. Apply the pod manifest.

  8. Verify the pod is running.

  9. Describe the pod to verify two secondary interface are created and attached to the vrf100 and vrf200 networks. (The output is trimmed for brevity).
  10. Verify the vRouter has the corresponding interface created. Access the vRouter CLI and issue the vif --list command.Note that the interface type is Virtual and the type of interface is L3. You can see the IP addresses assigned to the interfaces for the corresponding valid VRF numbers.