Hi,
You could use the routing or forwarding table to find the egress interface towards the destination IP:
show route x.x.x.x
show route forwarding-table destination x.x.x.x
Ingress would depend on the topology and would be the physical interface where the traffic would be coming in.
Cheers,
Ashvin