cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
284
Views
0
Helpful
1
Replies

Newb VLAN question...

jimmysands73_2
Level 5
Level 5

Going over some other questions this morning, I ran into one I had myself but forgot to ask...say we have:

interface FastEthernet1/0/1

switchport trunk encapsulation dot1q

switchport trunk allowed vlan 3,4,6-9,300

switchport mode trunk

---

When you have the cmd

sw mo tr

doesnt that mean all VLANs are allowed? By having the line

switchport trunk allowed vlan 3,4,6-9,300

Is this config not allowing all other VLANs?

Thanks

1 Accepted Solution

Accepted Solutions

lamav
Level 8
Level 8

Hello:

By default, a dot1q trunk configured on a Cisco device will allow all vlans that are configured on the switch.

You can prune some vlans off the trunk by using the "allowed" keyword.

"doesnt that mean all VLANs are allowed?"

Yes.

"By having the line switchport trunk allowed vlan 3,4,6-9,300 Is this config not allowing all other VLANs?"

Correct. Only vlans 3,4,6,7,8,9 and 300 will be allowed on that trunk.

HTH

Victor

View solution in original post

1 Reply 1

lamav
Level 8
Level 8

Hello:

By default, a dot1q trunk configured on a Cisco device will allow all vlans that are configured on the switch.

You can prune some vlans off the trunk by using the "allowed" keyword.

"doesnt that mean all VLANs are allowed?"

Yes.

"By having the line switchport trunk allowed vlan 3,4,6-9,300 Is this config not allowing all other VLANs?"

Correct. Only vlans 3,4,6,7,8,9 and 300 will be allowed on that trunk.

HTH

Victor

Review Cisco Networking products for a $25 gift card