For AI agents: the complete documentation index is available at https://docs.us.ovhcloud.com/en/llms.txt, the full documentation bundle is available at https://docs.us.ovhcloud.com/en/llms-full.txt, and this page is available as Markdown at https://docs.us.ovhcloud.com/en/hosted-private-cloud/vmware/nsx-segment-management.md.
  • English

Segment Management in NSX

View as Markdown

Discover the creation and use of segments in the NSX and vCenter interfaces.

In an NSX solution, a segment is a virtual level 2 domain, it can be of two types:

  • VLAN-backed segments: Communication between hosts and virtual machines is done through VLANs and a Layer 2 switch of the OSI model. For these segments to communicate with the elements of NSX (Internet and other segments), an interface must be added to the Tier-1 Gateways or Tier-0 Gateways gateways.
  • Overlay-backed segments: The connection is made using a software overlay that establishes tunnels between hosts. You must add an address to a subnet that will be used for routing outside this segment. They must be connected to a Tier-1 Gateways gateway such as ovh-T1-gw.

The segments are linked to transport zones that are predefined by OVHcloud.

  • system-owned-vlan-transport-zone-for-rtep | VLAN: Area for extended RTEP networks.
  • system-owned-vlan-transport-zone-for-evpn | VLAN: Zone for VPNs.
  • ovh-tz-overlay | VLAN: Zone for Overlay segments behind the ovh-t1-gw gateway.
  • ovh-tz-public | VLAN: Area connected to the public network on a single VLAN provided by OVHcloud.
  • ovh-tz-vrack | VLAN: Area connected to the OVHcloud vRack where it is possible to create segments with a particular VLAN.

 

Requirements

 

Instructions

Info

Please note that the designations (such as the VLAN number) and IP addresses of the network configurations are provided as examples and can be modified if required.

Creating a segment in the NSX interface

We will create an Overlay-backed segment connected to ovh-T1-gw in a subnet in 192.168.1.0/24 with gateway 192.168.1.254.

From the NSX interface go to the Networking tab.

Segment management - NSX segment management - step 1

Click on Segments on the left.

Segment management - NSX segment management - step 2

Click on ADD SEGMENT on the right.

Segment management - NSX segment management - step 3

Fill in this information:

  • Name: Your segment name.
  • Connected Gateway: Predefined gateway ovh-T1-gw | Tier1.
  • Transport Zone: ovh-tz-overlay predefined zone.
  • Subnet: The gateway address of the segment in this format 192.168.1.254/24.

Then click on SAVE.

Segment management - NSX segment management - step 4

Click NO when prompted.

Segment management - NSX segment management - step 5

The new segment appears in the list.

Segment management 05 - NSX segment management - step 2

In the Networking tab, click on Network Topology on the left to see the new segment and its location in the network.

Segment management - NSX segment management - step 6

 

Connecting a virtual machine to this segment.

Go to the vCenter interface of your Hosted Private Cloud cluster.

Right-click the virtual machine and click Edit Settings.

Segment management - NSX segment management - step 8

Scroll to the right of your network adapter and choose Browse.

Segment management - NSX segment management - step 8

Select the network that is named after your segment and click OK.

Segment management - NSX segment management - step 10

Click OK.

Segment management - NSX segment management - step 11

Now that your virtual machine is connected to the segment, go back to the NSX interface.

Go to the Networking tab, and choose Network Topology.

Segment management - NSX segment management - step 11

The virtual machine associated with the network appears in the network topology.

Use the first part of the guide to create a second segment named ov2-segment with these parameters 192.168.2.254/24 to have two segments connected to ovh-T1-gw.

Segment management - NSX segment management - step 12

Then, from the vCenter console, put two virtual machines on the first segment and two more on the second segment.

Return to the NSX interface in Network Topology to bring up the new network configuration.

Segment management - NSX segment management - step 14

Both segments are connected to the gateway ovh-T1-gw. Routing between the two subnets is enabled without any network restrictions by default.

 

Creating a segment on a VLAN

Through the NSX interface, click on the Networking tab and click on Segments on the left in the Connectivity section. Then click ADD SEGMENT.

Segment management - NSX segment management - step 14

Fill in this information:

  • Name: Type vlan100-vrack-segment.
  • Transport Zone: Select ovh-tz-vrack.
  • VLAN: Write the number 100.
  • Subnets: Enter the gateway address and range on this segment 192.168.100.254/24

Then click SAVE.

Segment management - NSX segment management - step 15

Click NO when prompted.

Segment management - NSX segment management - step 16

 

Connecting a VLAN segment to the ovh-T1-gw gateway

You can route the network from a VLAN segment to the Internet and other segments by creating an interface on the ovh-T1-gw gateway. When creating the interface, use the same IP address as the one specified in the segment subnet.

Through the NSX interface go to the Networking tab and click on Tier-1 Gateways on the left in the Connectivity section.

Then click on the three vertical points and choose Edit from the menu.

Segment management - NSX segment management - step 17

Click on the Down Arrow to the left of SERVICE INTERFACES and click the Set button that just appeared to the right of Service Interfaces.

Segment management - NSX segment management - step 18

Click ADD INTERFACE.

Segment management - NSX segment management - step 20

Choose this information:

  • Name: Type vlan100-interface as the name of your interface.
  • IP Address / Mask: Enter the IP address of the interface 192.168.100.254/24 which should match the gateway.
  • Connected To(Segment): Take the segment that is on VLAN 100 on the vRack named vlan100-vrack-segment.

Then click SAVE to confirm the creation of the interface on ovh-T1-gw.

Segment management - NSX segment management - step 21

Click CLOSE.

Segment management - NSX segment management - step 22

The number 1 next to Service Interfaces indicates that the interface is created, click CLOSE EDITING to complete the creation of the interface.

Segment management - NSX segment management - step 22

You can now connect outside this segment through the interface with gateway 192.168.100.254/24.

 

Assigning a VLAN Segment to a Virtual Machine

Go to your vSphere interface; right-click your virtual machine and choose Change settings.

Segment management - NSX segment management - step 24

Go to your network adapter and click Browse.

Segment management - NSX segment management - step 25

Click the segment associated with your VLAN and click OK.

Segment management - NSX segment management - step 26

Click OK to commit the changes.

Segment management - NSX segment management - step 27

 

Displaying a network topology with overlay segments and other segments on VLANs

Go back to the NSX interface, go to the Networking tab, and click on Network Topology on the left to view a graphical view of the network. You will see networks of type Overlay and those of type VLAN connected through an interface on ovh-t1-gw.

Segment management - NSX segment management - step 27

 

Conclusion

Having read this guide, you should be able to create and use segments in the NSX and vCenter interfaces.