Executing ping within a snap

Yes, follow the process detailed in Process for aliases, auto-connections and tracks to request auto-connection.