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)
switchport access vlan 300
switchport mode access
switchport trunk allowed vlan 10, 300
ip address 192.168...
VLAN 300 would be added to vlan.dat but not 10.