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

Removing a trunk

Hi

i wanted to know can you tell me what commands would i use to remove a trunk from an interface.

I have to move a trunk from FA0/1 and place it on Gi0/1, i thought that i could just copy and paste

the config from FA0/6 which is an access port and it would take the config on the trunk interface.

But when i did a sh run it's still a trunk port.Gi0/1 took the config because the port didn't have any

previous config on it.Any help would be greatly appreciate and thanks in advance.

2 ACCEPTED SOLUTIONS

Accepted Solutions
Cisco Employee

Re: Removing a trunk

Hello,

You can use the "no" form of the command to remove the trunk configuation. You need to configure "switchport mode access" to change it from trunk to access mode.

interface fa0/1

switchport mode access

no switchport trunk encapsulation dot1q

Hope this helps.

Regards,

NT

New Member

Re: Removing a trunk

You bet.

9 REPLIES
Cisco Employee

Re: Removing a trunk

Hello,

You can use the "no" form of the command to remove the trunk configuation. You need to configure "switchport mode access" to change it from trunk to access mode.

interface fa0/1

switchport mode access

no switchport trunk encapsulation dot1q

Hope this helps.

Regards,

NT

New Member

Re: Removing a trunk

Thanks alot i really appreciate it

New Member

Re: Removing a trunk

Elaborating the concept ,Whenever we use no with Cisco IOS Device in the network ,it remove the services currently installed with it.

We can configured it as it is we want .

In this scenario,we can change the mode of this port by writing a command like :switchport mode trunk/access whatever required.

Regards

Vinod Agrahari

New Member

I like the default command

I like the default command better than the no command as it resets the port enabling you to reset your options. 

 

Super Bronze

DisclaimerThe Author of this

Disclaimer

The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.

Liability Disclaimer

In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.

Posting

Yes, the default interface command is nice.  However, there are some of things to be aware of.  First, on some platforms, the default interface command (I believe) might change the shut down status.  So, I generally always follow a default interface command with setting the interface to shut or no shut, as desired.

Second, on at least one platform, some 6500 interface commands (some of the QoS commands) actually set/reset multiple interfaces (those on the same ASIC).  So, when you reset an interface with the default command, it clears some interface commands off other interfaces too.

Lastly, on some interfaces, on some platforms, some commands will not "disappear" when you change their activation status.  I.e. the command will appear both with and without "no".  For those, the default interface command will generally remove such commands.

New Member

Re: Removing a trunk

You can also use the default int fa0/1 command to wipe the config on your interface.

New Member

Re: Removing a trunk

That command is so much better than the putting no in front of the lines that i want to

remove. Thanks lot for sharing the knowlege i really appreciate it.

New Member

Re: Removing a trunk

You bet.

New Member

Thank you for sharing this. 

Thank you for sharing this. 

24879
Views
10
Helpful
9
Replies