Network Setup We can Ping Google but not Facebook from Same?System
Yash Dwivedi
RHCA | Quantum Computing | OpenShift | DevSecOps | DevOps | MLOps | Big Data | Hybrid Multi Cloud | AWS | GCP | Python | Terraform | Ansible | Kubernetes | MongoDB | GIT & GitHub
For Network setup we have to setup Routing table. A routing table is a set of rules, often viewed in table format, that is used to determine where data packets traveling over an Internet Protocol (IP) network will be directed. All IP-enabled devices, including routers and switches, use routing tables. See below a Routing Table. We can use Linux Command:
route -n
The entry corresponding to the default gateway configuration is a network destination of 0.0.0.0 with a network mask (netmask) of 0.0.0.0.
Now, Let’s test system can ping google and facebook.
There we can see facebook and google working fine.
As we can see our system is working fine. It’s time to setup routing table to achieve required configuration.
first we should make our system to be disconnected from Internet by deleting default route.
then we can see our system is not able to connect from outside world.
Now, It’s time to make google IP to connect from system, for this we should create route for the IP network.
we have added route there using default gateway to connect this network.
That’s all we have to setup, for checking setup we have to check again using ping.
Here, Setup Working fine. There we can use IP address as Facebook and Google have lots of different set of networks, we can enhance this setup by using different networks as per requirements.
Thank You!!