Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

access vlan 51/trunk allowed vlan 51

Hi,

Can someone help regarding this

what is the difference between those 2 commands? on a lab I have been asked to do exactly the same things on two different switch however I failed and apparently the question was the same but one of the switch is on the access-layer and the other in the distribution layer!

1-(config-if)switchport access vlan 51

2-(config-if)switchport trunk allowed vlan 51

Please assist

thx

1 REPLY
Purple

Re: access vlan 51/trunk allowed vlan 51

Hi,

The first command is used on an access port and basically associates all traffic on that port with VLAN 51.

On the other hand, the second command is used on a trunk port to explicitly enable it to carry VLAN 51. By default, trunks will carry all VLANs unless you explicitly dis-allow certain VLANs.

Hope that helps - pls rate the post if it does.

Paresh

197
Views
0
Helpful
1
Replies
CreatePlease to create content