# Ping: connect: Network is unreachable

**URL:** <https://discuss.pynq.io/t/ping-connect-network-is-unreachable/5298>\
**Category:** Support\
**Created:** [March 2, 2023, 1:04pm UTC](https://discuss.pynq.io/t/ping-connect-network-is-unreachable/5298 "2023-03-02T13:04:24Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![symbole](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@symbole](https://discuss.pynq.io/u/symbole)\
**Post date:** [March 2, 2023, 1:04pm UTC](https://discuss.pynq.io/t/ping-connect-network-is-unreachable/5298/1 "2023-03-02T13:04:24Z")

</div>

Hi everyone,

i would like to install google-cloud-storage to store pictures.  
I can connect myself to the jupyter server : [http://192.168.2.99:9090](http://192.168.2.99:9090).  
I tried to install it with : pip3 install google-cloud-storage / pip install google-cloud-storage but I have got this mistake :

 ![cloud_problem](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/5/58a3797d61c42d772c0f38484ee75665867ac837.jpeg)

I tried to reach [google.com](http://google.com) and add nameserver 8.8.8.8 in the resolv.conf file but I have this error : “ping: connect: Network is unreachable”

 ![ping_problem](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/6/6f69fa0bf500f9aedb5b29f91afa42d82b7367ac.jpeg)

Best regards,  
Lucas

---

<div class="post-metadata">

**Author:** ![marioruiz](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/marioruiz/32/2177_2.png) [@marioruiz](https://discuss.pynq.io/u/marioruiz)\
**Post date:** [March 2, 2023, 3:35pm UTC](https://discuss.pynq.io/t/ping-connect-network-is-unreachable/5298/2 "2023-03-02T15:35:05Z")

</div>

@symbole,

Your board needs to be connected to the Internet if you want to install this.  
From the limited information you are provided, it seems that you are connected to the board directly (point to point and based on the IP address).

Please, use the search bar in the forum. This is a common question.

Mario

---

<div class="post-metadata">

**Author:** ![symbole](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@symbole](https://discuss.pynq.io/u/symbole)\
**Post date:** [March 2, 2023, 8:59pm UTC](https://discuss.pynq.io/t/ping-connect-network-is-unreachable/5298/3 "2023-03-02T20:59:48Z")

</div>

> [@marioruiz](#):
>
> Your board needs to be connected to the Internet if you want to install this.  
> From the limited information you are provided, it seems that you are connected to the board directly (point to point and based on the IP address).
> 
> Please, use the search bar in the forum. This is a common question.
> 
> Mario

Hi @marioruiz ,

thanks a lot for your reply it is really appreciated.

To be honest I excatly did what mentionned in the getting started here : [Assign a static IP address — Python productivity for Zynq (Pynq)](https://pynq.readthedocs.io/en/latest/appendix/assign_a_static_ip.html#assign-a-static-ip-address)

Can you give me more details ? I searched few hours in the forum I saw that few people had a similar problem but not the same. It will be very appreciated.

Regards,  
Lucas

---

<div class="post-metadata">

**Author:** ![symbole](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@symbole](https://discuss.pynq.io/u/symbole)\
**Post date:** [March 6, 2023, 9:48am UTC](https://discuss.pynq.io/t/ping-connect-network-is-unreachable/5298/4 "2023-03-06T09:48:46Z")

</div>

Hi @marioruiz,

I read the getting started. I connected my board with a static IP@ thanks to an ethernet cable. This is why I am unable to update or load a package from the terminal or to ping [google.com](http://google.com).

I saw that we can use a USB Wifi module but on the usb we will have a camera.

What solutions could we have to have an internet connexion ?

Regards,  
Lucas

---

<div class="post-metadata">

**Author:** ![marioruiz](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/marioruiz/32/2177_2.png) [@marioruiz](https://discuss.pynq.io/u/marioruiz)\
**Post date:** [March 6, 2023, 11:06am UTC](https://discuss.pynq.io/t/ping-connect-network-is-unreachable/5298/5 "2023-03-06T11:06:17Z")

</div>

You can connect the board to the Internet via an Ethernet cable using a router, this should give you a dynamic IP address. You can also connect a WiFi dongle and use the example notebook to connect to the Internet.

Mario

---

<div class="post-metadata">

**Author:** ![godfly](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/godfly/32/4074_2.png) [@godfly](https://discuss.pynq.io/u/godfly)\
**Post date:** [March 23, 2023, 3:59pm UTC](https://discuss.pynq.io/t/ping-connect-network-is-unreachable/5298/6 "2023-03-23T15:59:35Z")

</div>

If you want the board to access the Internet through your host PC, you should:

1. Go to Control Panel → View network status and tasks.
2. Select the network that has Internet connections, and then select Properties → Sharing.
3. In the drop-down menu below “allow other network users to connect through this computer’s Internet connection”, select the network (Ethernet) that you are connecting with your board. This should reset the Ethernet’s IP address to `192.168.137.1`.
4. On your board, set the gateway (instead of the IP address) to `192.168.137.1`. As for the IP address, you can set it to anything from `192.168.137.2` to `192.168.137.254`.
5. If it still does not work, check the DNS server on your board:

```auto
sudo vim /etc/resolv.conf

```

6. If it still does not work, check if your host PC really has access to the Internet.
7. If it still does not work, check the status of your network interface `eth0`. You may enable it by typing:

```auto
sudo ifconfig eth0 up

```

---

<div class="post-metadata">

**Author:** ![Gloria-Gly](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/gloria-gly/32/6258_2.png) [@Gloria-Gly](https://discuss.pynq.io/u/Gloria-Gly)\
**Post date:** [August 23, 2024, 8:24pm UTC](https://discuss.pynq.io/t/ping-connect-network-is-unreachable/5298/7 "2024-08-23T20:24:16Z")

</div>

Hi there,  
I try to follow your instruction to make my board access to the Internet through my PC. But as for the fourth point, how can I set the gateway and IP address of my board to range 192.168.137.X? I try so many methods. However, even if I set successfully I cannot delete the previous IP address, which means I can see the new and old IP address through the but the LED only show the old IP address. And then after sharing the Internet, I cannot connect with the Jupyter Notebook.

I wonder is there any details instructions that I can follow? Thank you!

---

<div class="post-metadata">

**Author:** ![godfly](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/godfly/32/4074_2.png) [@godfly](https://discuss.pynq.io/u/godfly)\
**Post date:** [August 26, 2024, 4:10pm UTC](https://discuss.pynq.io/t/ping-connect-network-is-unreachable/5298/8 "2024-08-26T16:10:29Z")

</div>

`sudo route add default gw 192.168.137.1` should set the gateway. `sudo ifconfig <your-ifdev> 192.168.3.x` should set the IP as `192.168.3.x`.

`<your-ifdev>` depends on your system, for example `eth0`.

---

<div class="post-metadata">

**Author:** ![Gloria-Gly](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/gloria-gly/32/6258_2.png) [@Gloria-Gly](https://discuss.pynq.io/u/Gloria-Gly)\
**Post date:** [August 26, 2024, 5:37pm UTC](https://discuss.pynq.io/t/ping-connect-network-is-unreachable/5298/9 "2024-08-26T17:37:50Z")

</div>

Thanks a lot! It really helps me.
