Solved

gns3 - switchport trunk allow vlan error

Posted on 2016-11-04
4
49 Views
Last Modified: 2016-11-05
I am using GNS3 and am trying to have only one vlan on the trunk. I did the command below and I got an error. Then I tried to remove the existing VLANs but it did not remove them from the vlan db. Any thoughts? Thx

sw2(config-if)#switchport trunk allowed vlan 255
Command rejected: Bad VLAN allowed list. You have to include all default vlans, e.g. 1-2,1002-1005.
0
Comment
Question by:leblanc
  • 2
4 Comments
 
LVL 27

Accepted Solution

by:
Predrag Jovic earned 400 total points
ID: 41875163
In some old Cisco IOS versions you had to include VLANs 1002-1005 on trunks (and also VLAN 1 - if I remember correctly), but typically that's not the case anymore. Most likely problem is with Ethernet card inserted in router that you are using to emulate switch since GNS3 does not emulate switches (at least not when I checked it last time).

VLANs 1002 - 1005 are by default present for historical purpose (FDDI and token ring) on switches and can't be deleted. Don't worry about it, you can safely ignore that message for production. For testing purpose use:

sw2(config-if)# switchport trunk native vlan 255
sw2(config-if)# switchport trunk allowed vlan 1,255,1002-1005
0
 
LVL 6

Assisted Solution

by:Niten Kumar
Niten Kumar earned 100 total points
ID: 41875166
Note: VLANs 1 and 1002 through 1005 are reserved VLANs and cannot be removed from any trunk link.

To add a VLAN to the trunk, issue the
switchport trunk allowed vlan add vlan-list

Open in new window

command.

sw2(config-if)#switchport trunk allowed vlan add 255

Open in new window


You can simulate switches really nicely with IOU.  Refer to the following link.

http://letusexplain.blogspot.com/2015/07/cisco-iou-l2-l3-lab-with-gns3-switching.html
0
 
LVL 27

Expert Comment

by:Predrag Jovic
ID: 41875167
Niten Kumar, those VLANs can be removed from trunks, no problems with that.
Even Packet tracer will not argue about that (at least with 3560):

Switch(config-if)#switchport trunk allowed vlan 10
Switch(config-if)#do sh int trunk
Port        Mode         Encapsulation  Status        Native vlan
Gig0/1      on           802.1q         trunking      1

Port        Vlans allowed on trunk
Gig0/1      10

Switches can be emulated in UNL also (not sure about etherchannel, but I did not watch any videos so far). But, as a first impression, I like the tool (although did not waste too much time with it and just tested simple things, I am still getting familiar with it).
0
 
LVL 1

Author Comment

by:leblanc
ID: 41875636
When you configure the VLAN, it is added automatically to the trunk.
The command sw2(config-if)# switchport trunk allowed vlan 1,255,1002-1005 worked. It looks like with the swithcing module I use for the router, you have to manually allow those default VLANs. Thx
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Setting Port speed and duplex on Cisco 3560 switch 2 42
stacking Catalyst 3650 20 36
traffic flow without STP 9 45
P2P and MPLS 3 42
This article is a step by step guide on how to create a basic PTP link using Ubiquiti airOS devices. This guide can be used on the following Ubiquiti AirMAX devices. Nanostation, Bullets, AirBridge, Nanobeam, NanoBridge to name a few. Please review …
Security is one of the biggest concerns when moving and migrating your data from your on-premise location to the Public Cloud.  Where is your data? Who can access it? Will it be safe from accidental deletion?  All of these questions and more are imp…
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now