I followed your suggestion:
port 21/23 vlan1 untagged, vlan30 tagged
the uplink port on the dlink has the same config as port 21 on the HPE. All pc on dlink's vlan1 ports go thru but those on vlan30 don´t.
On thursday I will be on location and will try diferent ports and another switch to see if the problem is hardware related or not.
You suggestion works. Feeling really stupid.
This company bought the HPE switch last week and they installed it by themselves, I asked them to maintain the connections(cable a to port a, etc) as the previous switch, but somehow they connected the cable that should go to port 21 to another port.... I found the human bug while remotely connected and checking the port statistics on the HPe switch. One port had a lot more traffic than it should.
I then tested the port vlan1 untagged, vlan30 tagged, and the pc got an ip address.
Thanks again for your help.