Arth Task-13
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)
➢ Check for connectivity by pinging to Google And 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)
➢ Route table can be accessed using the following command
(Gateway or gw →192.168.1.1)
➢ After this, delete the logs inside the routing table and check the table again.
➢ Now as seen, none of the websites (Google, Facebook) are accessible.
➢ 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}
➢ Whereas Facebook is still inaccessible and hence task completed