I have a switch configuration for a Cisco 2960cx that allows a specific VLAN on a trunk but no interface on the switch explicitly accesses that VLAN. So when the configuration is ran for the first time, all explicitly accessed VLANs are added to the vlan.dat but not the one that is allowed. I get the reasoning for doing this, but is there a way to have the switch add an allowed VLAN to vlan.dat automatically? (Without the user having to conf t-> vlan X)
… interface GigabitEthernet0/4 switchport access vlan 300 switchport mode access interface GigabitEthernet0/5 switchport trunk allowed vlan 10, 300 interface Vlan10 ip address 192.168... …
VLAN 300 would be added to vlan.dat but not 10.