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

Switch Port Trunk

Hello All,

I having a interface which is configured right now as

interface gigabitethernet x/x/x

swicthport acess vlan xx

swicthport mode  acess

spanning - tree portfast

And I want it to change to the following

interface gigabitethernet x/x/x

swicthport trunk encapsulation dot1q

swicthport  trunk native vlan xx ( same vlan number as above )

swicthport mode  trunk

speed 1000

duplex full

spanning - tree portfast

  • Commands to make the changes
  • Is there anyway to copy the configuration from a interface which is running a similar  

Thanks in advance

Soofi,

1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Super Gold

Re: Switch Port Trunk

Try the following method:

default interface Gig a/b/c

interface Gig a/b/c

copy-n-paste the commands.

10 REPLIES
Hall of Fame Super Gold

Re: Switch Port Trunk

Try the following method:

default interface Gig a/b/c

interface Gig a/b/c

copy-n-paste the commands.

New Member

Re: Switch Port Trunk

Copy and paste which commands ?

Hall of Fame Super Gold

Re: Switch Port Trunk

Copy and paste which commands ?

These:

swicthport trunk encapsulation dot1q

swicthport  trunk native vlan xx ( same vlan number as above )

swicthport mode  trunk

speed 1000

duplex full

spanning - tree portfast

New Member

Re: Switch Port Trunk

Thanks seems like it worked. however I got this error message is it some thing critical ?

%Warning: portfast should only be enabled on ports connected to a single
host. Connecting hubs, concentrators, switches, bridges, etc... to this
interface  when portfast is enabled, can cause temporary bridging loops.
Use with CAUTION

%Portfast has been configured on GigabitEthernetx/x/x but will only
have effect when the interface is in a non-trunking mode.

VIP Super Bronze

Re: Switch Port Trunk

Hi

Since this is trunk port you need to turn off portfast

no spanning - tree portfast

HTH

Reza

New Member

Re: Switch Port Trunk

Hi Reza.

Thanks for the reply... It is connected to hpyer v terminal and it is Dell who has recomended the port fast.. Even thoug  it is not recomemended by Cisco.

I have another issue ...

Even Thought the above mentioned port is been trunkated for some reason  I am still unable to talk to other VLAN that includes the default  VLAN on the swicth.

-> Command to check as to which VLANs are allowed on a certain PORT

->  How to add a specific VLAN on certain PORTS.

-> Or any better suggestion are welcomed

Thanks,

Soofi

VIP Super Bronze

Re: Switch Port Trunk

AhteshamSoofi@Deeley.com

Hi Reza.

Thanks for the reply... It is connected to hpyer v terminal and it is Dell who has recomended the port fast.. Even thoug  it is not recomemended by Cisco.

I have another issue ...

Even Thought the above mentioned port is been trunkated for some reason  I am still unable to talk to other VLAN that includes the default  VLAN on the swicth.

-> Command to check as to which VLANs are allowed on a certain PORT

->  How to add a specific VLAN on certain PORTS.

-> Or any better suggestion are welcomed

Thanks,

Soofi

Hi Soofi,

Do a "show vlan" or "sh spanning-tree vlan x" to see the ports in a specific vlan.

You don't add vlans to ports.  You add physical ports to vlans.

You should not run portfast if you are connecting to another switch.  Portfast is for end user PCs, printer,etc,....

HTH

Reza

Hall of Fame Super Gold

Re: Switch Port Trunk

Don't forget to rate useful posts.  Thanks.

New Member

Re: Switch Port Trunk

Even Thought the above mentioned port is been trunkated for some reason  I am still unable to talk to other VLAN that includes the default  VLAN on the swicth.

-> Command to check as to which VLANs are allowed on a certain PORT

->  How to add a specific VLAN on certain PORTS.

-> Or any better suggestion are welcomed

Thanks,

Soofi

Hall of Fame Super Gold

Re: Switch Port Trunk

Command to check as to which VLANs are allowed on a certain PORT

show vlan [brief] will show you which ports are assigned to which VLANs.

show interface trunk will show you which ports are configured as trunk and what VLANs are allowed on the trunk (among the outputs).

480
Views
0
Helpful
10
Replies