You can add a sub interface on a trunk vNIC, which can then be used by NSX Edge services.


Trunk interfaces can be of the following types:

  • VLAN trunk is standard and work with any version of ESXi. This is used to bring tagged VLAN traffic into Edge.

  • VXLAN trunk work only with NSX version 6.1. This is used to bring VXLAN traffic into Edge.

A sub interface can be used by the following Edge services:

  • DHCP

  • Routing (BGP only)

  • Load Balancer


  • L2 VPN

A sub interface cannot be used for HA or Logical Firewall. You can, however, use the IP address of the sub interface in a firewall rule.


  1. In the Manage > Settings tab for an NSX Edge, click Interfaces.
  2. Select an interface and click the Edit (Edit icon) icon.
  3. In the Edit Edge Interface dialog box, type a name for the interface.
  4. In Type, select Trunk.
  5. Select the standard portgroup or distributed portgroup to which this interface should be connected.
    1. Click Change next to the Connected To field.
    2. Depending on what you want to connect to the interface, click the Standard Portgroup or Distributed Portgroup tab.
    3. Select the appropriate portgroup and click OK.
    4. Click Select.
  6. In Sub Interfaces, click the Add icon.
  7. Click Enable Sub interface and type a name for the sub interface.
  8. In Tunnel Id, type a number between 1 and 4094.

    The tunnel Id is used to connect the networks that are being stretched. This value must be the same on both the client and server sites.

  9. In Backing Type, select one of the following to indicate the network backing for the sub interface.
    • VLAN for a VLAN network.

      Type the VLAN ID of the virtual LAN that your sub interface should use. VLAN IDs can range from 0 to 4094.

    • Network for a VLAN or VXLAN network.

      Click Select and select the distributed portgroup or logical switch. NSX Manager extracts the VLAN ID and uses it in trunk configuration.

    • None to create a sub interface without specifying a network or VLAN ID. This sub interface is internal to NSX Edge, and is used to route packets between a stretched network and an unstretched (untagged) network

  10. To add subnets to the sub interface, click the Add icon in the Configure Subnets area.
  11. In Add Subnets, click the Add icon to add an IP address. Type the IP address and click OK.

    If you enter more than one IP address, you can select the Primary IP address. An interface can have one primary and multiple secondary IP addresses. NSX Edge considers the Primary IP address as the source address for locally generated traffic.

  12. Type the subnet prefix length and click OK.
  13. Edit the default MTU value for the sub interface if required.

    The default MTU for a trunk interface is 1600 and the default MTU for a sub interface is 1500. The MTU for the sub interface should be equal to or less than the lowest MTU among all the trunk interfaces for the NSX Edge.

  14. Select Enable Send Redirect to convey routing information to hosts.
  15. Type the MAC address for the interface.

    Since sub interfaces do not support HA, only one MAC address is required.

  16. Edit the default MTU of the trunk interface, if required.
  17. Click OK.


You can now use the sub-interface on Edge services.

What to do next

Configure VLAN trunk if the sub interface added to a trunk vNic is backed by standard portgroup. See Configure VLAN Trunk.