Pinging Google But Not Able To Ping Facebook From the Same System

Jayesh Gupta
3 min readMar 8, 2021

Router

A Router is a networking device that usually use to connect two or more two different networks. This is the one which forwards data packet between different devices. For example, a router provides your internet access by connecting your LAN with the Internet.

Whenever a node sends data to another node on the network, it must first know where to send it. If the node is not directly connected, then it sends it via other nodes along a route to the destination node. Each node needs to keep track of the way to deliver data, and for this, it uses a routing table.

Routing Table

A routing table is a database that keeps track of paths, like a map, and uses these to determine which way to forward traffic. A routing table is a data file in RAM that is used to store route information about directly connected and remote networks. Nodes can also share the contents of their routing table with other nodes. This route table gives information on Destination IP, Gateway, Interface, Netmask, metrics, etc.

Finding the IP of the Google server

Using the nslookup command

Editing my routing table:

First delete the row of the routing table, which We use to connect to the Internet.

Now If we try to connect to the Internet, It never connects. So let us add Google IP (which we find in the upper step) in the routing table so that we can connect to Google only.

Now check it is pingable or not

And let us find out the IP of Facebook/any other site and try to ping that…

You can see that it is not pingable.

Now from this system, we can only ping google not facebook.

THANK YOU FOR READING THIS.

--

--