Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Associating a Network to a Policy—Juniper Networks Contrail

    Associating Network Policies Overview

    Contrail helps you create and manage virtual networks (VNs). By default, all traffic in a VN is isolated to that VN. Traffic can only leave a VN by means of network policies that are defined for the VN.

    This procedure shows how to associate a network policy with a network, using the Juniper Networks Contrail interface.

    If you did not associate an existing network policy when you created your virtual network, you can use the Network Policy(s) field from the Edit Network window, or you can use the Associate Networks field from the Edit Policy window to associate or disassociate network policies with networks. The following procedures demonstrate both methods.

    Associating a Network Policy to a Network from the Edit Network

    This procedure shows how to attach (associate) a network policy to a network when starting from the Edit Network window.

    1. Start at Configure > Networking > Networks; see Figure 1.

      Make sure your project is the active project in the upper right.

      Figure 1: Configure > Networking > Networks

      Configure > Networking > Networks
    2. Click the network you will associate with a policy, then in the Action column, click the action icon and select Edit.

      The Edit Network window for the selected network appears; see Figure 2.

      Any policies already associated with the selected network appear in the Network Policy(s) field.

      Figure 2: Edit Network

      Edit Network
    3. Click the Network Policy(s) field to show a list of existing policies, and click to select a policy to associate with the selected network.

      You can also disassociate a selected policy by clicking the X next to its name when it appears configured in the Network Policy(s) field.

    4. When finished, click the Save button, or click the Cancel button to undo your selections.

    Associating Networks with Network Policies from the Edit Policy

    If you did not associate a network when you created a network policy, you can use Edit Policy to associate a selected policy with a network. This procedure shows how to associate network policies when starting from the Edit Policy window.

    1. Start at Configure > Networking > Policies.

      Make sure your project is selected in the field in the upper right; see Figure 3.

      Figure 3: Configure > Networking > Policies

      Configure > Networking > Policies
    2. Click the policy you will associate with a network, then in the Action column, click the action icon and select Edit.

      The Edit Policy window for the selected policy appears; see Figure 4.

      Any networks already associated with the selected policy appear in the Associate Networks field.

      Figure 4: Edit Policy

      Edit Policy
    3. Click in the Associate Networks field to show a list of existing networks, and click to select a network to associate with the selected policy.

      You can also disassociate a selected network by clicking the X next to its name when it appears configured in the Associate Networks field.

    4. When finished, click the Save button, or click the Cancel button to undo your selections.

    Modified: 2015-09-02