06-24-2007 09:08 PM - edited 03-05-2019 04:56 PM
Hi, I am just wondering why the config I am looking at has both of these commands:
switchport access vlan 13
switchport mode trunk
I thought the only command required to make a trunk was:
switchport mode trunk
Why would you need to add a port to VLAN before making it a trunk link seeing as though the trunk aggregates all VLANs anyway?
06-24-2007 10:57 PM
Hello,
To set a port to trunk you don't need the switchport access vlan 13 command, but if this command is there it will not cause any problem since the switcport mode access command is not applied.
To use a port as trunk you need the following command:
switchport trunk encapsulation dot1q | isl
(on 29xx series device this command is not needed, they support only dot1q encapsultion, while higher ranges eg:3560,3750 support ISL and dot1q too)
switchport mode trunk
switcport trunk native vlan "vlan id" - if you want to change the native vlan (optional)
All in all you don't need add access vlan command if you use trunk mode.
bye
FCS
Please rate me if I helped
06-25-2007 12:16 AM
In addition to the above post, the port will fall back to the access vlan configuration if it were to lose the trunk status by some means.
You will also see this configuration on the ports connecting to a avaya VoIP phone where the port is configured as dot1q trunk with voice vlan and the data vlan is configured as an access vlan.
HTH, rate if it does
Narayan
06-25-2007 01:03 AM
Hi,
Totally agree with Narayan, i've seen this kind of configuration with Avaya VoIP phones, but as you know for Cisco IP phones you can always go to the auxiliary VLAN solution.
HTH,
Mohammed Mahmoud.
06-25-2007 03:47 AM
dear
i have 20 vlan.can i give two number of vlan acess on the switchport
Example
I have 1-20 vlan
can i give 1,2 vlan acess on the switchport.
it's not possible
I want to give two number of vlan acess on the switchport how can i do.
06-25-2007 04:14 AM
Upendra,
you cannot assign two access vlan to a switch port. A switch port can only be a memeber of one vlan.
When you use VoIP phone and connect the PC to the Phone PC port, the switchport can be configured for an auxilary/voice vlan along with the access vlan.
HTH, rate if it does
Narayan
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: