Task-13 — Ping google not facebook.

Srasthy Chaudhary
3 min readMar 14, 2021

--

In this article, I'm going to create a Setup so that you can ping google but not able to ping Facebook from the same system​

To start the practical, we should know something about the routing table:

Pre-Requisite:

  • Basic Knowledge of Networking
  • Knowledge about Netmask
  • Basic Information about Network Name
  • Knowledge about Routing tables

Routing Table:
A routing table is a set of rules, often viewed in a table format, that is used to determine where data packets travelling 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:

Destination      Subnet mask         Interface
128.75.43.0 255.255.255.0 Eth0
128.75.43.0 255.255.255.128 Eth1
192.12.17.5 255.255.255.255 Eth3
default Eth2

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. The Subnet Mask of the default route is always 255.255.255.255.

Entries of an IP Routing Table:
A routing table contains the information necessary to forward a packet along the best path toward its destination. Each packet contains information about its origin and destination. Routing Table provides the device with instructions for sending the packet to the next hop on its route across the network.

Each entry in the routing table consists of the following entries:

  1. Network ID:
    The network ID or destination corresponding to the route.
  2. Subnet Mask:
    The mask is used to match a destination IP address to the network ID.
  3. Next Hop:
    The IP address to which the packet is forwarded
  4. Outgoing Interface:
    Outgoing interface the packet should go out to reach the destination network.
  5. Metric:
    A common use of the metric is to indicate the minimum number of hops (routers crossed) to the network ID.

Routing table entries can be used to store the following types of routes:

  • Directly Attached Network IDs
  • Remote Network IDs
  • Host Routes
  • Default Route
  • Destination

Let's Get Started —

STEP 1: Pinging Google and Facebook for Testing.

STEP 2: Viewing old Route table.

STEP 3: Adding New Route table.

STEP 4: Pinging to Google and Facebook.

Thank you!

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response