Static Routing
|
Fig 1: Static Routing |
What is Static Routing ?
So, first of all we have to know that what is routing basically routing is defined as the "addition of routes in the routing table to send user data to the destination". The word static means the manually so here static routing is the concept of the manually add the routes in the routing table to perform the convergence. Convergence means that every node in the existing network accessible and reachable to any other node. Here We have a small lab for you for the understanding of concept of the static routing:
|
Fig 2: Basic Topology |
About Topology In this basic topology we have two routers router 0 and router 1. - Both routers are in same network of 1.0.0.0 with the subnet mask 255.0.0.0.
- Router 0 has the two interfaces s0/0 and f0/0 and router 1 has also the same interfaces of s0/0 and f0/0.
- On Router 0's interface s0/0 the IP address is 1.1.1.1 and the IP address from other network on the interface f0/0 of the router 0's is 192.168.1.254 that belongs to 192.168.1.0 network that has the subnet mask 255.255.255.0 and from this network we assign the IP addresses to the end users and access machines.
- On Router 1's interface s0/0 the IP address is 1.1.1.2 and the IP address from other network on the interface f0/0 of the router 1's is 192.168.2.254 that belongs to 192.168.2.0 network that has the subnet mask 255.255.255.0 and from this network we assign the IP addresses to the end users and access machines.
- So our goal is that the end user of the router 0 should communicate to the other end user of router 1. It only happen when the routes add in the routing tables of the both routers.
Router0:
- Now in the routing table of the router 0 Fig: 3 only directly connected network are exist.
|
Fig 3: Router0's Routing Table Before Static Route |
- Now we have to add static route of 192.168.2.0 for convergence in global configuration mode.
|
Fig 4: Router0's Routing Table After Static Route |
- The command to add the static route is "ip route 192.168.2.0 255.255.255.0 1.1.1.2".
- "ip route" is the keyword to add static route.
- 192.168.2.0 is the network which is known as the prefix network that is the destination network.
- 255.255.255.0 is subnet mask of the prefix network.
- 1.1.1.2 is the forwarding router's address.
- You can see in Fig: 4 that the route is added with sign of "S" that is the static route.
Router1:
|
Fig 5: Router1's Routing Table Before Static Route |
- Now we have to add the static route of 192.168.1.0 for convergence in global configuration mode
|
Fig 6: Router1's Routing Table After Static Route |
- The command to add the static route is "ip route 192.168.1.0 255.255.255.0 1.1.1.1".
- "ip route" is the keyword to add static route.
- 192.168.1.0 is the network which is known as the prefix network that is the destination network.
- 255.255.255.0 is subnet mask of the prefix network.
- 1.1.1.1 is the forwarding router's address.
- You can see Fig: 6 that the route is added with sign of "S" that is the static route.
Here below is the output PC0 successfully ping the PC4 because of the completion of the routing table:
|
Fig 7: PC0 ping PC4 |
0 Comments