Cisco static routing

Static routing

conf t
enter into configuration mode
ip route 0.0.0.0 0.0.0.0 192.168.2.3 255.255.255.0
set default route (0 source 0 destination) to the speicified IP address with mask.
do sh ip route
list routing in configuration mode
ip route 0.0.0.0 0.0.0.0 FastEthernet 0/3 192.168.2.3
set default route with defining the interface. This is the faster solution in practice, if the interface is also defined
ip route 192.168.1.0 FastEthernet 0/2 10.0.0.1
set a static route for accessing 192.168.1.0 network. Do not forget to set the static routing backwards on the other side.

 

Share with: