Fatal: unable to connect to gerrit.googlesource.com:

shiva@DND038:~/oe-core$ repo init -u http://git.toradex.com/toradex-bsp-platform.git -b LinuxImageV2.6
Get https://gerrit.googlesource.com/git-repo
fatal: unable to connect to gerrit.googlesource.com:
gerrit.googlesource.com[0:]: errno=Connection timed out
gerrit.googlesource.com[1: 2404:6800:4003:c02::52]: errno=Network is unreachable

how to fix this?

It works from here.

Can you try again, maybe gerrit.googlesource.com has been unreachable from your location when you tried.

If it still fails check your network connection and try to ping gerrit.googlesource.com.