- Static Routing
 
- Dynamic Routing
 
Dynamic Routing: In Dynamic Routing, Automatic exchange is done between the Routing Tables.
RIP is the most common example of Dynamic Routing.
Static Routing
Now I will tell how static routing is applied between two routers. Following are the steps you have to follow.First, Go to the packet tracer. Now you need 2 Routers, 2 Switches and 2 pc's and connect them like I have told you in the previous post. Assign IP's to the PC and then proceed to the CLI of router.
While Configuring for Static Routing, following will be written in the command:
- Destination Network ID (1)
 - Destination Subnet Mask (2)
 - Directly connected next hop IP address (3)
 
Commands used in Router
Static Routing command for router 1
(1) (2) (3)R1(config)# ip route 20.0.0.0 255.0.0.0 15.0.0.2
To see static Routing details, Following is the command
R1#Sh ip route
Result of the command
C E0 10.0.0.0/8C S0 15.0.0.0/8
S S0 20.0.0.0/8 via 15.0.0.2/8
Static Routing command for router 2
(1) (2) (3)R2(config)# ip route 20.0.0.0 255.0.0.0 15.0.0.2
To see static Routing, Following is the command
R2#Sh ip route
Result of the command
C E0 20.0.0.0/8C S0 15.0.0.0/8
S S0 10.0.0.0/8 via 15.0.0.1/8
In the next post, I will teach you how dynamic routing is applied.