Directly and honestly — but not like a supplicant. Bad: 'I'm looking for a job, do you know anything?' Good: 'I'm currently open to new opportunities in the field of X. Do you have 15 minutes for a brief exchange about the market? And if you know someone who might be relevant, an intro would be very valuable.' Start by giving — offer value first before asking for something.
Want to know how well your CV matches your target role?
What is active sourcing and what does it mean for applicants?
How do I build professional networking for my job search?
How do I approach contacts for my job search?
How important are referrals in a job search?
How important are referrals for job searching?