You can add a sub interface on a trunk vNIC, which can then be used by NSX Edge services.
About this task
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:
Routing (BGP only)
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.
- In the Interfaces. tab for an NSX Edge, click
- Select an interface and click the Edit () icon.
- In the Edit Edge Interface dialog box, type a name for the interface.
- In Type, select Trunk.
- Select the standard portgroup or distributed portgroup to which this interface should be connected.
- Click Change next to the Connected To field.
- Depending on what you want to connect to the interface, click the Standard Portgroup or Distributed Portgroup tab.
- Select the appropriate portgroup and click OK.
- Click Select.
- In Sub Interfaces, click the Add icon.
- Click Enable Sub interface and type a name for the sub interface.
- 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.
- 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
- To add subnets to the sub interface, click the Add icon in the Configure Subnets area.
- 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.
- Type the subnet prefix length and click OK.
- 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.
- Select Enable Send Redirect to convey routing information to hosts.
- Type the MAC address for the interface.
Since sub interfaces do not support HA, only one MAC address is required.
- Edit the default MTU of the trunk interface, if required.
- 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.