Ideally a batten screwed to the post and the trellis attached to that-ask the neighbour if they would mind drilling -it wont do any damage,
or attaching the batten with "no more nails" type adhesive- but buy the best
or failing that you could tie it in some way but it needs to be quite secure.
Plants on a trellis can be quite heavy-bear that in mind