Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Switchport in Access and Trunk modes

Status
Not open for further replies.

silks101

Technical User
Joined
Apr 28, 2003
Messages
64
Location
GB
What effect does this have

switchport access vlan 103
switchport mode trunk

as we have it configured on our link ports between 2 switches (which we are having problems with) - I thought it could only be one or the other

Many thanks for your advice

Steve Lindley
CCNA
 
With IOS-based switches the command 'switchport access vlan xx' sets the access vlan should the port NOT be a trunk. The fact that you have 'forced' the port to be a trunk makes the command redundant until you make the port an access port again. With CatOS switches setting the access vlan of a switchport also sets the native vlan of the port becomes a trunk. With IOS-based switches to set the native vlan use the command 'switchport trunk native vlan xx'. I always set both the access vlan and native vlan the same when configuring trunks with IOS switches.

interface GigabitEthernet5/6
switchport
switchport access vlan 100
switchport trunk encapsulation dot1q
switchport trunk native vlan 100
switchport trunk allowed vlan 119,247
!

Bear in mind there are quite a few differences/limitations with the older IOS-based switches (2900XL & 3500XL).

Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top