question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VLAN using ESXi standard port groups

See original GitHub issue

Hi,

Great script, does everything perfectly except one thing, using ESXi standard port groups is not an option. Basically the VLANs and prefix assignments are setup in ESXi as standard port groups instead of using DistributedirtualPortGroups, hence the only VLAN that is create is the ESXi Management Network (ID: 10). I have tried looking at the vSphere API in a way to modify the script to use standard port groups from ESXi but cannot seem to find a way. I’m new to the API so not too sure how to go about it.

Also because of not finding the prefixes in the VLANs, the VMs are not assigned to the correct prefixes as there are none imported. I know this can be done manually but with a large number of VMs it isnot feasibile to manually do this.

Is this a possible feature that could be added? I would do it myself if I knew how to query the API properly for the port groups & VLANs.

If you need more details please let me know.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
bb-Ricardocommented, Nov 24, 2020

Let’s see if I can match the VM MAC addresses to the host port group.

0reactions
TomGrozevcommented, Dec 1, 2020

Don’t worry about that one, all sorted.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring VLAN on a vSwitch standard portgroup (1003825)
Click the ESXi/ESX host and click the Configuration tab. · Click the Networking link. · Click Properties next to the virtual switch that...
Read more >
Create standard port-group for trunking all VLANs to VM
Create a new portgroup with VLAN ID as 4095 (All VLANs) with suitable name (Eg All VLANs Trunk); Then change VM NIC to...
Read more >
How to configure an ESXi host to support VLAN tagging - Abiquo
Follow these steps to create the Port Group with VLAN 4095 using vSphere Client v6.5: Log in to the vSphere Client and select...
Read more >
Configure VLANs | VMware ESXi# - Geek University
ESXi supports 802.1Q VLAN tagging. A port group is given a VLAN ID, uniquely identifying that VLAN across the network. Packets from a...
Read more >
Add / Remove port groups and VLANs using the ESXi ...
Useful commands for modifying port groups and VLAN settings on ESXi. Can be used in scripts of course to do additions / removals...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found