Configure Static Route Cisco Router. If we want r1 to forward packets to subnet 188.8.131.52 then we need to configure a static route. In order to configure static routing in cisco ios routers, this is the command to use.
Configuring routing on the router r1. R1 (config)#ip route 192.168.10.0 255.255.255.0 10.1.1.2 r1 (config)#exit r1#. The format of a static route command on a cisco asa firewall is:
Configuring Routing On The Router R1.
Asa(config)# route [interface name] [destination network] [mask] [gateway] now let’s see the commands needed for each router. Router(config)#ip route 10.0.0.0 255.0.0.0 184.108.40.206 router(config)#ip route 220.127.116.11 255.0.0.0 18.104.22.168 router(config)#exit router#show ip route static s 10.0.0.0/8 [1/0] via 22.214.171.124 s 126.96.36.199/8 [1/0] via 188.8.131.52 router# First run the command show ip route to view the ip routing table for router b before defining static routes routerb# configure terminal routerb(config)# ip route 10.10.11.0 255.255.255.0 10.10.10.1 routerb(config)# ip route 10.10.13.0 255.255.255.0 10.10.12.2 routerb(config)# exit
R1#Conf T Enter Configuration Commands, One Per Line.
If we want r1 to forward packets to subnet 184.108.40.206 then we need to configure a static route. (optional) to remove only one static route to the given subnet via the given next hop, enter the following: Router (config)#ip route 192.168.1.0 255.255.255.0 10.1.1.2.
To Configure A Static Route, See The Following Section:
However, in some cases the default gateway might not be able to reach. It is not possible to configure correctly unless you have a good grasp of the network that should be registered in the routing table for each router based on the overall image of the network. Configuring static route on r2:
The Following Image Shows How To Run These Commands In The Packet Tracer.
Run the following commands on the router r1 from the global configuration mode. Now add a static route to the routers so that pc0 can communicate with pc1. Router>enable router#configure terminal enter configuration commands, one per line.
To Specify That An Administrative Distance (Ad) Of 200 Has Been Assigned To A Given Route, Enter The Following Command, For Example:
This is something people often forget configuring static route for the first time. Static route is a configuration method in which route information (network address/subnet mask, next hop) is registered by entering commands for each router. You can configure a static route in a vrf.