I'm not familiar with those switches, but found with a search that you should put your native (primary) VLAN also in the allowed VLAN list:
The port trunk pvid vlan command only specifies the default VLAN of a trunk interface but does not add the trunk interface to the default VLAN. A trunk interface forwards frames with the default VLAN ID only after it is added to the default VLAN using the port trunk allow-pass vlan command.
So, port trunk allow-pass vlan 500,2500 may do the job...
.. which is not uncommon across some other switch vendors.
------------------------------
Herman Robers
------------------------
If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check
https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.
In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
------------------------------
Original Message:
Sent: Jul 22, 2024 05:55 AM
From: invincible2k
Subject: Switch Port Configuration for Bridge Mode SSID
I am facing issue when switch port is in trunk mode, Aruba AP is not getting registered on Controller. Appreciate your support on below.
I have Aruba Controller 7210 with AP 655. Controller is acting as DHCP server (option 43 and 60) for AP 655.
IP helper address is configured on VLAN 2500 for Controller VIP.
Note: VLAN 2500 is not configured on Controller.
When Aruba 655 AP is connected with switch port 4 is in access mode, AP 655 is registered on controller.
AP 655 E0 Port is connected with Huawei Switch Port 4: (AP get registered to Controller)
Switch> port default vlan 2500
Switch> stp edged-port enable
When Aruba 655 AP is connected with switch port 19 in trunk mode. AP 655 is not getting registered on controller.
AP 655 E0 Port is connected with Switch Port 19: (AP not getting registered to Controller)
Switch> port link-type trunk
Switch> port trunk pvid vlan 2500
Switch> port trunk allow-pass vlan 500