How to build a network topology where you can ping to google but can’t to Facebook

Pinging google
yum install net-tools
route
route add -net (ip[change with yours]) (netmask netmask[change with yours]) gw(gateway[change with yours]) network card name
  • To check network card use ifocnfig or IP a there you can see network card as you can see in below image my card is enp0s3
route del -net IP (ip[you want to delte from route table])

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store