02-06-2009 04:34 PM - edited 03-06-2019 03:54 AM
Hi all, I came accross a configuration in one of the ports of a 6509 switch running ios (s72033_rp-JK9SV-M), Version 12.2(18)SXD3. I thought you can have a port configured either switchport access or switchport trunk but not both.
interface FastEthernet2/21
no ip address
speed 100
duplex full
switchport
switchport access vlan 130
switchport trunk encapsulation dot1q
switchport mode trunk
rmon collection stats 6068 owner monitor
spanning-tree portfast
end
Any input would be appreciate it.
Cheers!
Solved! Go to Solution.
02-06-2009 04:41 PM
The mode is what counts, in your case the switchport is set to trunk.
The switchport access is there just in case the remote device does not negotiate the trunk connection.
You can verify the operational state in the interface with the command show interface fa2/21 switchport
HTH,
__
Edison.
02-06-2009 05:10 PM
If a server is connecting to this switchport, more than likely is using Vlan 1 as the native/access Vlan.
As Glen pointed out, the mode is set to trunk unconditionally, so regardless the remote connection, the operational state will remain as trunk.
If Vlan 130 is the Vlan for 10.10.10.30/26, then you either need to change the native Vlan in the trunk from Vlan 1 to Vlan 130 with the command, switchport trunk native vlan 130 or change the mode from trunk to access with the command switchport mode access
Again, the command I gave you before should've informed you about the native Vlan.
HTH,
__
Edison.
02-06-2009 04:39 PM
In that case the access statement means nothing because the trunk command is forced on , so it will uncondtionally try to trunk , it cannot be access port unless you remove the switchport mode trunk command.
02-06-2009 04:41 PM
The mode is what counts, in your case the switchport is set to trunk.
The switchport access is there just in case the remote device does not negotiate the trunk connection.
You can verify the operational state in the interface with the command show interface fa2/21 switchport
HTH,
__
Edison.
02-06-2009 05:00 PM
Thank you all for replying, one last questions, will the switchport access vlan statement create any anomalies? like routing issues or things like that?
Thank you again!!!
Cheers!
02-06-2009 05:01 PM
No, it shouldn't create any problems.
Are you experiencing any?
__
Edison.
02-06-2009 05:04 PM
yes I am, there is a server plugged in to that port, the server has an ip of (example) 10.10.10.30/26 the vlan hrsp vip is 10.10.10.60/26 - folks from another branch can ping the vip accross the wan, but can not ping the device 10.10.10.30
02-06-2009 05:10 PM
If a server is connecting to this switchport, more than likely is using Vlan 1 as the native/access Vlan.
As Glen pointed out, the mode is set to trunk unconditionally, so regardless the remote connection, the operational state will remain as trunk.
If Vlan 130 is the Vlan for 10.10.10.30/26, then you either need to change the native Vlan in the trunk from Vlan 1 to Vlan 130 with the command, switchport trunk native vlan 130 or change the mode from trunk to access with the command switchport mode access
Again, the command I gave you before should've informed you about the native Vlan.
HTH,
__
Edison.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide