06-05-2018 10:01 AM - edited 03-08-2019 03:15 PM
This works on SG300, but not on SG350:
conf t
int gi1
switchport mode trunk
switchport trunk native vlan 111
switchport trunk allowed vlan add 20
switchport trunk allowed vlan add 30
Last two lines are merged into single one when sh run int gi1
switchport trunk allowed vlan 20,30
But on SG350 this approach does not work (why is that?) and one has to do something like this
conf t
int gi1
switchport mode trunk
switchport trunk native vlan 111
switchport trunk allowed vlan none
switchport trunk allowed vlan add 20
switchport trunk allowed vlan add 30
and result is
switchport trunk allowed vlan remove 1-19,21-29,30-4096
06-06-2018 12:15 AM
06-18-2018 03:19 PM - edited 06-19-2018 07:32 AM
I have a SG350X-24 (updated to latest firmware version: 2.3.5.63) and got annoyed by the same 'feature': Tagged VLAN membership is shown as the VLANs the trunk does not belong, which makes the configuration almost unreadable, take for example a fragment of my configuration file:
interface GigabitEthernet1/0/24
switchport mode trunk
switchport trunk allowed vlan remove 1-19,21-29,31-39,41-49,51-59,61-89
switchport trunk allowed vlan remove 91-109,112-119,121-129,131-4094
Now lets start deducing:
- VLAN 20 is not included in the interval so its allowed.
- VLAN 30 is not included in the interval so its allowed.
- VLAN 40 is not included in the interval so its allowed.
- VLAN 50 is not included in the interval so its allowed.
- VLAN 90 is not included in the interval so its allowed.
- VLAN 110 is not included in the interval so its allowed.
- VLAN 111 is not included in the interval so its allowed.
- VLAN 120 is not included in the interval so its allowed.
- VLAN 130 is not included in the interval so its allowed.
Not nice at all...
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide