VLAN configuration

We then need to configure our virtual router to support VLANs. Switch to Interface from the main menu and select New VLAN interface. Three VLANs need to be created with the following properties:

  • The VLAN IDs are 10 20, and 30
  • The interface is ether2
  • The names are vlan10, vlan20, and vlan30

You can also use the following CLI command:

interface vlan add interface=ether3 vlan-id=10 name=VLAN10

The interface configuration should appear as follows:

We now need to configure an L3 interface for the new VLANs so that the virtual machines that are connected to them will be able to reach the IP interface of the virtual router.

Get Mastering VMware vSphere 6.7 - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.