What Is Routing table??
Hi Guys !!
In this article , I will gonna to tell that what is routing table and how we can make the use of this routing table for various purposes..
What is Routing Table ??
Routing table is basically a table of rules which we either we create or our operating system creates those rules for us…The Routing table contains several information like Destination Network Name , Gateway ,Netmask ,Network Card Name etc. These Information are very essential for the generation of network packet…
Because , whenever any program in the operating system like Firefox, Chrome etc.. needs to send the network packet to the destination for eg requesting to the web server for serving the web pages or doing ping to any host ,our operating system before generating the network packet goes to the Routing Table and check whether we can create any packet or not…. If there is any rule created for the destination IP in the routing table then operating system generates the packet otherwise do not generate the network packet…..
That is the reason routing table play a very crucial role in the networking.. Because the generation of network packet depends upon the rules present in the routing table. Because ,even if we have whole perfect set up of network like routers, switches etc , But if network packets are not generated then there is no meaning of the the network setup as we can not communicate to the destination host……
Now ,we will understand how to create rules in routing table and how those rules affects the generation of network packet…
Task : Create A Setup such that we are able to ping to the google.com but not to facebook.com
Right Now ,my IP and the routing table look like
As , you can see that I am able to ping to both google.com and facebook.com
Now ,I deleted the 0.0.0.0 (Any IP in the World) entry in the routing table
After , deleting the rule , the routing table looks like
Now you can see that , I am unable to ping to both facebook and google as I have deleted the corresponding rule in the routing table..
Now, with the help of the nslookup command I founded the IP of the google.com
Now , I add a rule for this particular IP in the routing table..
Now, you can see that google.com is pinging but facebook.com is not..
At the end I would Like to Thank Mr. Vimal Daga Sir for providing me such a core knowledge…
Thanks For Reading………..:)