This article details the steps involved in configuring VLANs in SonicWall NS𝘷 with Virtual Switches.
Environment: VMware vSphere Web Client 6.5, Windows Server 2016, SonicWall NS𝘷.
In this tutorial, we would be creating two Virtual Interfaces, X0:V100 and X0:V200 with the Parent Interface bound to X0.
Click Manage in the top navigation menu. Navigate to Network | Interfaces.
Set up the Interface Settings per your requirement. In this case, X0:V100 interface is configured with an IP address of 172.16.100.1/24.
Now, X0:V200 interface is configured with an IP address of 172.16.200.1/24.
Both the Virtual Interfaces are created successfully on the NS𝘷. Port Groups for X0:V100 and X0:V200 need to be created on the Virtual Switch, so that they can be bound to the network adapters of the Virtual Machines (Windows Server) in the network. A Port Group is a essentially group of ports on a vSwitch, created to provide logical segmentation. A Port Group connects to a vSwitch, and a vSwitch connects to a physical network interface.
Port Group for X0:V100 network is set up as follows
Port Group for X0:V200 network is set up as follows
Now, a Port Group needs to be created in Trunk mode so that it can read all the tagged and untagged packets ingressing to the NS𝘷 on X0 port. In ESXi, setting the Port Group with a VLAN ID of 4095 makes it a trunk port which includes all VLAN IDs.
Now, the Trunk Port Group is assigned to the Network Adapter 1 (X0 Interface) of the NS𝘷.
To confirm that the trunk port is working as expected, the port groups X0:V100, X0:V200 and X0 would be assigned one by one to the Network Adapter on the Windows Server to check the IP address received from the DHCP Server on the NS𝘷.
The DHCP Server is set up and enabled on the NS𝘷 for Interfaces, X0, X0:V100 and X0:V200 under Network | DHCP Server.