Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3956
  • Last Modified:

Cisco 2901 - Trunking Port/Vlan allowed Question

Hey Guys,

I’ve got a  Cisco CISCO2901/K9 router which I’m wanting to configure the GI0/3/3 port to a trunking port and only allow vlan 1101 over the trunk.

The switchport is configured as a trunking port and is working fine. However when I use the command switchport trunk allowed vlan add 1101 it looks like it accepts it, but then doesn’t show up in the show interfaces trunk.

interface GigabitEthernet0/3/3
 description LINK_WAN
 switchport mode trunk
 no ip address


ROUTER#show interfaces trunk

Port      Mode         Encapsulation  Status        Native vlan
Gi0/0/0   on           802.1q         trunking      1
Gi0/3/3   on           802.1q         trunking      1

Port      Vlans allowed on trunk
Gi0/0/0   1-4094
Gi0/3/3   1-4094

Port      Vlans allowed and active in management domain
Gi0/0/0   1,399,1101
Gi0/3/3   1,399,1101

Port      Vlans in spanning tree forwarding state and not pruned
Gi0/0/0   1,399,1101
Gi0/3/3   1,399,1101
0
supportemea
Asked:
supportemea
  • 4
  • 3
  • 2
  • +1
1 Solution
 
max_the_kingCommented:
Hi,

i believe you need to add the following to interface configuration:

interface GigabitEthernet0/3/3
switchport trunk allowed vlan 1101
switchport mode trunk

hope this helps
max
0
 
max_the_kingCommented:
please note that you should add in that command all vlans you want to go through trunk, otherwise it will pass only vlan 1101

i.e.:
interface GigabitEthernet0/3/3
switchport trunk allowed vlan 1,399,1101
switchport mode trunk

should you want to trunk the 3 vlans 1,399 and 1101

max
0
 
supportemeaAuthor Commented:
Hi Max,

Looks like it doesnt as I get the error

Command rejected: Bad VLAN allowed list. You have to include all default vlans, e.g. 1-2,1002-1005.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
max_the_kingCommented:
Hi,
yes it may happen, please read the following (trunk section):
http://www.cisco.com/en/US/products/hw/modules/ps2797/products_configuration_example09186a00808066b8.shtml#step2

hope this helps
max
0
 
max_the_kingCommented:
however i wouldn't worry, you may want to have a look at this:
https://supportforums.cisco.com/thread/2167537

it is well explained
max
0
 
Don JohnstonCommented:
I’ve got a  Cisco CISCO2901/K9 router which I’m wanting to configure the GI0/3/3 port to a trunking port and only allow vlan 1101 over the trunk.
If you only want to allow one VLAN, why do you want a trunk?  This defeats the whole point of a trunk in the first place.
0
 
BigPapaGottiCommented:
Try using the command below:

switchport trunk allowed vlan 1-1005,1101

This will specify the default vlans that need to be allowed as well as the only VLAN you want to traverse the link. Keep in mind that you need to enter this command under the appropriate interface for each side of the trunk's link.
0
 
BigPapaGottiCommented:
Any updates
0
 
BigPapaGottiCommented:
Any change/updates for us?
0
 
Don JohnstonCommented:
You in a hurry or something? :-)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now