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

Switch port access and trunk

can a switch port exist as below

both trunk and access ????

and what would be the purpose

switchport

switchport access vlan 201

switchport trunk encapsulation dot1q

switchport trunk native vlan 200

switchport trunk allowed vlan 1-1006 switchport mode trunk

8 REPLIES

Re: Switch port access and trunk

Hi

Yes a switchport can be access as well as trunk port.But it will be going to work as a access port.

Thanks

Mahmood

Community Member

Re: Switch port access and trunk

What would be the purpose of that config then ???

This happens to be in 650x switch and i fail to understand the purpose of the config

Appreciate any pointers

Thanks

Re: Switch port access and trunk

Hi

If u look at the config the first line makes the port in vlan 201,the secondl line makes it a trunk port,the third line the native vlan to be 200 and the fourth allows all the vlans through this port.

Well unless we know what is conected to this port we cannot say whats the purpose the config is serving.

Thanks

Mahmood

Community Member

Re: Switch port access and trunk

Well there is a typo mistake both the native and access vlan are 200 ...but i still am not able to understand the reason here ...im taking over from a badly documented network...any pointers appreciated as to what could be the possible applications of teh above

Thanks

Re: Switch port access and trunk

Hi

if this the case then the port is acting as a access port.

Thanks

Mahmood

Community Member

Re: Switch port access and trunk

What could be the conceivable uses of configuring a switch port in both access and trunk...im just confused on why such a thing can be required

Pointers appreciated

thanks

Re: Switch port access and trunk

Hi

Sometimes this kind of configuration is needed if ur having IP Telephony in u r environment but u need to configure the port for voice vlan also.

Thanks

Mahmood

Community Member

Re: Switch port access and trunk

The IOS is known with it's problems as far as it goes with configurations. Every lector, guide, will tell you: CHECK YOUR CONFIGURATION EVERY TIME YOU ENTER NEW COMMAND. It's a bug, and there is nothing you can do. First cancel the old command and than put the new one. There is no reason for configuring a port to be both in access and trunk mode.

217
Views
0
Helpful
8
Replies
CreatePlease to create content