Well believe it or not the trellis is made out of wood & we'd like it close to the top.Perhaps say what the trellis is made of and where on the fence you intend to attach it then someone can offer some advice.
Absent that, my answer is "with screws".