I have SG300-28 28-Port Gigabit Managed Switch. I tried different ways to configure Vlan on the SW, here is the last configuration:
#int gi3
#no negotiation
#switchport mode trunk
#switchport trunk allowed vlan add 300
#spanning-tree portfast
#exit
I will get timeout, if I ping on the IP which has vlan tagging. whereas if I ping on any other IP (no Vlan), I will get a response.