Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Setting Up L2 and L3 Topologies

Figure 1 illustrates the L2 topology.

Figure 1: L2 TopologyL2 Topology

Figure 2 shows switches such as Switch1, Switch2, and Aggregation Switch, which you can configure to set up the topology.

To set up a topology, complete the following steps:

  1. On the Aggregation Switch, set ge-0/0/1 and ge-0/0/2 interfaces to Trunk All mode.

  2. On Switch 1, set ge-0/0/2 interface to Trunk All mode and enable vlan-tagging on ge-0/0/10 and ge-0/0/20 interfaces.

  3. On Switch 2, set ge-0/0/1 interface to Trunk All mode and enable vlan-tagging on ge-0/0/30 and ge-0/0/20 interfaces.

Figure 2: L3 TopologyL3 Topology
Note:

In Figure 2, the SRX acts as both a router as well as a firewall.

Setting Up the Physical Topology

To set up the physical topology:

  1. To configure the Juniper Networks plug-in with the reference physical topology, use the commands listed in Table 1:

    Juniper Neutron plug-ins include CLI tools, which enable the administrator to define the network topology. The plug-ins depend on the topology definition to carry out network orchestration.

    Table 1: CLI Tools

    Name

    Description

    jnpr_device

    Add device details

    jnpr_nic_mapping

    Add a mapping between physical network alias (ex: Physnet1) to the corresponding ethernet interface on the node.

    jnpr_switchport_mapping

    Add a mapping between the compute or network Node and its Ethernet Interface to the switch and the port that it is connected to.

    jnpr_device_port

    Define the downlink port of the router or firewall on which routed VLAN interface (RVI)RVI for each tenant VLAN is created.

    jnpr_allocate_device

    Define allocation of router and firewall to a tenant or group of tenants.

    jnpr_vrrp_pool

    Define the VRRP pool.

  2. To add devices to the topology, run the following command on the OpenStack Neutron controller:
    Note:

    Use a login credential with super-user class privilege on the devices that are added to the topology.

  3. To add and view switches that are added to the topology, run the following command on the OpenStack Neutron controller:
    Note:

    In the physical topology, Switch1 and Switch2 are connected to the hypervisors.

    1. To add Switch1 to the topology, run the following command on the OpenStack Neutron controller::
    2. To add Switch2 to the topology, run the following command on the OpenStack Neutron controller:
    3. To view the switches that are added to the topology, run the following command on the OpenStack Neutron controller:
  4. To add routers to the topology, run the following command on the OpenStack Neutron controller:
    Note:

    In the physical topology shown in Figure 2, the SRX acts as both a router as well as a firewall.

  5. To add firewall to the topology, run the following command on the OpenStack Neutron controller:
  6. Define the NIC to physical network mapping for each hypervisor.

    In OpenStack, you generally define an alias for the physical network and its associated bridge by using the following configuration in /etc/neutron/plugins/ml2/ml2_conf.ini file on the network node and all the compute nodes:

    Because you can connect the bridge br-eth1 to any physical interface, you must add the link between the bridge br-eth1 and the physical interface to the topology by entering following command:

    1. To add Hypervisor 1 to the topology, run the following command on the OpenStack Neutron controller:

      Adding mapping

    2. To add Hypervisor 2 to the topology, run the following command on the OpenStack Neutron controller:

      Adding mapping

    3. To add Hypervisor 5 to the topology, run the following command on the OpenStack Neutron controller:
      Note:

      Hypervisor 5 is mapped to physnet1-- br-eth1 -- eth2.

      Adding mapping

    4. To add Hypervisor 6 to the topology, run the following command on the OpenStack Neutron controller:

      Adding mapping

    5. To add network node to the topology, run the following command on the OpenStack Neutron controller:

      Adding mapping

    6. To view all the mappings, run the following command on the OpenStack Neutron controller:
  7. Define the mapping from the compute to the switch.

    To configure the VLANs on the switches, the ML2 plug-in must determine the port of the switch on which the Hypervisor is connected through its Ethernet interface. This provides the plug-in an overall view of the topology between physnet1 -- br-eth1 -- eth1 -- Switch-x: ge-0/0/x. You can determine this information by either enabling LLDP, or by configuring it by using the following command:

    1. To map Hypervisor 1 to Switch 1, run the following command on the OpenStack Neutron controller:
    2. To map Hypervisor 2 to Switch 1, run the following command on the OpenStack Neutron controller:
    3. To map Hypervisor 5 to Switch 2, run the following command on the OpenStack Neutron controller:

      Database updated with switch port binding

    4. To map Hypervisor 6 to Switch 2, run the following command on the OpenStack Neutron controller:

      Database updated with switch port binding

    5. To map Network Node to Switch 2, run the following command on the OpenStack Neutron controller:

      Database updated with switch port binding

    6. To list all mappings, run the following command on the OpenStack Neutron controller:
  8. Define the downlink port on the SRX device (Router) on which the RVI is created by the plug-in.

    You can update the plug-in database with the port on the SRX device to which the Aggregation Switch is connected by using the following command:

    1. To add the downlink port of the SRX device to the topology, run the following command on the OpenStack Neutron controller:
  9. Create a VRRP pool

    The L3 plug-in supports high availability via VRRP. In order to use this functionality, you must create a VRRP pool and assign only one of the devices in the pool to a tenant using the jnpr_allocate_device command.

    Complete the following steps to create a VRRP pool:

    1. To add routers, run the following command on the OpenStack Neutron controller:
    2. To create VRRP pools, run the following command on the OpenStack Neutron controller:
    3. To define allocation of devices to a tenant or a group of tenants, run the following command on the OpenStack Neutron controller:

      To use a device as the default device for multiple tenants, run the following command on the OpenStack Neutron controller and set the tenant as default. For example: