Arth-Task-13(Ping google but not able to Ping Facebook)

Neeteesh Yadav
3 min readMar 9, 2021

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

Solution of this task step wise……………….

step1:- Find the IP address of the Facebook and Google.

Solving this step we use nslookup command to find the ip adress of the servers.

Show the IP address of the google servers using nslookup command……..

nslookup www.google.com

Using this command show the ip address of google.

Show the IP address of the Facebook servers using nslookup command…….

nslookup www.facebook.com

Step2:- Show all the ip address bound with systems.

Solving this step we use command like,

route -n

Step3:- Delete universal route rule to ping any website.

Solve this command use command like,

route del -net 0.0.0.0

step4:- Ping google check google connect or not.

step5:- Ping Facebook check Facebook ping able or not.

step6:- Add the rule for google using command like.

route add -net ***googleIp*** netmask 255.255.***.*** gw **internet gateway** wlp3s0

Add the rule and ping then we find google ping able, but try to ping facebook not ping able why write rule only google address.

step7:-show route table rule is add or not

route -n

step8:- Delete rule of google.

route del -net 216.58.200.164 netmask 255.255.255.255 gw 192.168.0.1 wlp3s0

stpe9:- Add rule for facebook rule.

route add -net 157.240.198.35 netmask 255.255.255.255 gw 192.168.0.1 wlp3s0

Step10:- Show rule add or not using command like.

route -n

step11:- Ping Facebook check ping able or not.

step11:- Ping google check google ping able or not, but failed why because rule delete for google.

step12:- Delete rule for facebook in the route table.

route del -net 157.240.198.35 netmask 255.255.255.255 gw 192.168.0.1 wlp3s0

step13:- Now add universe rule for ip table.

route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.0.1 wlp3s0

Thanks for reading artical.

--

--

Neeteesh Yadav

Technical Enthusiast | MlOps(Machine learning + Operations)| DevOps Assembly Line| Hybrid Multi cloud