VMware Cloud Community
tdubb123
Expert
Expert

vlan access port

I have 2 ports connected as access ports to a cisco ucs server. The access vlan is set on the port as 300.

I also configured a portgroup without any vlan tagging (vlan 0) and setup the ip on the vm in the 300vlan and its works fine.

however when I setup another vm in vlan50 on the same port group (300), it is still accessible.

any idea why?

the port config is

interface Ethernet121/1/37

  switchport access vlan 300

  spanning-tree port type edge

  no shutdown

0 Kudos
4 Replies
venkat_kapisett
Contributor
Contributor

Please attach the screen shot of the vSwithch or vDS of vcenter

Both the ports are still access ports on vlan 300 , so it is accessible

Venkat

http://www.peeradmin.com

0 Kudos
abhilashhb
VMware Employee
VMware Employee

The VLAN ID 0 is used when a device needs to send priority-tagged frames but does not know in which particular VLAN it resides.

So if you Have VLAN 0 all the packets will be transmitted independent of which VLAN its coming from. Doesn't matter whether its 300 or 50.

Abhilash B
LinkedIn : https://www.linkedin.com/in/abhilashhb/

0 Kudos
abhilashhb
VMware Employee
VMware Employee

If you want just 300 VLAN's traffic to flow out of that port group tag the VLAN as 300. then 50 wont work.

Abhilash B
LinkedIn : https://www.linkedin.com/in/abhilashhb/

0 Kudos
OscarDavey
Hot Shot
Hot Shot

Hello,

switchport access vlan 300

This means, that your port depends on vlan 300 not 50.

So you need to configure port

switchport access vlan 50

Hope will help.

Your Oscar

0 Kudos