Arth Task-13

Devanshu Singh
2 min readMar 16, 2021

TASK DESCRIPTION:

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

Open the system with Rhel8 installed, check your internet connectivity and find out netmask IP ( 255.255.255.0 → netmask IP, enp0s3 → network interface)

Getting the IP

➢ Check for connectivity by pinging to Google And Facebook

Pinging to google
Pinging to Facebook

➢ Run command nslookup to see the details of Google and Facebook websites using your system ( Google → 142.250.67.174, Facebook → 31.13.79.35)

Getting the IP address of Facebook and google

➢ Route table can be accessed using the following command

(Gateway or gw →192.168.1.1)

Accessing the routing table

➢ After this, delete the logs inside the routing table and check the table again.

Deleting the routing table

➢ Now as seen, none of the websites (Google, Facebook) are accessible.

Pinging again google and Facebook after deleting the routing table

➢ Now we have to create a route service only for Google and when pinged to google again, it works (Google → 142.250.67.174)

route add -net {Google IP with only 3 octets and last octet as 0 ie., 142.250.67.0} netmask 255.255.255.0 gw {Gateway ie., 192.168.1.1} { network interface ie., enp0s3}

Adding the route for google in the routing table

➢ Whereas Facebook is still inaccessible and hence task completed

THANK YOU !!

--

--