On EX/QFX Series switches, when the VLAN name contains " -vlan " and when you add an interface to this VLAN, the VLAN does not work.
-vlan
This article suggests a workaround to resolve this issue.
On EX/QFX Series switches, when the VLAN name contains " -vlan ," the VLAN does not work when you subsequently add an interface to this VLAN by using the apply group configuration. This is demonstrated as follows:
For this example, we use a QFX5220 device that runs Junos OS release 19.3R1.
The device has a VLAN named "native -vlan -group" and consists of vlan-id list [5-50 99]. The interface is set by using the apply group configuration, but the VLAN setting does not work and hence when we check the VLANs, the interfaces are not found.
The configuration of the VLAN "native -vlan -group" is given below:
root@QFX5220> show configuration vlans default { vlan-id 1; } native-vlan-group { vlan-id-list [ 5-50 99 ]; } root@QFX5220> show configuration groups test-ports interfaces { <*> { native-vlan-id 99; unit 0 { family ethernet-switching { interface-mode trunk; vlan { members native-vlan-group; } } root@QFX5220> show vlans 99 Routing instance VLAN name Tag Interfaces default-switch native-vlan-group-vlan-0099 99
There is no interface in VLAN 99 and the interfaces are not found in other VLANS that belong to the VLAN list 5-50.
It is a day-1 issue.
To workaround the issue, change the name from native-vlan-group to native _vlan_group . Without " -vlan " in the VLAN name, this issue will be resolved.
native-vlan-group
native _vlan_group
2020-06-20: Article reviewed for accuracy. Article is correct and complete.