Problem:
The switch has two VLANs as shown in the output below.
Aruba-2930F# show vlan
Status and Counters - VLAN Information
Maximum VLANs to support : 256
Primary VLAN : DEFAULT_VLAN
Management VLAN :
VLAN ID Name | Status Voice Jumbo
------- -------------------------------- + ---------- ----- -----
1 DEFAULT_VLAN | Port-based No No
4000 VLAN4000 | Port-based No
When trying to edit or delete VLAN 4000, an error is displayed.
Aruba-2930F# configure terminal
Aruba-2930F(config)# no vlan 4000
4000: Dynamic VLANs cannot be deleted.
Diagnostics:
Identified that this VLAN is being learned through a configured device-profile on this switch.
Aruba-2930F# show vlan 4000
Status and Counters - VLAN Information - VLAN 4000
VLAN ID : 4000
Name : VLAN4000
Status : Port-based
Voice :
Jumbo : No
Private VLAN :
Associated Primary VID : none
Associated Secondary VIDs : none
Port Information Mode Unknown VLAN Status
---------------- -------- ------------ ----------
1 DEV-PROF Learn Up
Overridden Port VLAN configuration
Port Mode
------ ------------
Below is the device profile configuration on the switch and we identified that VLAN 4000 is mapped to device-profile "IAP".
Aruba-2930F# show device-profile config
Device Profile Configuration
Configuration for device-profile : default-ap-profile
untagged-vlan : 1
tagged-vlan : None
ingress-bandwidth : 100%
egress-bandwidth : 100%
cos : None
speed-duplex : auto
poe-max-power : Class/LLDP
poe-priority : critical
allow-jumbo-frames : Disabled
allow-tunneled-node: Enabled
Configuration for device-profile : IAP
untagged-vlan : 4000
tagged-vlan : None
ingress-bandwidth : 100%
egress-bandwidth : 100%
cos : None
speed-duplex : auto
poe-max-power : Class/LLDP
poe-priority : critical
allow-jumbo-frames : Disabled
allow-tunneled-node: Enabled
<Truncated Output>
Solution
This VLAN cannot be deleted and needs to be removed from the device-profile configuration if not required.
To remove the VLAN from the device profile -
Change the untagged-vlan in the device-profile to default VLAN (1) .
Aruba-2930F# configure terminal
Aruba-2930F(config)# device-profile name IAP untagged-vlan 1
After the change we see that the VLAN has disappeared from the switch.
Aruba-2930F# show vlan
Status and Counters - VLAN Information
Maximum VLANs to support : 256
Primary VLAN : DEFAULT_VLAN
Management VLAN :
VLAN ID Name | Status Voice Jumbo
------- -------------------------------- + ---------- ----- -----
1 DEFAULT_VLAN | Port-based No No