Static Routing

Routing

  • Stop Broadcast
  • Find best possible path to destination
  • Moving unicast traffic between network

Router Facts

  • Routers only know about connected networks
  • Default route acts as catch-all
  • In case of multipleroutes, the more specific route (higher subnet mask)will be selected by router to select the best path
    • 192.168.1.0 255.255.255.0 going to f0/1
    • 192.168.1.0 255.255.255.128  going to f1/1
    • If these are the two entries in routing table,
      • then A PACKET DESTINED FOR 192.168.1.1 will go to f1/1

Routing

R1


  • sh ip int brief
  • ping 192.168.1.1
  • ping 192.168.2.2
  • ping 192.168.3.1 [failed]
  • sh ip route
  • ip route 192.168.3.0 255.255.255.0 192.168.2.2
  • ping 192.168.3.1 source 192.168.1.2 [failed]

R2


  • sh ip int br
  • sh ip route
  • ip route 192.168.1.0 255.255.255.0 192.168.2.1

R3


  • sh ip int br
  • sh ip route
  • ip route 192.168.2.0 255.255.0.0 192.168.1.2
  • ip route 192.168.3.0 255.255.0.0 192.168.1.2

 REACH OUT TO INTERNET

R1(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.1

R2(config)#ip route 0.0.0.0 0.0.0.0 192.168.2.1

R3(config)#ip route 0.0.0.0 0.0.0.0 68.110.171.99

 

ctrl + shift + 6 break out from ping, if got stuck

 

Leave a comment