My rockpis cant connecting to network

I using my NB with SSH to connect my rockpis but it doesn’t have a network

How does the pis connect to the network, through eth or wifi?