I am configuring a trunk port to a VMWare ESX server. I have had problems with virtualization on AIX servers bleed STP BPDU's across the hypervisor through a redundant link thereby causing a bridging loop. I want to protect myself from this same thing occurring with this ESX server. Any thoughts on whether this is going to do it or possibly better ways to do it?
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 101,102
switchport mode trunk
no ip address
no cdp enable
spanning-tree portfast trunk
I really dont know the topology you have but based on the description above the "spanning-tree portfast trunk" and "bpduguard" should help you to achieve what you are looking for. You have done the correct configuration on the ports. Please see the link below for more info:
HTH,Please rate if it does.