Task-13 — Ping google not facebook.
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:
- Network ID:
The network ID or destination corresponding to the route. - Subnet Mask:
The mask is used to match a destination IP address to the network ID. - Next Hop:
The IP address to which the packet is forwarded - Outgoing Interface:
Outgoing interface the packet should go out to reach the destination network. - 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.

