search the web

Showing posts with label Configuring Static Routing. Show all posts
Showing posts with label Configuring Static Routing. Show all posts

Sunday, April 17, 2016

Configuring Static Routing


Configuring Static Routing

--------------------------------------------
R3
--------------------------------------------
conf t
ip route 192.168.1.0 255.255.255.0 192.168.3.1
ip route 192.168.2.0 255.255.255.0 192.168.3.1
ip route 192.168.4.0 255.255.255.0 192.168.3.1

The above command meant that i want to route to the network 192.168.1.0 which has a subnet mask of 255.255.255.0 through a forwarder address 192.168.3.1

-------------------------------------------------
R1
-------------------------------------------------
conf t
ip route 192.168.2.0 255.255.255.0 192.168.1.1
ip route 192.168.3.0 255.255.255.0 192.168.1.1
ip route 192.168.4.0 255.255.255.0 192.168.1.1

-------------------------------------------------
R2
-------------------------------------------------
conf t
ip route 192.168.1.0 255.255.255.0 192.168.2.1
ip route 192.168.3.0 255.255.255.0 192.168.2.1
ip route 192.168.4.0 255.255.255.0 192.168.2.1



For example we have a router as our gateway to the internet. Now our router can not have static route to the routers of the internet or the networks of the internet

Default Static Route

--------------------------------------------------
R1
-------------------------------------------------
conf t
ip route 0.0.0.0 0.0.0.0 192.168.1.1

to route to any network with any subnet through the gate 192.168.1.1