Network Setup We can Ping Google but not Facebook from Same?System

Network Setup We can Ping Google but not Facebook from Same?System

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
No alt text provided for this image

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.

No alt text provided for this image
No alt text provided for this image

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.

No alt text provided for this image

then we can see our system is not able to connect from outside world.

No alt text provided for this image

Now, It’s time to make google IP to connect from system, for this we should create route for the IP network.

No alt text provided for this image

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.

No alt text provided for this image
No alt text provided for this image

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!!

要查看或添加评论,请登录

Yash Dwivedi的更多文章

  • Web Application for Docker

    Web Application for Docker

    Task: This app will help the user to run all the docker commands of docker using webApp using JavaScript. Solution: for…

    2 条评论
  • Making HTTPD Service Idempotent

    Making HTTPD Service Idempotent

    Description: Restarting HTTPD Service is not idempotence in nature and also consume more resources suggest a way to…

  • Industry Use Cases of Ansible

    Industry Use Cases of Ansible

    Hello, Here in the blog we'll talk something about Ansible and then will know how trivago is using Ansible, so let's…

  • Ansible Automation for Hadoop Cluster

    Ansible Automation for Hadoop Cluster

    Hadoop: Apache Hadoop is an open source framework that is used to efficiently store and process large datasets ranging…

  • Ansible Playbook for Launching Docker

    Ansible Playbook for Launching Docker

    Task: ?? Configure Docker ?? Start and enable Docker services ?? Pull the httpd server image from the Docker Hub ?? Run…

  • Porsche Informatik delivers automotive innovation faster with Red Hat OpenShift

    Porsche Informatik delivers automotive innovation faster with Red Hat OpenShift

    Porsche Informatik, IT service provider for the Volkswagen Group, needed to speed application development and delivery…

  • Automating LVM Partition using Python-Script

    Automating LVM Partition using Python-Script

    We can automate LVM through python for automation we have the code link below: GitHub Link:-…

  • Configuring webserver and python inside container.

    Configuring webserver and python inside container.

    ??Configuring Httpd Server on Docker Container ??Setting up Python Interpreter and running Python Code on Docker…

  • Increase or Decrease the Size of Static Partition Without Losing Any Data

    Increase or Decrease the Size of Static Partition Without Losing Any Data

    This Article explain how to increase/decrease the size of the static partition without losing data in Linux. WHAT IS…

  • Hadoop and LVM Integration

    Hadoop and LVM Integration

    LVM help to provide elasticity to data node and it will solve industry use cases. We can increase or decrease storage…

社区洞察

其他会员也浏览了