Setup system for pinging to only google not facebook

  1. There should be physical connection between two computers
  2. There should be network card in both computers and allocated IP address
  3. If both computers are in same network then switch is required , but when both computers are in different network then router is required for networking .
  4. For setup connection between two computers ,Routing table is necessary . it allows to create packet for transfer data .
route -n
route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.43.1 enp0s3 
nslookup www.google.com
ping 172.217.167.228
nslookup www.facebook.com
ping 69.171.250.35
route del -net 0.0.0.0
route add -net 172.217.167.228 netmask 255.255.255.255 gw 192.168.43.1 enp0s3 
ping 172.217.167.228ping 69.171.250.35

--

--

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