These commands are applied on Cisco IOS to configure switch port for VLAN access:
interface GigabitEthernet1/15switchport(Configures the LAN port for Layer 2 switching)switchport access vlan vlan_ID(The value can be 1 through 4094, except reserved VLANs)switchport mode access(Configures the port to be an access port to prevent trunk negotiation delays)spanning-tree portfast(Configure port-fast for initial STP delay)
This image is a sample EST topology:
To configure this within the vSphere/VMware Infrastructure Client:
To configure within the vSphere Web Client.
esxcfg-vswitch –l Switch Name Num Ports Used Ports Configured Ports MTU Uplinks vSwitch0 64 5 64 1500 vmnic3,vmnic1 PortGroup Name VLAN ID Used Ports Uplinks VM Network 0 0 vmnic1,vmnic3 Service Console 0 1 vmnic1,vmnic3 Switch Name Num Ports Used Ports Configured Ports MTU Uplinks vSwitch2 64 8 64 1500 vmnic2,vmnic0 PortGroup Name VLAN ID Used Ports Uplinks VMkernel 0 1 vmnic0,vmnic2 Service Console 2 0 1 vmnic0,vmnic2 Production 0 2 vmnic0,vmnic2
esxcfg-vswitch -v VLAN -p “Service Console” vSwitch0To retrieve VLAN information from a vmnic, follow the steps below:
Enable VLAN statistics for the specific vmnic:esxcli network nic vlan stats set -e true -n vmnic#
Replace # with the appropriate vmnic identifier (e.g., vmnic0, vmnic1).
Retrieve the VLAN statistics for the selected vmnic:esxcli network nic vlan stats get -n vmnic#
This command will display the VLAN statistics for the specified vmnic
Note: The data provided by these statistics may not be completely accurate in all scenarios.