I needed to set up a trunk between a NetScaler VPX instance living on a NetScaler SDX box to a switching infrastructure at a customer's location. In looking through Citrix's documentation on getting this configured, it is a bit hazy as to what needs to be done. Keep in mind the following is what I needed to configure a specific NetScaler SDX and VPX instance environment, so your environment may differ a bit or completely. To possibly help others out in their quest to perform a similar feat, here you go:
I changed the NSIP to the same VLAN as the physical SDX interfaces 0/1 and 0/2 reside. These ports are strictly for management, so this was the preferred method at this client. The reason why I needed to do this was to separate the NSIP from the other production VLANs
Create and verify all SNIP's on the NetScaler instance.
Navigate to NetScaler - Network - IPs on the NetScaler VPX instance.
Add/modify as needed.
Create VLANs on the NetScaler instance and bound the appropriate SNIP and interface that will be used for VLAN tagging (trunking).
Navigate to NetScaler - Network - VLANs on the NetScaler VPX instance.
Enter the VLAN ID as specified in your switching infrastructure.
Select the SNIP for this VLAN.
Select the interface that will be performing VLAN tagging (trunking).
Make sure the Tag column is selected for the interface as well.
Click OK. If you receive an error at this point, it is most likely caused by the SNIP being on the same VLAN as your NSIP. To resolve this error, you need to separate the VLANs.
Repeat for the number of VLANs that will be passed to the NetScaler VPX instance.
Set the interface on the NetScaler instance to "Tag all VLANs".
Navigate to NetScaler - Network - Interfaces on the NetScaler VPX instance.
Select the interface you are configuring for VLAN tagging (trunking) and click Open.
Next to Tag all VLANs select ON.
Modify the VLAN filter on the SDX physical interface that will be passing VLAN tagging (trunking) by making sure the VLAN filter is turned off or configured with the appropriate VLAN tags.
Navigate to System - Interfaces on the NetScaler SDX Management Service VM web interface.
Select the interface you are configuring for VLAN tagging (trunking) and click VLAN Filter.
If the interface is listed, click on the "-" next to the interface.
I hope this helps. Let me know if you have any comments, questions, or alternate ways of configuring this.