Create a Setup so that you can ping Google but not able to ping Facebook from same system..

Dolly Mehra
3 min readMar 12, 2021

I am performing this task on RHEL8.

Step 1- check the routing table rules. may be you dont know what is routing table?

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.

Check the available rules by using ‘route –n’ command

This 0.0.0.0 provides us rules to ping any IP or network over internet.

Step 2 -Check the network name for Google and Facebook. We have to use ‘nslookup domain_name’ command to check network information.

I got the IP of the google 216.58.200.196

now IP of Facebook is 69.171.250.35

Step 3- Now check whether the IPs are pinging or not with Google and Facebook To check this connection use- ping ip..

pinging to google IP.

pinging to Facebook IP.

Step 4 — Now we have to remove this rule as we don’t want to ping with Facebook, to remove it use command ‘route del –net 0.0.0.0’

Now, we can see that 0.0.0.0 has been removed.

Step 5- Now again check that we are able to ping to google ip and facebook ip or Not.???

oops.. we are not able to ping any..

Step 6- But according to our task we want to ping google ip so we will add a rules in routing table.

Step 7- Now again ping to google and facebook IP.

we can check from web UI also..

here we can see that we are able to ping google but not with facebook ip..

Task Successfully Completed..

Thanks for reading..

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

Dolly Mehra
Dolly Mehra

No responses yet

Write a response