ARTH Task 13
Task Description📄
🔰 Create a Setup so that you can ping google but not able to ping Facebook from the same system
Before discussing the actual use-case, let’s discuss some of the basics of networking.
What is a Computer Network?
A computer network is a group of computers that use a set of common communication protocols over digital interconnections for the purpose of sharing resources located on or provided by the network nodes.
Basic terminologies of Networking
Ø IP Address:
An IP address is a unique address that identifies a device on the internet or a local network. IP stands for “Internet Protocol,” which is the set of rules governing the format of data sent via the internet or local network.
Ø Routing Table:
In computer networking a routing table, or routing information base, is a data table stored in a router or a network host that lists the routes to particular network destinations, and in some cases, metrics associated with those routes.
Ø NAT:
Network Address Translation (NAT) is a process in which one or more local IP address is translated into one or more Global IP address and vice versa in order to provide Internet access to the local hosts.
Ø Port Number:
In computer networking, a port is a communication endpoint. A port is identified for each transport protocol and address combination by a 16-bit unsigned number, known as the port number. The most common transport protocols that use port numbers are the Transmission Control Protocol (TCP) and the User Datagram Protocol (UDP).
A port number is always associated with an IP address of a host and the type of transport protocol used for communication.
Ø Subnet:
A subnetwork or subnet is a logical subdivision of an IP network. The practice of dividing a network into two or more networks is called subnetting. Computers that belong to a subnet are addressed with an identical most-significant bit-group in their IP addresses.
Now follow the steps to accomplish the task given:
Step1: Find the IP Address of Facebook and Google via following commands:
o ping www.google.com or www.facebook.com
o nslookup www.google.com or www.facebook.com
Step2: Check initial state of routing table using command
o route -n
Step3: Now delete the default network rule 0.0.0.0 from routing table using following command
o route del default enp0s3 or route del -net 0.0.0.0 enp0s3
Step4: Now add the google IP with range i.e., 142.250.0.0/16 with my default NAT gateway as 192.168.43.48.
Step5: Check the update routing table and then ping the google.com and facebook.com and check the final outcome.