[ ROUTER ] How to Configure a Simple Static Routing in Packet Tracer
How to Configure a Simple Static Routing in Packet Tracer
How to configure a simple static routing in packet tracer using a simple topology with two routershere we go
Steps : Step 1:First Create a topology like thisyou will get a red light first this is configured topologyStep 2: Configure ip address to routers go to global configuration mode in R1 and R2 configure connected interfacesIn Router 1Interface Fastethernet0/0 in global configuration mode
R1(config)#interface fastethernet 0/0R1(config-if)#ip address 10.0.0.1 255.0.0.0R1(config-if)#no shutdownR1(config-if)#exitInterface Serial 2/0R1(config)#interface serial 2/0R1(config-if)#ip address 20.0.0.1 255.0.0.0R1(config-if)#clock rate 64000R1(config-if)#encapsulation pppR1(config-if)#no shutdownR1(config-if)#exit
In Router 2Interface Fastethernet 0/0R2(config)#interface fastethernet 0/0R2(config-if)#ip address 30.0.0.1 255.0.0.0R2(config-if)#no shutdownR2(config-if)#exit
Interface Serial 2/0R2(config)#interface serial 2/0R2(config-if)#ip address 20.0.0.2 255.0.0.0R2(config-if)#encapsulation pppR2(config-if)#no shutdownR2(config-if)#exit
Step 3 : Assign ip address for both Pc's with appropriate ip and subnetmask and default gateway How ?
Step 4: Now configure both router with static routeBy default, Routers Know only directed connected networks here Router 1 know only 10.0.0.0 and 20.0.0.0 it doesn't know the 30.0.0.0 like this R2 doesn't know about 10.0.0.0.So We are going to add Static route to this both router R1(config)#ip route Destination Network| Destination N/W SubnetMask |Next Hop AddressIn Router R1,Just give this command,In this case Destination is 30.0.0.0 and its subnet mask is 255.0.0.0 next hop address is 20.0.0.2
R1(config)#ip route 30.0.0.0 255.0.0.0 20.0.0.2
In Router R2
R2(config)#ip route 10.0.0.0 255.0.0.0 20.0.0.1Thats it!!..Now both routers know all networks,check by ping ip address of host
Step 5:Double click PC move to desktop then command prompt give the command ping 30.0.0.10 in PC 0 you will get reply from 30.0.0.10 like this
From PC1
No comments: