ROUTING:
Process of sending packets from one network to another network is called Routing
Router will not do broadcast. Router will do only unicast
Router finds the best path to forward the packets
Routing are two Types
1. Static Routing
2. Dynamic Routing
Static Routing:
By Default, router will learn the directly connected network.
Router R1 will know 1.0 and 2.0 network
Router R2 will know 2.0 and 3.0 network.
If we ping 1.1 from PC A, it will get reply
If we ping 2.1 from PC A, it will get reply
But if we ping 3.1 or 2.2 ip add prom PCA, it will be timed out. Because, the router R2 will not reply
to the packets from PCA. Why??
Routers always maintain the routing table, ie know network and how to sent the packets
Eg. R1 Router routing table
192.168.1.0 F0/0 – (router know 192.168.1.0 network and any packets comes for this particular
network; it will be forwarded via F0/0 port)
192.168.2.0 f0/1 – same as above
R2 Router Routing Table
192.168.2.0 - f0/0 –
192.168.3.0 – F 0/1 – Router knows 3.0 network and if any packets came for this network will be
forwarded via F 0/1 network
In R2 Routing Table information, it don’t have any info about 1.0 network, hence it cannot reply to
PC A packets, So it will be timed out.
Static Route allows you to Educate the Router
We need to tell the router about the indirectly connected network address
Default route act as catch all.
Refer R1 Routing Table - In the routing table 192.168.1.0 – last octect is 0. It tells that it can be any ip
in that network. Eg 192.168.1.1 or 1.2, any number can come in the place of 0. It refers to the total
network.
If we Write 0.0.0.0 f1/2 – it means any unknow network will be forwarded via f1/2 port. This is
done, because it will be difficult to write each routing information in the router. But there are some
disadvantage it this